Miretpl commented on code in PR #74593:
URL: https://github.com/apache/airflow/pull/74593#discussion_r4633761322


##########
chart/values.yaml:
##########
@@ -2925,17 +2925,16 @@ pgbouncer:
     pod: {}
     container: {}
 
-  # Container level lifecycle hooks
-  containerLifecycleHooks:
-    preStop:
-      exec:
-        # Allow existing queries clients to complete within 120 seconds
-        command: ["/bin/sh", "-c", "killall -INT pgbouncer && sleep 120"]
+  # Container level lifecycle hooks.
+  # No preStop hook is set by default. On shutdown Kubernetes sends SIGTERM to
+  # PgBouncer, which keeps serving the clients that are already connected and
+  # exits once they have all disconnected (or when 
terminationGracePeriodSeconds
+  # runs out).
+  containerLifecycleHooks: {}

Review Comment:
   ```suggestion
     # On shutdown Kubernetes sends SIGTERM to PgBouncer, which keeps serving 
the
     # clients that are already connected and exits once they have all 
disconnected
     # (or when `terminationGracePeriodSeconds` runs out).
     containerLifecycleHooks: {}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to