aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose/config/nginx
AgeCommit message (Collapse)AuthorFilesLines
2024-10-09Autodiscover cps-and-ncmp containers when load balancinghalil.cakal1-3/+1
- remove hard-coded container names from load balancer(nginx) and prometheus Issue-ID: CPS-2437 Change-Id: Ia64b949c2eb3e4d67e123b046e66d5bfdda2c801 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-10-03Policy Executor: handle errors, part 2ToineSiebelink1-0/+1
(fighting between IntelliJ and Checkstyle best practices) - non-2xx responses are processed using web client exceptions - handle unknown host exception - upgraded spotbugs (checkstyle and related mvn plugin) - fixed some small spotbugs due to upgrade - added commented instructions in docker compose to enable debugging - added some environment variables for policy executor configuration - extract out Sleeper in stub service to achieve 100% coverage - added cause to Policy Executor exceptions where applicable - ignored (new) spotbug rule about catch NPE because of issue in 3pp - ignored (new) spotbug rule about \n in string due to multiline string block Issue-ID: CPS-2412 Change-Id: I6835a73320c436cbeea12cc7a06f15899eec7bf1 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-09-19Make nginx load balance using least-connectionsdanielhanrahan1-1/+3
By default, nginx uses round robin for load balancing. Round robin works well when all requests take same amount of time, but is not optimal for dynamic loads. With least-connected load balancing, nginx will try not to overload a busy server with excessive requests, sending requests to a less busy server instead. Issue-ID: CPS-2415 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I0e7d6b36a79aa6541f2f5f667746f2792d55e54b
2024-08-23Support 2 CPS instances in Prometheus/Grafanadanielhanrahan2-0/+56
- Specify both cps-and-ncmp instances in Prometheus config - Add default JVM Micrometer dashboard to Grafana, taken from https://grafana.com/grafana/dashboards/4701-jvm-micrometer/ Issue-ID: CPS-2314 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I24a42b8b4771a7d9341e920fbd85fa72e1a3518e