varnish 503 service unavailable

百般思念 提交于 2019-12-03 00:40:37
lichengwu

varnish 503 can be fixed by steps below:

  1. Increase the connect_timeout,.first_byte_timeout and .between_bytes_timeout in you backend setting:

    backend default {
      .host = "www.example.com";
      .connect_timeout = 5s;
      .first_byte_timeout = 10s;
      .between_bytes_timeout = 10s;
    }
    
  2. Increase the parameter to 8192 when start varnish.

    varnishd [options] http_resp_hdr_len=8192
    
  3. Checkout you network or backend server.

    If Step 1 and Step 2 can not help you, please check you network connection and banckend server's availability.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!