There are a lot of sites on the server (more than 1000). When LetsEncrypt certificates are automatically updated, nginx and apache2 are reloaded for each domain. It takes a lot of time.
Can I remove commands in “v-add-letsencrypt-domain”:
$BIN/v-restart-proxy
$BIN/v-restart-web
and move them closer to the end of “v-update-letsencrypt-ssl”? So that the reboot does not occur on every domain, but only once.
Yes but for a lot of domains it is not a “real” issue the limit is about 500 domains / 3hr or 10 accounts per 3 / hours. as we reuse each account. 500 domains an our are still “fine”
The restart of apache2 itself takes about 1-2 minutes. At this time, no sites is available. And since there are a lot of sites, it turns out that the server may be unavailable for a whole day. Therefore, I want to restart apache2 only once and not every time for each domain.