5 ms·
> Dynamically scaling horizontally is not something "linux" can do for you It can, depending on your definition of horizontal, and whether you accept that tool
by sgarland 3y ago
> Dynamically scaling horizontally is not something "linux" can do for you
It can, depending on your definition of horizontal, and whether you accept that tools like HAProxy fall under the realm of “Linux administration.”
systemd can spawn N services from a single definition file, which can then register with the load balancer. A small shell script could monitor those service cgroups for basic metrics like memory or CPU utilization, and then command systemd to scale up/down. This is horizontal from the app’s perspective.
I’m not suggesting the above is a great idea, and you’d probably be better off with container orchestration of some kind – but tbf, all that’s doing is encapsulating cgroups and monitoring consumption to command scaling.