2018-06-23 00:42:18
i have accumulated over the years a set of pretty extensive infra of my own in the scope of how to servers and services, i got this

Rotonen
2018-06-23 06:12:29
*https://github.com/snowblossomcoin/snowblossom/compare/130471a84c9f...b1346b73d471*
https://github.com/snowblossomcoin/snowblossom/commit/b1346b73d471ff80e325ecf7dfe7a8e4fa47bda0 - tuned systemd service files to work with deployment jars and build from source

GitHub
2018-06-23 06:13:48
@Clueless make the user you create in those a service user

Rotonen
2018-06-23 06:15:00
@Clueless or i suppose for most `--system` is enough, oh well

Rotonen
2018-06-23 06:15:04
`id -u snowblossom &>/dev/null || useradd --home-dir "$snowblossom_home" --create-home --system snowblossom`

Clueless
2018-06-23 06:15:12
yup, --system is a system user. :)

Clueless
2018-06-23 06:15:46
what i mean is put selinux and polkit rules in place, but those are off per default in ubuntu?

Rotonen
2018-06-23 06:16:15
I'm unfamiliar with selinux, but it may be worth something exploring for me.

Clueless
2018-06-23 06:16:36
I just compartmentalize my applications and servers enough that selinux wouldn't really help me anywhere.

Clueless
2018-06-23 06:18:46
first steps would be to whitelist syscalls, resources, set up proper ACL, but i suppose enterprisey requirements are not for most

Rotonen
2018-06-23 06:22:51
So I had installation scripts up pretty quickly, but for linux, they did things differently.
So I was screwing with tuning them to work well with the deployment jars, and then again to do the build from source thing.

Clueless
2018-06-23 06:23:35
seems kinda stupid, but I made it pretty *global* $snowblossom_home/{node.sh, node.bat} is how you run ALL commands now.

Clueless
2018-06-23 06:26:43
@Clueless you might consider restarting your pool with the changes I made toda

Fireduck
2018-06-23 06:26:45
today

Fireduck
2018-06-23 06:26:53
it should make the miner reported rates a bit more stable

Fireduck
2018-06-23 06:26:58
but not a huge deal

Fireduck
2018-06-23 06:27:09
Sweet. I'm about to test floating ip switching on the pool.

Clueless
2018-06-23 06:27:31
So I wasn't at a keyboard so couldn't type before

Fireduck
2018-06-23 06:27:36
I've two vms, snowday1, snowday2, and I can throw up more.

Clueless
2018-06-23 06:27:51
I think just a single vm is fine

Fireduck
2018-06-23 06:28:00
you are going to get a lot of uptime with just that

Fireduck
2018-06-23 06:28:10
and actually risk more downtime by making things complicated

Fireduck
2018-06-23 06:28:50
if you needed more than 2.5 or 3 9s, sure, but you don't need that

Fireduck
2018-06-23 06:29:11
but is fun to screw with things, so have fun

Fireduck
2018-06-23 06:29:24
yeah, that's basically it

Clueless
2018-06-23 06:29:43
fair enough

Fireduck
2018-06-23 06:29:45
i need to get to bed

Fireduck
2018-06-23 06:39:34
is the pool miner client actually going to survive the pool just silently changing?

Rotonen
2018-06-23 06:54:35
@Rotonen Well, I (maybe erroneously) assume that switching a floating ip to another machine would close all the TCP connections and cause all the miners to reset their current work
So no, there's no smooth transition (yet)

Clueless
2018-06-23 07:59:07
dunno, can be either way, try first

Rotonen
2018-06-23 07:59:16
and try with something trivial you wrote and netcat

Rotonen
2018-06-23 12:49:45
@Fireduck this would look rather promising for distributing signed deployables:
https://cachix.org/
disclaimer, i know domen personally (and thus trust him on that one as the service is fresh)

Rotonen
2018-06-23 13:59:07
[snowblossomcoin/snowblossom] #86 Fastfail

GitHub
2018-06-23 13:59:07
*https://github.com/snowblossomcoin/snowblossom/compare/b1346b73d471...753e0500088d*
https://github.com/snowblossomcoin/snowblossom/commit/753e0500088d17aa73d5e3b145ebd49b4f0278b3 - Fastfail (#86)

GitHub
2018-06-23 14:46:43
@Tyler Boone please update wiki mining tuning page.

Fireduck
2018-06-23 14:47:05
Fast fail in master, and check my notes for accuracy

Fireduck
2018-06-23 14:48:27
I updated release notes and added to wiki sidebar for better visibility

Clueless
2018-06-23 14:48:48
I'll check them occasionally, especially with releases.

Clueless
2018-06-23 15:34:14
n34t

Fireduck
2018-06-23 15:38:57
@Clueless so grpc will reconnect on tcp break

Fireduck
2018-06-23 15:39:19
however, for a while the miner will assume its work unit is still valid and submit shares based on it

Fireduck
2018-06-23 15:39:23
which will be rejected

Fireduck
2018-06-23 15:39:34
after a while, that work unit gets stale, the miner will stop using it

Fireduck
2018-06-23 15:39:53
and then the miner will detect that as a stall and reconnect/resubscribe

Fireduck
2018-06-23 15:40:09
which will get it a new work unit that actually works with the pool

Fireduck
2018-06-23 15:40:19
so it is a few minutes of downtime for the miner

Fireduck
2018-06-23 15:40:40
it would be better to do the failover code properly in the miner and give multiple pool hosts

Fireduck
2018-06-23 16:00:57
The miner could also try the resubscribe when the share is rejected instead of waiting for stale work.

Protovist
2018-06-23 16:01:30
That would be smart

Fireduck
2018-06-23 16:01:42
Could also add a heart beat stream

Fireduck
2018-06-23 16:02:12
I was noticing that after restarting the pool last night.

Protovist