LoginSignup
2
2

More than 5 years have passed since last update.

Varnish 4.0でヘルスチェックに200を返す

Posted at

Varnish 4.0では、以下のようなVCLを書くとロードバランサ等からのヘルスチェックに200を返す事ができる。

default.vcl
vcl 4.0;

sub vcl_recv {
  if (req.url == "/healthcheck") {
    return(synth(200));
  }
}
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2