You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id The node keys will be derived from the server's numeric
22126
22126
identifier as set from "<span class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">id<span class="caret"></span></a><ul class="dropdown-menu"><li class="dropdown-header">This keyword is available in sections :</li><li><a href="#id%20%28Alphabetically%20sorted%20keywords%20reference%29">Alphabetically sorted keywords reference</a></li><li><a href="#id%20%28Bind%20options%29">Bind options</a></li><li><a href="#id%20%28Server%20and%20default-server%20options%29">Server and default-server options</a></li></ul></span>" or which defaults to its position
22127
-
in the server list.
22127
+
in the server list. This is the default. Note that only the 28
22128
+
lowest bits of the ID will be used (i.e. (id % 268435456)), so
22129
+
better only use values comprised between 1 and this value to
22130
+
avoid overlap.
22128
22131
22129
22132
addr The node keys will be derived from the server's address, when
22130
22133
available, or else fall back on "<span class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">id<span class="caret"></span></a><ul class="dropdown-menu"><li class="dropdown-header">This keyword is available in sections :</li><li><a href="#id%20%28Alphabetically%20sorted%20keywords%20reference%29">Alphabetically sorted keywords reference</a></li><li><a href="#id%20%28Bind%20options%29">Bind options</a></li><li><a href="#id%20%28Server%20and%20default-server%20options%29">Server and default-server options</a></li></ul></span>".
HAProxy processes are balancing traffic to the same set of servers. If the
22137
22140
server order of each process is different (because, for example, DNS records
22138
22141
were resolved in different orders) then this will allow each independent
22139
-
HAProxy processes to agree on routing decisions.
22142
+
HAProxy processes to agree on routing decisions. Note: "balance random" also
22143
+
uses "hash-type consistent", and the quality of the distribution will depend
22144
+
on the quality of the keys.
22140
22145
</pre><a class="anchor" name="id"></a><a class="anchor" name="5-id"></a><a class="anchor" name="5.2-id"></a><a class="anchor" name="id (Bind and server options)"></a><a class="anchor" name="id (Server and default-server options)"></a><div class="keyword"><b><a class="anchor" name="id"></a><a href="#5.2-id">id</a></b> <span style="color: #080"><value></span></div><pre class="text">May be used in the following contexts: tcp, http, log
22141
22146
22142
22147
Set a persistent ID for the server. This ID must be positive and unique for
0 commit comments