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:
parent
71febe3d3b
commit
1fb9051ae1
2 changed files with 15 additions and 8 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue