network_resiliency 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/network_resiliency/version.rb +1 -1
- data/lib/network_resiliency.rb +3 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 251e42c1b03eaa4cb6322a74da1f2b62ee0f08bc48112bd3c5858d1a9c888992
|
4
|
+
data.tar.gz: 87fbd7883d8c3d1ae55287253c88a9f3375b3b8225e44e53ca9443cd27acde46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73a6fe0b5c7c3a97b9d8780c8bed84a8c4b18709dd569d11e13d3aa73a9356a86f0876d40b98e0a544bd8e2866c56062d2351035403e88a84e0ada602d6e2db1
|
7
|
+
data.tar.gz: b7b7229f80aed636d7ac8fda9fe19a8ed415918f323822f0e42ee2c9be23b1594598005b23afaf87c1757745483ac5a9b20063773a99fd5471e7180b15e4481b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/network_resiliency.rb
CHANGED
@@ -361,14 +361,9 @@ module NetworkResiliency
|
|
361
361
|
|
362
362
|
# make a second, more lenient attempt
|
363
363
|
|
364
|
-
if p99 *
|
365
|
-
|
366
|
-
timeouts << p99 * 100
|
367
|
-
elsif p99 * 10 < max
|
368
|
-
# use remaining time for second attempt
|
369
|
-
timeouts << max - p99
|
364
|
+
if p99 * 10 < max
|
365
|
+
timeouts << p99 * 10
|
370
366
|
else
|
371
|
-
# max is smallish
|
372
367
|
timeouts << max
|
373
368
|
|
374
369
|
NetworkResiliency.statsd&.increment(
|
@@ -391,7 +386,7 @@ module NetworkResiliency
|
|
391
386
|
timeouts << p99
|
392
387
|
|
393
388
|
# second attempt
|
394
|
-
timeouts << p99 *
|
389
|
+
timeouts << p99 * 10
|
395
390
|
|
396
391
|
NetworkResiliency.statsd&.increment(
|
397
392
|
"network_resiliency.timeout.missing",
|