Add config reloading with SIGUSR2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>`_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user