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

mp911de / lettuce / 1151
92%

Build:
DEFAULT BRANCH: master
Ran 23 Sep 2016 05:10AM UTC
Jobs 2
Files 252
Run time 26s
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
1151

Pull #365

travis-ci

web-flow
Add jitter backoff strategies for spreading reconnection timing

When users use exponential backoff streategy and connection pool with more than thousands of application servers, sometimes connection bursting is occured in Redis instance.
Because it's reconnection timings are all same when Redis server is under slowlog or network problem.
This patch will fix the problem using well known jitter backoff strategies.

Equal Jitter

    sleep = random_between(0, min(cap, base * 2 ** attempt))

Full Jitter

    temp = min(cap, base * 2 ** attempt)
    sleep = temp / 2 + random_between(0, temp / 2)

Decorrelated Jitter

    sleep = min(cap, random_between(base, sleep * 3))

Rerenrence: https://www.awsarchitectureblog.com/2015/03/backoff.html
Pull Request #365: Add jitter backoff strategies for spreading reconnection timing

10413 of 11204 relevant lines covered (92.94%)

1.86 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/main/java/com/lambdaworks/redis/protocol/CommandHandler.java
14
100.0
src/main/java/com/lambdaworks/redis/protocol/ConnectionWatchdog.java
Jobs
ID Job ID Ran Files Coverage
1 1151.1 (PROFILE=netty-40) 23 Sep 2016 05:10AM UTC 0
92.74
Travis Job 1151.1
2 1151.2 (PROFILE=netty-41) 23 Sep 2016 05:10AM UTC 0
92.79
Travis Job 1151.2
Source Files on build 1151
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1151
  • Pull Request #365
  • PR Base - master (#1149)
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