Skip to content

Commit f4ba602

Browse files
author
HAProxy Community
committed
Update docs for 2.8
1 parent a92f7f6 commit f4ba602

File tree

3 files changed

+60
-50
lines changed

3 files changed

+60
-50
lines changed

docs/2.8/configuration.html

Lines changed: 43 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>HAProxy version 2.8.14-5 - Configuration Manual</title>
5+
<title>HAProxy version 2.8.14-80 - Configuration Manual</title>
66
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
77
<link href="https://raw.githubusercontent.com/thomaspark/bootswatch/v3.3.7/cerulean/bootstrap.min.css" rel="stylesheet" />
88
<link href="../css/page.css?0.4.2-15" rel="stylesheet" />
@@ -4294,7 +4294,7 @@
42944294
You can use <strong>left</strong> and <strong>right</strong> arrow keys to navigate between chapters.<br>
42954295
</p>
42964296
<p class="text-right">
4297-
<small>Converted with <a href="https://github.com/cbonte/haproxy-dconv">haproxy-dconv</a> v<b>0.4.2-15</b> on <b>2025/01/29</b></small>
4297+
<small>Converted with <a href="https://github.com/cbonte/haproxy-dconv">haproxy-dconv</a> v<b>0.4.2-15</b> on <b>2025/04/16</b></small>
42984298
</p>
42994299
</div>
43004300
<!-- /.sidebar -->
@@ -4305,7 +4305,7 @@
43054305
<div class="text-center">
43064306
<h1><a href="http://www.haproxy.org/" title="HAProxy"><img src="../img/HAProxyCommunityEdition_60px.png?0.4.2-15" /></a></h1>
43074307
<h2>Configuration Manual</h2>
4308-
<p><strong>version 2.8.14-5</strong></p>
4308+
<p><strong>version 2.8.14-80</strong></p>
43094309
<p>
43104310
2025/01/29<br>
43114311

