-
Notifications
You must be signed in to change notification settings - Fork 51
Varnish and Varnish-Agent start order #191
Comments
It looks like we should improve the sysv/systemd services to account for this dependency. And also take advantage of the shmlog timeout for versions where it is supported (I think 4.1+). |
@dridi What do you mean shmlog timeout? I did a quick google and it was not clear. |
See the http://varnish.org/docs/4.1/reference/varnishlog.html Between the moment where your service manager starts Varnish (even before the agent, assuming correct dependencies) it can take time until Varnish is actually ready. For example it might take time to allocate dozens of gigs on disk for a file-based storage. So even if varnish is started, it may not be ready so it may take noticeable time until the agent gets a hold on the SHared Memory LOG (shmlog). |
@carlosabalde, you may want to subscribe to this issue. |
Thanks. Already subscribed :) |
@dridi thanks, in my head, I read this that the agent would watch the shmlog until it saw that varnish was online. |
@freshteapot it depends on how ready you expect Varnish to be. We have a solution for this in Varnish that I would like to discuss further with @denisbr before I do anything in utilities like the agent. |
The Since we are dropping the secret file from varnish packaging, this is now a non-issue. |
As in this Github issue: varnish/vagent2#191 the permissions for /etc/varnish/secret needs to be 0640 and its owners root:varnish to prevent problems with the starting order.
When starting the Agent it is required that Varnish is already running, otherwise syslog gets filled with logs like the ones below:
This issue is a follow-up of the 14367 ticket.
The text was updated successfully, but these errors were encountered: