Edža
Edža

Reputation: 91

Varnish FetchError for up to 30s after reload

I have a varnish 6 setup with 26 backends and after ram upgrade I have a problem where it throws 503 error after reload for about 15-30s and varnishlog says its - FetchError backend reload_20190417_131210_1488.server15: unhealthy

Full headers from varnishlog:

  • << BeReq >> 106235039
  • Begin bereq 106235038 fetch
  • Timestamp Start: 1555506951.751066 0.000000 0.000000
  • BereqMethod GET
  • BereqURL /_files/b6/ee/59/4f/af/b6ee594fafd3f13556216d89452f3dd4_1.jpg
  • BereqProtocol HTTP/1.1
  • BereqHeader User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
  • BereqHeader Accept: image/webp,image/apng,image/,/*;q=0.8
  • BereqHeader Referer: http://www.example.com/
  • BereqHeader Accept-Language: lv
  • BereqHeader x-range: bytes=1135466-1135466
  • BereqHeader grace: none
  • BereqHeader X-Forwarded-For: 84.237.232.159
  • BereqHeader host: www.example.com
  • BereqHeader Surrogate-Capability: key=ESI/1.0
  • BereqHeader Accept-Encoding: gzip
  • BereqHeader X-Varnish: 106235039
  • VCL_call BACKEND_FETCH
  • VCL_return fetch
  • FetchError backend reload_20190417_131210_1488.server15: unhealthy
  • Timestamp Beresp: 1555506951.751106 0.000040 0.000040
  • Timestamp Error: 1555506951.751111 0.000045 0.000005
  • BerespProtocol HTTP/1.1
  • BerespStatus 503
  • BerespReason Service Unavailable
  • BerespReason Backend fetch failed
  • BerespHeader Date: Wed, 17 Apr 2019 13:15:51 GMT
  • BerespHeader Server: Varnish
  • VCL_call BACKEND_ERROR
  • BerespHeader Content-Type: text/html; charset=utf-8
  • BerespHeader Retry-After: 5
  • VCL_return deliver
  • Storage malloc Transient
  • Length 286
  • BereqAcct 0 0 0 0 0 0
  • End

We had 16 GB ram will malloc 8 GB and now it is 32 GB with 23 GB malloc. We are using varnish 6 with VSF so it is pretty complex setup but it worked just fine. It compiles just fine without any error but throws 503 backend fetch fail to some domains after reload.

Upvotes: 0

Views: 398

Answers (1)

Guillaume Quintard
Guillaume Quintard

Reputation: 619

The FetchError is pretty clear, the backend is sick. Check it using varnishadm backend.health, it should tell you what is failing.

Showing your backend definition would help too.

Upvotes: 0

Related Questions