Control start-up delay: set host-names explicitly in docker compose 26/140826/7
authorToineSiebelink <toine.siebelink@est.tech>
Mon, 28 Apr 2025 08:15:06 +0000 (09:15 +0100)
committerToineSiebelink <toine.siebelink@est.tech>
Thu, 1 May 2025 13:30:08 +0000 (14:30 +0100)
commit9202b5b16450c05bbe28a97b1699bddf3f28b258
tree544d3321eabca8fd3d88f503c2acd9e4b98b776d
parentaff39d421c36680b097cb59c298241aa33f460d0
Control start-up delay: set host-names explicitly in docker compose

- Use sequenced hostnames for cps-ncmp  in docker compose based on a common template
- Use explicit port definitions for each instance instead of range (instrumentation/Grafana)
- Calculated startup delay as sequence number times 1 second when correct pattern used
- Fall back on hash code modulus 10 seconds otherwise
- clear logging which algorithm is used, why and outcome
- update kpi and endurance environment files to use correct instance names

Issue-ID:CPS-2752

Change-Id: Ie788aff60d6e9c470136b2a2051d0c5ccc173e9a
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-application/src/main/java/org/onap/cps/Application.java
cps-application/src/main/java/org/onap/cps/startup/InstanceStartupDelayManager.java
cps-application/src/test/groovy/org/onap/cps/startup/InstanceStartupDelayManagerSpec.groovy
docker-compose/config/nginx/nginx.conf
docker-compose/docker-compose.yml
docker-compose/env/endurance.env
docker-compose/env/kpi.env