@@ -6505,6 +6505,7 @@ <h2 id="chapter-2.7" data-target="2.7"><small><a class="small" href="#2.7">2.7.<
65056505
- <a href="#nopoll">nopoll</a>
65066506
- <a href="#noreuseport">noreuseport</a>
65076507
- <a href="#nosplice">nosplice</a>
6508+
- <a href="#profiling.memory">profiling.memory</a>
65086509
- <a href="#profiling.tasks">profiling.tasks</a>
65096510
- <a href="#server-state-base">server-state-base</a>
65106511
- <a href="#server-state-file">server-state-file</a>
@@ -6534,13 +6535,14 @@ <h2 id="chapter-2.7" data-target="2.7"><small><a class="small" href="#2.7">2.7.<
65346535
- <a href="#tune.http.maxhdr">tune.http.maxhdr</a>
65356536
- <a href="#tune.idle-pool.shared">tune.idle-pool.shared</a>
65366537
- <a href="#tune.idletimer">tune.idletimer</a>
6538+
- <a href="#tune.lua.burst-timeout">tune.lua.burst-timeout</a>
65376539
- <a href="#tune.lua.forced-yield">tune.lua.forced-yield</a>
6540+
- <a href="#tune.lua.log.loggers">tune.lua.log.loggers</a>
6541+
- <a href="#tune.lua.log.stderr">tune.lua.log.stderr</a>
65386542
- <a href="#tune.lua.maxmem">tune.lua.maxmem</a>
65396543
- <a href="#tune.lua.service-timeout">tune.lua.service-timeout</a>
65406544
- <a href="#tune.lua.session-timeout">tune.lua.session-timeout</a>
65416545
- <a href="#tune.lua.task-timeout">tune.lua.task-timeout</a>
6542-
- <a href="#tune.lua.log.loggers">tune.lua.log.loggers</a>
6543-
- <a href="#tune.lua.log.stderr">tune.lua.log.stderr</a>
65446546
- <a href="#tune.maxaccept">tune.maxaccept</a>
65456547
- <a href="#tune.maxpollevents">tune.maxpollevents</a>
65466548
- <a href="#tune.maxrewrite">tune.maxrewrite</a>
@@ -8301,21 +8303,6 @@ <h2 id="chapter-3.2" data-target="3.2"><small><a class="small" href="#3.2">3.2.<
83018303
using &quot;off&quot; for troubleshooting, or for situations where connections are
83028304
short-lived and it is estimated that the operating system already provides a
83038305
good enough distribution. The default is &quot;on&quot;.
8304-
</pre><a class="anchor" name="tune.lua.forced-yield"></a><a class="anchor" name="3-tune.lua.forced-yield"></a><a class="anchor" name="3.2-tune.lua.forced-yield"></a><a class="anchor" name="tune.lua.forced-yield (Global parameters)"></a><a class="anchor" name="tune.lua.forced-yield (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.forced-yield"></a><a href="#3.2-tune.lua.forced-yield">tune.lua.forced-yield</a></b> <span style="color: #080">&lt;number&gt;</span></div><pre class="text">This directive forces the Lua engine to execute a yield each &lt;number&gt; of
8305-
instructions executed. This permits interrupting a long script and allows the
8306-
HAProxy scheduler to process other tasks like accepting connections or
8307-
forwarding traffic. The default value is 10000 instructions. If HAProxy often
8308-
executes some Lua code but more responsiveness is required, this value can be
8309-
lowered. If the Lua code is quite long and its result is absolutely required
8310-
to process the data, the &lt;number&gt; can be increased.
8311-
</pre><a class="anchor" name="tune.lua.maxmem"></a><a class="anchor" name="3-tune.lua.maxmem"></a><a class="anchor" name="3.2-tune.lua.maxmem"></a><a class="anchor" name="tune.lua.maxmem (Global parameters)"></a><a class="anchor" name="tune.lua.maxmem (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.maxmem"></a><a href="#3.2-tune.lua.maxmem">tune.lua.maxmem</a></b></div><pre class="text">Sets the maximum amount of RAM in megabytes per process usable by Lua. By
8312-
default it is zero which means unlimited. It is important to set a limit to
8313-
ensure that a bug in a script will not result in the system running out of
8314-
memory.
8315-
</pre><a class="anchor" name="tune.lua.session-timeout"></a><a class="anchor" name="3-tune.lua.session-timeout"></a><a class="anchor" name="3.2-tune.lua.session-timeout"></a><a class="anchor" name="tune.lua.session-timeout (Global parameters)"></a><a class="anchor" name="tune.lua.session-timeout (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.session-timeout"></a><a href="#3.2-tune.lua.session-timeout">tune.lua.session-timeout</a></b> <span style="color: #080">&lt;timeout&gt;</span></div><pre class="text">This is the execution timeout for the Lua sessions. This is useful for
8316-
preventing infinite loops or spending too much time in Lua. This timeout
8317-
counts only the pure Lua runtime. If the Lua does a sleep, the sleep is
8318-
not taken in account. The default timeout is 4s.
83198306
</pre><a class="anchor" name="tune.lua.burst-timeout"></a><a class="anchor" name="3-tune.lua.burst-timeout"></a><a class="anchor" name="3.2-tune.lua.burst-timeout"></a><a class="anchor" name="tune.lua.burst-timeout (Global parameters)"></a><a class="anchor" name="tune.lua.burst-timeout (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.burst-timeout"></a><a href="#3.2-tune.lua.burst-timeout">tune.lua.burst-timeout</a></b> <span style="color: #080">&lt;timeout&gt;</span></div><pre class="text">The &quot;burst&quot; execution timeout applies to any Lua handler. If the handler
83208307
fails to finish or yield before timeout is reached, it will be aborted to
83218308
prevent thread contention, to prevent traffic from not being served for too
@@ -8364,14 +8351,20 @@ <h2 id="chapter-3.2" data-target="3.2"><small><a class="small" href="#3.2">3.2.<
83648351
- increasing tune.lua.burst-timeout
83658352

83668353
Setting value to 0 completely disables this protection.
8367-
</pre><a class="anchor" name="tune.lua.service-timeout"></a><a class="anchor" name="3-tune.lua.service-timeout"></a><a class="anchor" name="3.2-tune.lua.service-timeout"></a><a class="anchor" name="tune.lua.service-timeout (Global parameters)"></a><a class="anchor" name="tune.lua.service-timeout (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.service-timeout"></a><a href="#3.2-tune.lua.service-timeout">tune.lua.service-timeout</a></b> <span style="color: #080">&lt;timeout&gt;</span></div><pre class="text">This is the execution timeout for the Lua services. This is useful for
8368-
preventing infinite loops or spending too much time in Lua. This timeout
8369-
counts only the pure Lua runtime. If the Lua does a sleep, the sleep is
8370-
not taken in account. The default timeout is 4s.
8371-
</pre><a class="anchor" name="tune.lua.task-timeout"></a><a class="anchor" name="3-tune.lua.task-timeout"></a><a class="anchor" name="3.2-tune.lua.task-timeout"></a><a class="anchor" name="tune.lua.task-timeout (Global parameters)"></a><a class="anchor" name="tune.lua.task-timeout (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.task-timeout"></a><a href="#3.2-tune.lua.task-timeout">tune.lua.task-timeout</a></b> <span style="color: #080">&lt;timeout&gt;</span></div><pre class="text">Purpose is the same as &quot;<a href="#tune.lua.session-timeout">tune.lua.session-timeout</a>&quot;, but this timeout is
8372-
dedicated to the tasks. By default, this timeout isn't set because a task may
8373-
remain alive during of the lifetime of HAProxy. For example, a task used to
8374-
check servers.
8354+
</pre><a class="anchor" name="tune.lua.forced-yield"></a><a class="anchor" name="3-tune.lua.forced-yield"></a><a class="anchor" name="3.2-tune.lua.forced-yield"></a><a class="anchor" name="tune.lua.forced-yield (Global parameters)"></a><a class="anchor" name="tune.lua.forced-yield (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.forced-yield"></a><a href="#3.2-tune.lua.forced-yield">tune.lua.forced-yield</a></b> <span style="color: #080">&lt;number&gt;</span></div><pre class="text">This directive forces the Lua engine to execute a yield each &lt;number&gt; of
8355+
instructions executed. This permits interrupting a long script and allows the
8356+
HAProxy scheduler to process other tasks like accepting connections or
8357+
forwarding traffic. The default value is 10000 instructions for scripts loaded
8358+
using &quot;<a href="#lua-load-per-thread">lua-load-per-thread</a>&quot; and MAX(500, 10000 / nbthread) instructions for
8359+
scripts loaded using &quot;<a href="#lua-load">lua-load</a>&quot; (it was found to be an optimal value for
8360+
performance while taking care of not creating thread contention with multiple
8361+
threads competing for the global lua lock).
8362+
8363+
If HAProxy often executes some Lua code but more responsiveness is required,
8364+
this value can be lowered. If the Lua code is quite long and its result is
8365+
absolutely required to process the data, the &lt;number&gt; can be increased, but
8366+
the value should be set wisely as in multithreading context it could increase
8367+
contention.
83758368
</pre><a class="anchor" name="tune.lua.log.loggers"></a><a class="anchor" name="3-tune.lua.log.loggers"></a><a class="anchor" name="3.2-tune.lua.log.loggers"></a><a class="anchor" name="tune.lua.log.loggers (Global parameters)"></a><a class="anchor" name="tune.lua.log.loggers (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.log.loggers"></a><a href="#3.2-tune.lua.log.loggers">tune.lua.log.loggers</a></b> <span style="color: #800">{ on | off }</span></div><pre class="text">Enables ('on') or disables ('off') logging the output of LUA scripts via the
83768369
loggers applicable to the current proxy, if any.
83778370

@@ -8388,6 +8381,22 @@ <h2 id="chapter-3.2" data-target="3.2"><small><a class="small" href="#3.2">3.2.<
83888381
configured via tune.lua.log.loggers.
83898382

