mirror of
https://github.com/optim-enterprises-bv/openstack-helm-infra.git
synced 2026-01-11 17:55:27 +00:00
c43331d67acc03087e40dc31763e97ad6f08cc7b
* add preStop hook to trigger Fast Shutdown * disable readiness probe by default When Kubernetes terminates a pod, the container runtime typically sends a SIGTERM signal to pid 1 in each container [0]. PostgreSQL interprets SIGTERM as a request to do a "Smart Shutdown" [1]. This can take minutes (often exhausting the termination grace period), and during this time, new connections are not being serviced. Now that postgresql has a single replica, this behavior is undesirable. If we kill the pod (e.g. in an upgrade), we probably want it to come back as soon as possible. This change adds a preStop hook that sends a SIGINT to postgresql in order to trigger a "Fast Shutdown". In addition, the readiness probe is disabled by default, since it adds no value in a single-replica scenario. 0: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination 1: https://www.postgresql.org/docs/9.6/server-shutdown.html Change-Id: Ib5f3d2a49e55332604c91f9a011e87d78947dbef
==================== Openstack-Helm-Infra ==================== Mission ------- The goal of OpenStack-Helm-Infra is to provide charts for services or integration of third-party solutions that are required to run OpenStack-Helm. For more information, please refer to the OpenStack-Helm repository_. .. _repository: https://github.com/openstack/openstack-helm Communication ------------- * Join us on `IRC <irc://chat.freenode.net:6697/openstack-helm>`_: #openstack-helm on freenode * Community `IRC Meetings <http://eavesdrop.openstack.org/#OpenStack-Helm_Team_Meeting>`_: [Every Tuesday @ 3PM UTC], #openstack-meeting-alt on freenode * Meeting Agenda Items: `Agenda <https://etherpad.openstack.org/p/openstack-helm-meeting-agenda>`_ * Join us on `Slack <https://kubernetes.slack.com/messages/C3WERB7DE/>`_ - #openstack-helm Contributing ------------ We welcome contributions. Check out `this <CONTRIBUTING.rst>`_ document if you would like to get involved.
Description
Languages
Smarty
74%
Shell
24.1%
Python
1.4%
Jinja
0.3%
Makefile
0.2%