So I'm making a load balancer that compiles to a binary. This will be scaled across multiple servers.
To update, the program itself will check a GitHub repo for a new release every 5 minutes, if there is a new release, it downloads it overwriting the old one, then would run the command systemctl restart lb
.
Now my question is, is this a bad practice, are there any disadvantages to doing this, and is there a better practice for updating other than this?
--
Just a side note, running a cronjob is not ideal.