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
(optional) the type of check, either "passive" or "active", default "passive".
603
+
(optional) the type of check, either “passive” or “active”, default “passive”.
607
604
</li>
608
605
</ul>
609
606
@@ -639,7 +636,7 @@ <h3>Parameters:</h3>
639
636
(optional) hostname of the target being checked.
640
637
</li>
641
638
<li><spanclass="parameter">check</span>
642
-
(optional) the type of check, either "passive" or "active", default "passive".
639
+
(optional) the type of check, either “passive” or “active”, default “passive”.
643
640
</li>
644
641
</ul>
645
642
@@ -772,7 +769,7 @@ <h3>Returns:</h3>
772
769
It will be started upon creation.</p>
773
770
774
771
<p><em>NOTE</em>: the returned <code>checker</code> object must be anchored, if not it will be
775
-
removed by Lua's garbage collector and the healthchecks will cease to run.
772
+
removed by Lua’s garbage collector and the healthchecks will cease to run.
776
773
777
774
778
775
<h3>Parameters:</h3>
@@ -781,34 +778,35 @@ <h3>Parameters:</h3>
781
778
table with checker options. Options are:</p>
782
779
783
780
<ul>
784
-
<li><code>name</code>: name of the health checker</li>
785
-
<li><code>shm_name</code>: the name of the <code>lua_shared_dict</code> specified in the Nginx configuration to use</li>
786
-
<li><code>ssl_cert</code>: certificate for mTLS connections (string or parsed object)</li>
787
-
<li><code>ssl_key</code>: key for mTLS connections (string or parsed object)</li>
788
-
<li><code>checks.active.type</code>: "http", "https" or "tcp" (default is "http")</li>
789
-
<li><code>checks.active.timeout</code>: socket timeout for active checks (in seconds)</li>
790
-
<li><code>checks.active.concurrency</code>: number of targets to check concurrently</li>
791
-
<li><code>checks.active.http_path</code>: path to use in <code>GET</code> HTTP request to run on active checks</li>
792
-
<li><code>checks.active.https_sni</code>: SNI server name incase of HTTPS</li>
793
-
<li><code>checks.active.https_verify_certificate</code>: boolean indicating whether to verify the HTTPS certificate</li>
794
-
<li><code>checks.active.headers</code>: one or more lists of values indexed by header name</li>
795
-
<li><code>checks.active.healthy.interval</code>: interval between checks for healthy targets (in seconds)</li>
796
-
<li><code>checks.active.healthy.http_statuses</code>: which HTTP statuses to consider a success</li>
797
-
<li><code>checks.active.healthy.successes</code>: number of successes to consider a target healthy</li>
798
-
<li><code>checks.active.unhealthy.interval</code>: interval between checks for unhealthy targets (in seconds)</li>
799
-
<li><code>checks.active.unhealthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
800
-
<li><code>checks.active.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
801
-
<li><code>checks.active.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
802
-
<li><code>checks.active.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
803
-
<li><code>checks.passive.type</code>: "http", "https" or "tcp" (default is "http"; for passive checks, "http" and "https" are equivalent)</li>
804
-
<li><code>checks.passive.healthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
805
-
<li><code>checks.passive.healthy.successes</code>: number of successes to consider a target healthy</li>
806
-
<li><code>checks.passive.unhealthy.http_statuses</code>: which HTTP statuses to consider a success</li>
807
-
<li><code>checks.passive.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
808
-
<li><code>checks.passive.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
809
-
<li><code>checks.passive.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
781
+
<li><code>name</code>: name of the health checker</li>
782
+
<li><code>shm_name</code>: the name of the <code>lua_shared_dict</code> specified in the Nginx configuration to use</li>
783
+
<li><code>ssl_cert</code>: certificate for mTLS connections (string or parsed object)</li>
784
+
<li><code>ssl_key</code>: key for mTLS connections (string or parsed object)</li>
785
+
<li><code>checks.active.type</code>: “http”, “https” or “tcp” (default is “http”)</li>
786
+
<li><code>checks.active.timeout</code>: socket timeout for active checks (in seconds)</li>
787
+
<li><code>checks.active.concurrency</code>: number of targets to check concurrently</li>
788
+
<li><code>checks.active.http_path</code>: path to use in <code>GET</code> HTTP request to run on active checks</li>
789
+
<li><code>checks.active.https_sni</code>: SNI server name incase of HTTPS</li>
790
+
<li><code>checks.active.https_verify_certificate</code>: boolean indicating whether to verify the HTTPS certificate</li>
791
+
<li><code>checks.active.headers</code>: one or more lists of values indexed by header name</li>
792
+
<li><code>checks.active.healthy.interval</code>: interval between checks for healthy targets (in seconds)</li>
793
+
<li><code>checks.active.healthy.http_statuses</code>: which HTTP statuses to consider a success</li>
794
+
<li><code>checks.active.healthy.successes</code>: number of successes to consider a target healthy</li>
795
+
<li><code>checks.active.unhealthy.interval</code>: interval between checks for unhealthy targets (in seconds)</li>
796
+
<li><code>checks.active.unhealthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
797
+
<li><code>checks.active.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
798
+
<li><code>checks.active.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
799
+
<li><code>checks.active.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
800
+
<li><code>checks.passive.type</code>: “http”, “https” or “tcp” (default is “http”; for passive checks, “http” and “https” are equivalent)</li>
801
+
<li><code>checks.passive.healthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
802
+
<li><code>checks.passive.healthy.successes</code>: number of successes to consider a target healthy</li>
803
+
<li><code>checks.passive.unhealthy.http_statuses</code>: which HTTP statuses to consider a success</li>
804
+
<li><code>checks.passive.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
805
+
<li><code>checks.passive.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
806
+
<li><code>checks.passive.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
810
807
</ul>
811
808
809
+
812
810
<p> If any of the health counters above (e.g. <code>checks.passive.unhealthy.timeouts</code>)
813
811
is set to zero, the according category of checks is not taken to account.
814
812
This way active or passive health checks can be disabled selectively.
@@ -832,7 +830,7 @@ <h3>Returns:</h3>
832
830
</div><!-- id="main" -->
833
831
<divid="about">
834
832
<i>generated by <ahref="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
0 commit comments