• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 5946

Build:
DEFAULT BRANCH: master
Ran 08 Jan 2019 10:23PM UTC
Jobs 1
Files 105
Run time 38s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5946

push

travis-ci

web-flow
Fix host checker (#2049)

Current implementation has multiple flaws. 
At the moment first HostDown event happens after a number of specified tries, and if the host is still down, the next HostDown event will happen after the same number of tries. So if `time_wait` is 10s, and `failure_trigger_sample_size` 2, it means 20 seconds between events. At the same time we set redis expiration key for "host down" key, to `time_wait` + 1, which means key will be expired 9 seconds before second HostDown event. This PR fix it by setting expiration time to `time_wait` * `failure_trigger_sample_size`

Another issue is how host considered to be up. At the moment on first succesful attempt we just enabled the host, however if upstream is unstable, having single healthy attempt does not mean that it is recovered. This change makes Host UP logic work exactly like Host Down and now consider number of tries. 

Fix https://github.com/TykTechnologies/tyk/issues/2036

9928 of 16179 relevant lines covered (61.36%)

0.68 hits per line

Jobs
ID Job ID Ran Files Coverage
2 5946.2 (LATEST_GO=true) 08 Jan 2019 10:23PM UTC 0
61.36
Travis Job 5946.2
Source Files on build 5946
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5946
  • ac2d3392 on github
  • Prev Build on master (#5917)
  • Next Build on master (#5961)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc