Scheduled Restarts
Scheduled Restarts
In a perfect world you can just leave services running indefinitely and all is well. We do not live in a perfect world. To be sure that no memory leaks grow (assuming their could be some) I have set the services to restart everyday between 5:45am - 6:00am UTC. This will equate to around the 2:45am - 3:00am EST. In any case this is a very slow period of time for the Instance which is why I chose this time frame. Now it takes seconds for any one of the services to reload and you will really not even notice if it happens while you are doing something on the Instance. The benefits should far outweigh any deficit experienced do to the restarts.
note: In regards to memory leaks it is really only php-fpm that would needs restarting. Though restarting mariadb, php-fpm and apache (in that order) will keep the whole system fresh. Besides I needed to be sure that apache will get restarted whenever my CA cert from EncryptIt gets renewed to be sure that the new cert will be used.
Have a great day and Enjoy you stay on the Fediverse!