by techdragon · 4y ago · 0 comments
I would have preferred Nomad but the resource requirements are pretty high for the "control server" component. https://www.nomadproject.io/docs/install/production/requirem...
Nomad servers may need to be run on large machine instances.
We suggest having between 4-8+ cores, 16-32 GB+ of memory,
40-80 GB+ of fast disk and significant network bandwidth.
The core count and network recommendations are to ensure
high throughput as Nomad heavily relies on network communication
and as the Servers are managing all the nodes in the region and
performing scheduling. The memory and disk requirements are due to
the fact that Nomad stores all state in memory and will store two
snapshots of this data onto disk, which causes high IO in busy
clusters with lots of writes.
Obviously This is not going to fit on a group of Raspberry Pi's or other SBC computer nodes you can solar power out in a field.This manages about 100 client nodes. No need for a cluster since we don't need high availability on our control plane, and there's no actual state stored there that isn't created from our CI pipeline.
Nomad servers could start with 300mhz, 100mb of memory, and eMMC storage and run a RaspberryPI cluster just fine. Our most important resource guidance is all the way over in our Monitoring docs!
> Nomad servers' memory, CPU, disk, and network usage all scales linearly with cluster size and scheduling throughput.
https://developer.hashicorp.com/nomad/docs/operations/monito...
Any cluster can start with 300mhz and 100mb as long as they monitor usage and scale appropriately.
We're going to try to update our Requirements docs to add this nuance and guidance on how to calculate requirements based on projected load. We recently spent some time improving our heartbeat docs, and I think the approach we took there will serve us well for system requirements: https://developer.hashicorp.com/nomad/docs/configuration/ser...
Thanks for the info! and for doing what Hashicorp seemed too busy to do themselves.