Skip to content

301/302 redirections and http_body_healthy_match #100

@sparanoid

Description

@sparanoid

When dealing with replica that has redirections:

curl -I https://experiments-alicdn.sparanoid.net/algolia.js
HTTP/1.1 302 Moved Temporarily
Date: Sat, 25 Sep 2021 13:28:37 GMT
Location: https://cdn.jsdelivr.net/algoliasearch/latest/algoliasearch.min.js
...

In Vigil config:

[[probe.service.node]]
id = "algolia-search"
label = "Algolia Search"
mode = "poll"
replicas = [
  "https://experiments-alicdn.sparanoid.net/algolia.js",
]
http_body_healthy_match = "algoliasearch"

The http_body_healthy_match will fall since the body are changed:

<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

That would be great if there's an option to follow directions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions