g3proxy: only allow id match in user egress path selection

This commit is contained in:
Zhang Jingqiang 2024-04-19 16:47:57 +08:00
parent 2997dc815c
commit e3ae1fa2f7
21 changed files with 161 additions and 337 deletions

View file

@ -24,16 +24,11 @@ or just one :ref:`peer <config_escaper_dynamic_peer>`.
The following egress path selection methods is supported:
* :ref:`by json <proto_egress_path_selection_by_json>`
* :ref:`by id map <proto_egress_path_selection_by_id_map>`
The json value will be either of:
If matched, a :ref:`peer <config_escaper_dynamic_peer>` with the same `ID` will be used.
- just one :ref:`peer <config_escaper_dynamic_peer>`
- an array of :ref:`peer <config_escaper_dynamic_peer>`, a random one will be selected
- just one :ref:`peer id <config_escaper_dynamic_peer_id>`, the ID should be present in escaper config
- an array of :ref:`peer id <config_escaper_dynamic_peer_id>`, a usable ID wil be selected randomly
.. versionadded:: 1.7.22
.. versionadded:: 1.9.0
Config Keys
===========