83908383
Defaults to 'on'.
8384+
</pre><a class="anchor" name="tune.lua.maxmem"></a><a class="anchor" name="3-tune.lua.maxmem"></a><a class="anchor" name="3.2-tune.lua.maxmem"></a><a class="anchor" name="tune.lua.maxmem (Global parameters)"></a><a class="anchor" name="tune.lua.maxmem (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.maxmem"></a><a href="#3.2-tune.lua.maxmem">tune.lua.maxmem</a></b> <span style="color: #080">&lt;number&gt;</span></div><pre class="text">Sets the maximum amount of RAM in megabytes per process usable by Lua. By
8385+
default it is zero which means unlimited. It is important to set a limit to
8386+
ensure that a bug in a script will not result in the system running out of
8387+
memory.
8388+
</pre><a class="anchor" name="tune.lua.service-timeout"></a><a class="anchor" name="3-tune.lua.service-timeout"></a><a class="anchor" name="3.2-tune.lua.service-timeout"></a><a class="anchor" name="tune.lua.service-timeout (Global parameters)"></a><a class="anchor" name="tune.lua.service-timeout (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.service-timeout"></a><a href="#3.2-tune.lua.service-timeout">tune.lua.service-timeout</a></b> <span style="color: #080">&lt;timeout&gt;</span></div><pre class="text">This is the execution timeout for the Lua services. This is useful for
8389+
preventing infinite loops or spending too much time in Lua. This timeout
8390+
counts only the pure Lua runtime. If the Lua does a sleep, the sleep is
8391+
not taken in account. The default timeout is 4s.
8392+
</pre><a class="anchor" name="tune.lua.session-timeout"></a><a class="anchor" name="3-tune.lua.session-timeout"></a><a class="anchor" name="3.2-tune.lua.session-timeout"></a><a class="anchor" name="tune.lua.session-timeout (Global parameters)"></a><a class="anchor" name="tune.lua.session-timeout (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.session-timeout"></a><a href="#3.2-tune.lua.session-timeout">tune.lua.session-timeout</a></b> <span style="color: #080">&lt;timeout&gt;</span></div><pre class="text">This is the execution timeout for the Lua sessions. This is useful for
8393+
preventing infinite loops or spending too much time in Lua. This timeout
8394+
counts only the pure Lua runtime. If the Lua does a sleep, the sleep is
8395+
not taken in account. The default timeout is 4s.
8396+
</pre><a class="anchor" name="tune.lua.task-timeout"></a><a class="anchor" name="3-tune.lua.task-timeout"></a><a class="anchor" name="3.2-tune.lua.task-timeout"></a><a class="anchor" name="tune.lua.task-timeout (Global parameters)"></a><a class="anchor" name="tune.lua.task-timeout (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.lua.task-timeout"></a><a href="#3.2-tune.lua.task-timeout">tune.lua.task-timeout</a></b> <span style="color: #080">&lt;timeout&gt;</span></div><pre class="text">Purpose is the same as &quot;<a href="#tune.lua.session-timeout">tune.lua.session-timeout</a>&quot;, but this timeout is
8397+
dedicated to the tasks. By default, this timeout isn't set because a task may
8398+
remain alive during of the lifetime of HAProxy. For example, a task used to
8399+
check servers.
83918400
</pre><a class="anchor" name="tune.maxaccept"></a><a class="anchor" name="3-tune.maxaccept"></a><a class="anchor" name="3.2-tune.maxaccept"></a><a class="anchor" name="tune.maxaccept (Global parameters)"></a><a class="anchor" name="tune.maxaccept (Performance tuning)"></a><div class="keyword"><b><a class="anchor" name="tune.maxaccept"></a><a href="#3.2-tune.maxaccept">tune.maxaccept</a></b> <span style="color: #080">&lt;number&gt;</span></div><pre class="text">Sets the maximum number of consecutive connections a process may accept in a
83928401
row before switching to other work. In single process mode, higher numbers
83938402
used to give better performance at high connection rates, though this is not
@@ -15089,7 +15098,8 @@ <h2 id="chapter-4.2" data-target="4.2"><small><a class="small" href="#4.2">4.2.<
1508915098
third retry. You can disable redispatches with a value of 0.</pre>
1509015099
</div>
1509115100
<pre class="text">In HTTP mode, if a server designated by a cookie is down, clients may
15092-
definitely stick to it because they cannot flush the cookie, so they will not
15101+
definitely stick to it, for example when using &quot;<a href="#option%20persist">option persist</a>&quot; or
15102+
&quot;<a href="#force-persist">force-persist</a>&quot;, because they cannot flush the cookie, so they will not
1509315103
be able to access the service anymore.
1509415104

1509515105
Specifying &quot;<a href="#option%20redispatch">option redispatch</a>&quot; will allow the proxy to break cookie or
@@ -15121,7 +15131,7 @@ <h2 id="chapter-4.2" data-target="4.2"><small><a class="small" href="#4.2">4.2.<
1512115131

