From cfdf765c8d196ef7b36aeecba2f3a717894f81b3 Mon Sep 17 00:00:00 2001 From: fja-odoo Date: Tue, 8 Jul 2025 08:11:08 +0000 Subject: [PATCH] [IMP] developer/reference/cli: --db_replica_(host|port) The option was introduced last year but the documentation hasn't been updated accordingly. closes odoo/documentation#14437 X-original-commit: f4b3b7f03af471ebfc2b58ba3245bb63c743b642 Signed-off-by: Julien Castiaux (juc) Co-authored-by: Julien Castiaux --- content/developer/reference/cli.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index 430ed67e6..8034d870f 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -224,6 +224,20 @@ Database port the database listens on, defaults to 5432 +.. option:: --db_replica_host + + host for the replica server + + When set, it redirect all read-only transactions to this host, instead of of the primary + database at ``--db_host``. + + The host can be set to an empty string or to the same value as ``--db_host`` to simulate a + replicated environnement, for development. + +.. option:: --db_replica_port + + port the replica database listens on, defaults to 5432 + .. option:: --db-filter hides databases that do not match ````. The filter is a