Varnish Error 503 Service Unavailable
        Posted  
        
            by 
                alfish
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by alfish
        
        
        
        Published on 2012-09-19T02:39:42Z
        Indexed on 
            2012/09/19
            3:40 UTC
        
        
        Read the original article
        Hit count: 542
        
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.
© Server Fault or respective owner