1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-25 13:10:02 +00:00

Broaden HTTPoison status code inspection

Rather than enforcing a 200 status code, the instance query is deemed a
success if the status code is <400. Various services return 200-399
status codes that don't necessarily indicate an error, but may have to
do with how the instance was configured.
This commit is contained in:
Ben Busby 2021-12-28 12:33:04 -07:00
parent 71febe3d3b
commit 1fb9051ae1
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
2 changed files with 15 additions and 8 deletions

View file

@ -37,8 +37,9 @@ For example:
The app runs with an internally scheduled cron task that queries all instances
for services defined in [services.json](services.json) every 5 minutes. For
each instance, as long as the instance takes <5 seconds to respond and returns
a 200 status code, the instance is added to a list of available instances for
that particular service. If not, it is discarded until the next update period.
a successful response code, the instance is added to a list of available
instances for that particular service. If not, it is discarded until the next
update period.
Farside's routing is very minimal, with only the following routes: