-->

清漆503服务不可用(varnish 503 service unavailable)

2019-08-01 20:08发布

我清漆的版本是3.0

我的服务器工作得很好,而我卷曲的URL,但是当使用清漆缓存它返回503 service unavailable偶然。

日志信息是喜欢:

0 Debug        - "VCL_error(200, OK)"
24 VCL_call     c recv error
24 VCL_call     c error deliver
24 SessionClose c error
0 Debug        - "VCL_error(200, OK)"
27 VCL_call     c recv error
27 VCL_call     c error deliver
27 SessionClose c error
0 Debug        - "VCL_error(200, OK)"
16 VCL_call     c recv error
16 VCL_call     c error deliver
16 SessionClose c error
14 Debug        - "Write error, retval = 2998272, len = 8465870, errno = Success"
0 Debug        - "VCL_error(200, OK)"
14 VCL_call     c recv error
14 VCL_call     c error deliver
14 SessionClose c error
0 Debug        - "VCL_error(200, OK)"
21 VCL_call     c recv error
21 VCL_call     c error deliver
21 SessionClose c error

PS:服务器响应200的时候我卷曲或键入浏览器的URL。

Answer 1:

清漆503可以是固定的通过下面的步骤:

  1. 增加connect_timeout.first_byte_timeout.between_bytes_timeout在你的后端设置:

     backend default { .host = "www.example.com"; .connect_timeout = 5s; .first_byte_timeout = 10s; .between_bytes_timeout = 10s; } 
  2. 开始时,清漆参数增加至8192。

     varnishd [options] http_resp_hdr_len=8192 
  3. 结帐您networkbackend server

    如果第1步和第2步帮不了你,请检查您network connectionbanckend server's availability



文章来源: varnish 503 service unavailable