Simplify hostname-based startup delay logic with consistent hash-based approach 11/140711/1
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 17 Apr 2025 16:38:54 +0000 (17:38 +0100)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 17 Apr 2025 16:38:54 +0000 (17:38 +0100)
commit51bec9275379e5f693398d3dc5d2bb2ebbd07065
tree6c1e19fe8c09922bccde591d77a858a992917724
parent98db0ffdc107b8ca8a66af61bead58b62fb46514
Simplify hostname-based startup delay logic with consistent hash-based approach

- Removed conditional logic based on last character of the hostname

- Applied a uniform hash-based delay calculation up to 5000 ms

- Improves consistency and simplifies the code logic

- Updated JavaDoc to reflect the new approach

Issue-ID: CPS-2752
Change-Id: Ic9e5cffb7396695e90b94edba79984f7f0f859aa
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-application/src/main/java/org/onap/cps/startup/InstanceStartupDelayManager.java
cps-application/src/test/groovy/org/onap/cps/startup/InstanceStartupDelayManagerSpec.groovy