Varnish Error 503 Service Unavailable
- by alfish
On Debian I have Varnish cache in front of apache and get 503 error when I try to get urls which are rarely fetched.
I've put 10 min timeout in default.vlc:
backend default {
.host = "127.0.0.1";
.port = "81";
.connect_timeout = 600s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
}
Also I have in /etc/default/varnish
DAEMON_OPTS="-a :80 \
-T localhost:6082 \
-b localhost:81 \
-u varnish -g varnish \
-S /etc/varnish/secret \
-p thread_pools=7 \
-p thread_pool_min=200 \
-p thread_pool_max=5000 \
-p listen_depth=2048 \
-p thread_pool_add_delay=2\
-p lru_interval=1800 \
-h classic,169313 \
-p session_linger=100 \
-p sess_workspace=262144 \
-p connect_timeout=600 \
-p max_restarts=6 \
-s malloc,7G"
I appreciate your hints to resove this problem.