1512215132
If this option has been enabled in a &quot;defaults&quot; section, it can be disabled
1512315133
in a specific instance by prepending the &quot;no&quot; keyword before it.
15124-
</pre><div class="page-header"><b>See also :</b> &quot;<a href="#retries">retries</a>&quot;, &quot;<a href="#force-persist">force-persist</a>&quot;</div>
15134+
</pre><div class="page-header"><b>See also :</b> &quot;<a href="#option%20persist">option persist</a>&quot;, &quot;<a href="#force-persist">force-persist</a>&quot;, &quot;<a href="#retries">retries</a>&quot;</div>
1512515135
<a class="anchor" name="option"></a><a class="anchor" name="4-option"></a><a class="anchor" name="4.2-option"></a><a class="anchor" name="option (Proxies)"></a><a class="anchor" name="option (Alphabetically sorted keywords reference)"></a><a class="anchor" name="option redis-check"></a><a class="anchor" name="4-option redis-check"></a><a class="anchor" name="4.2-option redis-check"></a><a class="anchor" name="option redis-check (Proxies)"></a><a class="anchor" name="option redis-check (Alphabetically sorted keywords reference)"></a><div class="keyword"><b><a class="anchor" name="option redis-check"></a><a href="#4.2-option%20redis-check">option redis-check</a></b></div><pre class="text">Use redis health checks for server testing
1512615136
</pre><div><p> May be used in sections :</p><table class="table table-bordered" border="0" cellspacing="0" cellpadding="0">
1512715137
<thead><tr><th>defaults</th><th>frontend</th><th>listen</th><th>backend</th></tr></thead>
@@ -17970,8 +17980,8 @@ <h2 id="chapter-4.2" data-target="4.2"><small><a class="small" href="#4.2">4.2.<
1797017980
<span class="comment"># and reject everything else. (works for HTTP/1 and HTTP/2 connections)</span>
1797117981
acl is_host_com hdr(Host) -i example.com
1797217982
tcp-request inspect-delay 5s
17973-
tcp-request switch-mode http if HTTP
17974-
tcp-request reject <span class="comment"># non-HTTP traffic is implicit here</span>
17983+
tcp-request content switch-mode http if HTTP
17984+
tcp-request content reject <span class="comment"># non-HTTP traffic is implicit here</span>
1797517985
...
1797617986
http-request reject unless is_host_com
1797717987
</code></pre>
@@ -27884,7 +27894,7 @@ <h2 id="chapter-11.3" data-target="11.3"><small><a class="small" href="#11.3">11
2788427894
<br>
2788527895
<hr>
2788627896
<div class="text-right">
27887-
HAProxy 2.8.14-5 &ndash; Configuration Manual<br>
27897+
HAProxy 2.8.14-80 &ndash; Configuration Manual<br>
2788827898
<small>, 2025/01/29</small>
2788927899
</div>
2789027900
</div>

docs/2.8/intro.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>HAProxy version 2.8.14-5 - Starter Guide</title>
5+
<title>HAProxy version 2.8.14-80 - Starter Guide</title>
66
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
77
<link href="https://raw.githubusercontent.com/thomaspark/bootswatch/v3.3.7/cerulean/bootstrap.min.css" rel="stylesheet" />
88
<link href="../css/page.css?0.4.2-15" rel="stylesheet" />
@@ -484,7 +484,7 @@
484484
You can use <strong>left</strong> and <strong>right</strong> arrow keys to navigate between chapters.<br>
485485
</p>
486486
<p class="text-right">
487-
<small>Converted with <a href="https://github.com/cbonte/haproxy-dconv">haproxy-dconv</a> v<b>0.4.2-15</b> on <b>2025/01/29</b></small>
487+
<small>Converted with <a href="https://github.com/cbonte/haproxy-dconv">haproxy-dconv</a> v<b>0.4.2-15</b> on <b>2025/04/16</b></small>
488488
</p>
489489
</div>
490490
<!-- /.sidebar -->
@@ -495,7 +495,7 @@
495495
<div class="text-center">
496496
<h1><a href="http://www.haproxy.org/" title="HAProxy"><img src="../img/HAProxyCommunityEdition_60px.png?0.4.2-15" /></a></h1>
497497
<h2>Starter Guide</h2>
498-
<p><strong>version 2.8.14-5</strong></p>
498+
<p><strong>version 2.8.14-80</strong></p>
499499
<p>
500500
<br>
501501

@@ -2515,7 +2515,7 @@ <h2 id="chapter-4.4" data-target="4.4"><small><a class="small" href="#4.4">4.4.<
25152515
<br>
25162516
<hr>
25172517
<div class="text-right">
2518-
HAProxy 2.8.14-5 &ndash; Starter Guide<br>
2518+
HAProxy 2.8.14-80 &ndash; Starter Guide<br>
25192519
<small>, </small>
25202520
</div>
25212521
</div>

0 commit comments

Comments
 (0)