Group-level configuration
Configuring the routing is done either through SQL interfaces or through PGD CLI.
You can enable routing decisions by calling the bdr.alter_node_group_option() function.
For example:
SELECT bdr.alter_node_group_option('region1-group', 'enable_proxy_routing', 'true')You can disable it by setting the same option to false.
Additional group-level options affect the routing decisions:
route_writer_max_lag— Maximum lag in bytes of the new write candidate to be selected as write leader. If no candidate passes this, no writer is selected automatically.route_reader_max_lag