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

mp911de / lettuce / 1156
92%

Build:
DEFAULT BRANCH: master
Ran 26 Sep 2016 02:34AM UTC
Jobs 1
Files 252
Run time 11s
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
1156

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

10406 of 11210 relevant lines covered (92.83%)

0.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/main/java/com/lambdaworks/redis/cluster/topology/TopologyComparators.java
10
100.0
src/main/java/com/lambdaworks/redis/resource/DefaultClientResources.java
13
100.0
src/main/java/com/lambdaworks/redis/protocol/RedisStateMachine.java
15
100.0
src/main/java/com/lambdaworks/redis/protocol/ConnectionWatchdog.java
Jobs
ID Job ID Ran Files Coverage
2 1156.2 (PROFILE=netty-41) 26 Sep 2016 02:34AM UTC 0
92.83
Travis Job 1156.2
Source Files on build 1156
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1156
  • Pull Request #365
  • PR Base - master (#1154)
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