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
Copy file name to clipboardExpand all lines: modules/manage/pages/cluster-maintenance/configure-availability.adoc
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
= Configure Client Connections
2
2
:description: Guidelines for configuring Redpanda clusters for optimal availability.
3
3
:page-categories: Management, Networking
4
+
// tag::single-source[]
4
5
5
6
Optimize the availability of your clusters by configuring and tuning properties.
6
7
@@ -10,14 +11,16 @@ A malicious Kafka client application may create many network connections to exec
10
11
11
12
The following Redpanda cluster properties limit the number of connections:
12
13
13
-
* xref:reference:cluster-properties.adoc#kafka_connections_max[`kafka_connections_max`]: Similar to Kafka's `max.connections`, this sets the maximum number of connections per broker.
14
14
* xref:reference:cluster-properties.adoc#kafka_connections_max_per_ip[`kafka_connections_max_per_ip`]: Similar to Kafka's `max.connections.per.ip`, this sets the maximum number of connections accepted per IP address by a broker.
15
15
* xref:reference:cluster-properties.adoc#kafka_connections_max_overrides[`kafka_connections_max_overrides`]: A list of IP addresses for which `kafka_connections_max_per_ip` is overridden and doesn't apply.
16
+
ifndef::env-cloud[]
17
+
* xref:reference:cluster-properties.adoc#kafka_connections_max[`kafka_connections_max`]: Similar to Kafka's `max.connections`, this sets the maximum number of connections per broker.
16
18
17
19
Redpanda also provides properties to manage the rate of connection creation:
18
20
19
21
* xref:reference:cluster-properties.adoc#kafka_connection_rate_limit[`kafka_connection_rate_limit`]: This property limits the maximum rate of connections created per second. It applies to each CPU core.
20
22
* xref:reference:cluster-properties.adoc#kafka_connection_rate_limit_overrides[`kafka_connection_rate_limit_overrides`]: A list of IP addresses for which `kafka_connection_rate_limit` is overridden and doesn't apply.
23
+
endif::[]
21
24
22
25
[NOTE]
23
26
====
@@ -46,10 +49,21 @@ See also: xref:develop:produce-data/configure-producers.adoc[Configure Producers
46
49
47
50
A Redpanda broker may create log segments at startup. If a broker crashes after startup, and if it gets stuck in a crash loop, it could produce progressively more stored state that uses more disk space and takes more time for each restart to process.
48
51
52
+
ifndef::env-cloud[]
49
53
To prevent infinite crash loops, the Redpanda broker property xref:reference:node-properties.adoc#crash_loop_limit[`crash_loop_limit`] sets an upper limit on the number of consecutive crashes that can happen within one hour of each other. After it reaches the limit, a broker cannot restart until its internal consecutive crash counter is reset to zero by one of the following conditions:
54
+
endif::[]
55
+
56
+
ifdef::env-cloud[]
57
+
To prevent infinite crash loops, the Redpanda broker property [`crash_loop_limit`] sets an upper limit on the number of consecutive crashes that can happen within one hour of each other. After it reaches the limit, a broker cannot restart until its internal consecutive crash counter is reset to zero by one of the following conditions:
58
+
endif::[]
50
59
51
60
* The `redpanda.yaml` configuration file is updated.
61
+
ifndef::env-cloud[]
52
62
* The `startup_log` file in the broker's xref:reference:node-properties.adoc#data_directory[data_directory] is manually deleted.
63
+
endif::[]
64
+
ifdef::env-cloud[]
65
+
* The `startup_log` file in the broker's `data_directory` is manually deleted.
66
+
endif::[]
53
67
* One hour has elapsed since the last crash.
54
68
* The broker is properly shut down. (This is not possible after `crash_loop_limit` has been reached and the broker cannot be restarted.)
55
69
@@ -59,4 +73,12 @@ To prevent infinite crash loops, the Redpanda broker property xref:reference:nod
59
73
* If the limit is less than two, the broker is blocked from restarting after every crash, until one of the reset conditions is met.
60
74
====
61
75
76
+
ifndef::env-cloud[]
62
77
To facilitate debugging in environments where a broker is stuck in a crash loop, set the xref:reference:properties/broker-properties.adoc#crash_loop_sleep_sec[`crash_loop_sleep_sec` configuration]. This setting determines how long the broker sleeps before terminating the process after reaching the crash loop limit. The window during which the broker remains available allows you to troubleshoot the issue. This setting is most useful when xref:troubleshoot:errors-solutions/k-resolve-errors.adoc[troubleshooting in Kubernetes environments].
78
+
endif::[]
79
+
80
+
ifdef::env-cloud[]
81
+
To facilitate debugging in environments where a broker is stuck in a crash loop, set the `crash_loop_sleep_sec` configuration. This setting determines how long the broker sleeps before terminating the process after reaching the crash loop limit. The window during which the broker remains available allows you to troubleshoot the issue.
Flag to require authorization for Kafka connections. If `null`, the property is disabled, and authorization is instead enabled by <<enable_sasl,`enable_sasl`>>.
0 commit comments