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

TykTechnologies / tyk / 5946 / 2

Build:
DEFAULT BRANCH: master
Ran 08 Jan 2019 10:23PM UTC
Files 105
Run time 27s
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

08 Jan 2019 09:35PM UTC coverage: 61.363% (+0.02%) from 61.348%
LATEST_GO=true

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

Source Files on job 5946.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5444
  • Travis Job 5946.2
  • ac2d3392 on github
  • Prev Job for LATEST_GO=true on master (#5917.2)
  • Next Job for LATEST_GO=true on master (#5961.2)
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

© 2026 Coveralls, Inc