mirror of
https://github.com/bytedance/g3.git
synced 2026-05-04 06:30:43 +00:00
initial commit
This commit is contained in:
commit
13716f4923
1425 changed files with 163227 additions and 0 deletions
44
g3proxy/doc/configuration/resolvers/fail_over.rst
Normal file
44
g3proxy/doc/configuration/resolvers/fail_over.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
.. _configuration_resolver_fail_over:
|
||||
|
||||
fail_over
|
||||
=========
|
||||
|
||||
This is a virtual resolver designed to fail over between (real) resolvers.
|
||||
|
||||
Rules for result selection:
|
||||
|
||||
1. The **success** result of the primary resolver will always be used before the timeout.
|
||||
2. The first **success** result either from the primary or the standby resolver will be used after the timeout.
|
||||
3. If no success result, the last error one will be used.
|
||||
|
||||
primary
|
||||
-------
|
||||
|
||||
**required**, **type**: string
|
||||
|
||||
Set the primary resolver to use.
|
||||
|
||||
standby
|
||||
-------
|
||||
|
||||
**required**, **type**: string
|
||||
|
||||
Set the standby resolver to use.
|
||||
|
||||
timeout
|
||||
-------
|
||||
|
||||
**optional**, **type**:
|
||||
|
||||
Set the timeout for primary lookup.
|
||||
|
||||
**default**: 100ms
|
||||
|
||||
negative_ttl
|
||||
------------
|
||||
|
||||
**optional**, **type**: u32
|
||||
|
||||
Time-to-Live (TTL) for negative caching of failed DNS lookups.
|
||||
|
||||
**default**: 30
|
||||
Loading…
Add table
Add a link
Reference in a new issue