Add config reloading with SIGUSR2

This commit is contained in:
laurenceisla
2021-07-24 18:52:52 -05:00
committed by GitHub
parent 5cbabe4a21
commit 2e50a22e64
2 changed files with 37 additions and 0 deletions
+34
View File
@@ -60,6 +60,40 @@ role-claim-key String .role
raw-media-types String
======================== ======= ================= ========
.. _config_reloading:
Configuration Reloading
-----------------------
To reload the configuration without restarting the PostgREST server send a SIGUSR2 signal to the server process.
.. code:: bash
killall -SIGUSR2 postgrest
.. note::
To refresh the cache in docker:
.. code:: bash
docker kill -s SIGUSR2 <container>
# or in docker-compose
docker-compose kill -s SIGUSR2 <service>
.. important::
The following settings will not be reread when reloading the configuration. You will need to restart PostgREST in that case.
* ``db-uri``
* ``db-pool``
* ``db-pool-timeout``
* ``server-host``
* ``server-port``
* ``server-unix-socket``
* ``server-unix-socket-mode``
.. _db-uri:
db-uri
+3
View File
@@ -25,6 +25,9 @@ Added
* Allow :ref:`connection_poolers` such as PgBouncer in transaction pooling mode.
|br| -- `@laurenceisla <https://github.com/laurenceisla>`_
* Allow :ref:`config_reloading` by sending a SIGUSR2 signal.
|br| -- `@steve-chavez <https://github.com/steve-chavez>`_
* Config options for showing a full OpenAPI output regardless of the JWT role privileges and for disabling it altogether. See :ref:`openapi-mode`.
|br| -- `@steve-chavez <https://github.com/steve-chavez>`_