Skip to content

Commit 7a4968e

Browse files
fja-odooJulien00859
andcommitted
[IMP] developer/reference/cli: --db_replica_(host|port)
The option was introduced last year but the documentation hasn't been updated accordingly. Co-authored-by: Julien Castiaux <[email protected]>
1 parent 797448d commit 7a4968e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

content/developer/reference/cli.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,20 @@ Database
221221

222222
port the database listens on, defaults to 5432
223223

224+
.. option:: --db_replica_host <hostname>
225+
226+
host for the replica server
227+
228+
When set, it redirect all read-only transactions to this host, instead of of the primary
229+
database at ``--db_host``.
230+
231+
The host can be set to an empty string or to the same value as ``--db_host`` to simulate a
232+
replicated environnement, for development.
233+
234+
.. option:: --db_replica_port <port>
235+
236+
port the replica database listens on, defaults to 5432
237+
224238
.. option:: --db-filter <filter>
225239

226240
hides databases that do not match ``<filter>``. The filter is a

0 commit comments

Comments
 (0)