3 ms·
I deployed a binary golang agent [1] across about 2000 raspberry pi class machines (for litecoin mining) using overseer [2]. It allowed me to implement zero do
by latchkey 8y ago
I deployed a binary golang agent [1] across about 2000 raspberry pi class machines (for litecoin mining) using overseer [2].
It allowed me to implement zero downtime upgrades, which was pretty cool. Internally within the agent, I used the context pkg to implement with a 'Manager' which provided cron like functionality where each thing could be shutdown gracefully [3]. Used the same mechanism to shut the internal webserver down gracefully as well [4].
[1] https://github.com/jpillora/overseer https://github.com/jpillora/overseer
[2] https://github.com/blockassets/bam_agent https://github.com/blockassets/bam_agent
[3] https://github.com/blockassets/bam_agent/blob/f7edce599b770b26189fd2c2fbb7cff81ac827a6/monitor/manager.go#L53 https://github.com/blockassets/bam_agent/blob/f7edce599b770b...
[4] https://github.com/blockassets/bam_agent/blob/f7edce599b770b26189fd2c2fbb7cff81ac827a6/web_server.go#L50 https://github.com/blockassets/bam_agent/blob/f7edce599b770b...