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
<p>Enables the <ahref="https://docs.haproxy.org/3.2/configuration.html#5.2-send-proxy-v2">PROXY protocol v2</a>.
199
199
HAProxy prepends the original client IP address to the TCP connection so that Keycloak sees the real source IP instead of HAProxy’s address.
200
-
This requires Keycloak to be configured with <code>--proxy-protocol-enabled=true</code> (see <ahref="#keycloak-configuration">Keycloak configuration</a>).
200
+
This requires Keycloak to be configured with <code>--proxy-protocol-enabled=true</code> (see <ahref="#keycloak-configuration-haproxy-passthrough">Keycloak configuration</a>).
201
201
Version 1 (<code>send-proxy</code>) is also supported.</p>
202
202
</dd>
203
203
<dtclass="hdlist1"><code>check port 9000 check-ssl verify none</code></dt>
<p>Configures the <ahref="https://docs.haproxy.org/3.2/configuration.html#5.2-inter">health check frequency</a>:
212
212
poll every 5 seconds, mark a server as down after 3 consecutive failures, and mark it as up again after 2 consecutive successes.
213
-
These values affect how quickly HAProxy detects that a Keycloak instance is shutting down (see <ahref="#graceful-shutdown-considerations">Graceful shutdown considerations</a>).</p>
213
+
These values affect how quickly HAProxy detects that a Keycloak instance is shutting down (see <ahref="#graceful-shutdown-considerations-haproxy-passthrough">Graceful shutdown considerations</a>).</p>
<p>With TLS passthrough, HAProxy cannot signal a connection close at the HTTP level.
257
-
The health check timing directly determines how long it takes HAProxy to detect that a Keycloak instance is shutting down and stop routing new connections to it.</p>
257
+
The HAProxy health check settings determine how long it takes for the proxy to detect that a Keycloak instance is shutting down and that connections should no longer be routed to it.</p>
258
258
</div>
259
259
<divclass="paragraph">
260
260
<p>With the health check settings from the configuration above (<code>inter 5s fall 3</code>), it takes up to 15 seconds (3 failures x 5-second interval) for HAProxy to mark a Keycloak instance as down.
261
261
During this period, Keycloak must remain running to serve in-flight requests.
262
-
Therefore, configure the <code>--shutdown-delay</code> to be at least as long as the detection time:</p>
262
+
Therefore, you need to configure the <code>--shutdown-delay</code> to be at least as long as the detection time:</p>
<p><spanclass="options-description">Length of the pre-shutdown phase during which the server prepares for shutdown.</span></p>
297
+
</div>
298
+
<divclass="openblock options-extended">
299
+
<divclass="content">
300
+
<divclass="paragraph">
301
+
<p><spanclass="options-description-extended">May be an ISO 8601 duration value, an integer number of seconds, or an integer followed by one of [ms, h, m, s, d]. This period allows for loadbalancer reconfiguration and draining of TLS/HTTP keepalive connections.</span></p>
0 commit comments