Open astelmashenko opened 2 years ago
@rickfish @mactaggart Can you please help look into this? Thanks
Sorry, I am no longer at my customer that used Postgres.
Additional details: it happens only while we are doing rollout update (blue-green deployment). If we stop and then start application it starts without issues. What we are playing with right now is graceful shutdown checks. And settings like
server.shutdown=graceful
spring.lifecycle.timeout-per-shutdown-phase=1m
also please check link https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html#deployment.cloud.kubernetes.container-lifecycle there is a note:
When Kubernetes sends a SIGTERM signal to the pod, it waits for a specified time called the termination grace period (the default for which is 30 seconds). If the containers are still running after the grace period, they are sent the SIGKILL signal and forcibly removed. If the pod takes longer than 30 seconds to shut down, which could be because you have increased spring.lifecycle.timeout-per-shutdown-phase, make sure to increase the termination grace period by setting the terminationGracePeriodSeconds option in the Pod YAML.
I'll publish update once we get deeper into it (if we get deeper). It is working now with those spring boot settings.
Describe the bug Startup issue, connection is closed and after that queues stop working.
Details Conductor version: 3.4.1 Persistence implementation: Postgres 11.12 on AWS Queue implementation: Postgres Lock: Redis
To Reproduce Steps to reproduce the behavior:
kubectl rollout restart deployment conductor
)Expected behavior Rollout startup without issues
Additional context