From 7a4968ee865f7773d72ad6be9e9e15f6fffb2915 Mon Sep 17 00:00:00 2001 From: fja-odoo Date: Tue, 8 Jul 2025 10:11:08 +0200 Subject: [PATCH] [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 --- 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 9a407b5e19..2f9a645faa 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -221,6 +221,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