Set backoff-jitter for call-home devices 54/109954/2
authorPeter Suna <peter.suna@pantheon.tech>
Wed, 24 Jan 2024 14:36:54 +0000 (15:36 +0100)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Thu, 25 Jan 2024 08:59:34 +0000 (08:59 +0000)
Call-home devices are not using datastore defaults. We have to set
the default value for backoff-jitter programatically.

JIRA: NETCONF-1193
Change-Id: I2ff37fce1ccd195bba9768257bb96886095b6d0d
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallHomeMountService.java

index dbb2671148cfffa7699214d53c3b9064c1b2d7ec..b3da20539195a10bdcc0813579bd99b8bc7e5084 100644 (file)
@@ -200,6 +200,7 @@ public final class CallHomeMountService implements AutoCloseable {
                 .setMinBackoffMillis(Uint16.valueOf(2000))
                 .setMaxBackoffMillis(Uint32.valueOf(1800000))
                 .setBackoffMultiplier(Decimal64.valueOf("1.5"))
+                .setBackoffJitter(Decimal64.valueOf("0.1"))
                 .setKeepaliveDelay(Uint32.valueOf(120))
                 .setConcurrentRpcLimit(Uint16.ZERO)
                 .setActorResponseWaitTime(Uint16.valueOf(5))