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-client-connections.adoc
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,33 @@
6
6
7
7
Optimize the availability of your clusters by configuring and tuning properties.
8
8
9
-
// Don't display ListKafkaConnections in Cloud docs until support is added
10
9
ifdef::env-cloud[]
11
-
TIP: Before you configure connection limits or reconnection settings, start by gathering detailed data about your client connections. Use the xref:reference:public-metrics-reference.adoc#redpanda_rpc_active_connections[`redpanda_rpc_active_connections` metric] to view current Kafka client connections.
10
+
[TIP]
11
+
====
12
+
Before you configure connection limits or reconnection settings, start by gathering detailed data about your client connections.
13
+
14
+
* Use the xref:reference:public-metrics-reference.adoc#redpanda_rpc_active_connections[`redpanda_rpc_active_connections` metric] to view current Kafka client connections.
15
+
* For clusters on v25.3 and later, use xref:reference:rpk/rpk-cluster/rpk-cluster-connections-list.adoc[`rpk cluster connections list`] or the `GET /v1/monitoring/kafka/connections` endpoint in the Data Plane API to identify:
16
+
+
17
+
--
18
+
** Which clients and applications are connected
19
+
** Long-lived connections and long-running requests
20
+
** Connections with no activity
21
+
** Whether any clients are causing excessive load
22
+
--
23
+
+
24
+
By reviewing connection details, you can make informed decisions about tuning connection limits and troubleshooting issues.
25
+
26
+
See also: link:/api/doc/cloud-dataplane/operation/operation-monitoringservice_listkafkaconnections[Data Plane API reference], xref:manage:monitor-cloud.adoc#throughput[Monitor Redpanda Cloud]
27
+
====
12
28
endif::[]
13
29
ifndef::env-cloud[]
14
30
[TIP]
15
31
====
16
32
Before you configure connection limits or reconnection settings, start by gathering detailed data about your client connections.
17
33
18
-
* Internal metrics that follow the `vectorized_kafka_rpc_.\*connect.*` naming pattern provide details on Kafka client connection activity. For example, xref:reference:internal-metrics-reference.adoc#vectorized_kafka_rpc_active_connections[`vectorized_kafka_rpc_active_connections`] reports the current number of active connections.
19
-
* For Redpanda v25.3 and later, use `rpk cluster connections list` or the Admin API ListKafkaConnections endpoint to identify:
34
+
* Internal metrics that follow the `vectorized_kafka_rpc_.\*connect*` naming pattern provide details on Kafka client connection activity. For example, xref:reference:internal-metrics-reference.adoc#vectorized_kafka_rpc_active_connections[`vectorized_kafka_rpc_active_connections`] reports the current number of active connections.
35
+
* For Redpanda v25.3 and later, use xref:reference:rpk/rpk-cluster/rpk-cluster-connections-list.adoc[`rpk cluster connections list`] or the Admin API ListKafkaConnections endpoint to identify:
Redpanda supports throughput throttling on both ingress and egress independently, and allows configuration at the broker and client levels. This helps prevent clients from causing unbounded network and disk usage on brokers. You can configure limits at two levels:
9
16
@@ -21,7 +28,13 @@ endif::[]
21
28
22
29
You may find it helpful to check the xref:{monitor-doc}[current produce and consume throughput] of a client before you configure throughput quotas.
23
30
24
-
Use the `rpk cluster connections list` command or the link:/api/doc/admin/v2/operation/operation-redpanda-core-admin-v2-clusterservice-listkafkaconnections[ListKafkaConnections] Admin API endpoint to view detailed information about active Kafka client connections.
31
+
ifndef::env-cloud[]
32
+
Use the xref:reference:rpk/rpk-cluster/rpk-cluster-connections-list.adoc[`rpk cluster connections list`] command or the {connected-clients-api-doc-ref}[ListKafkaConnections] Admin API endpoint to view detailed information about active Kafka client connections.
33
+
endif::[]
34
+
35
+
ifdef::env-cloud[]
36
+
Use the xref:reference:rpk/rpk-cluster/rpk-cluster-connections-list.adoc[`rpk cluster connections list`] command or the {connected-clients-api-doc-ref}[`GET /v1/monitoring/kafka/connections`] Data Plane API endpoint to view detailed information about active Kafka client connections.
37
+
endif::[]
25
38
26
39
For example, to view a cluster's connected clients in order of highest current produce throughput, run:
27
40
@@ -50,6 +63,7 @@ b41584f3-2662-4185-a4b8-0d8510f5c780 OPEN UNAUTHENTICATED perf-producer-clie
50
63
----
51
64
--
52
65
66
+
ifndef::env-cloud[]
53
67
curl::
54
68
+
55
69
--
@@ -67,7 +81,7 @@ curl -s -X POST \
67
81
.Show example API response
68
82
[%collapsible]
69
83
====
70
-
[,json,role=no-copy,lines=54]
84
+
[,json,role=no-copy,lines=55]
71
85
----
72
86
{
73
87
"connections": [
@@ -135,6 +149,95 @@ curl -s -X POST \
135
149
----
136
150
====
137
151
--
152
+
endif::[]
153
+
154
+
ifdef::env-cloud[]
155
+
Data Plane API::
156
+
+
157
+
--
158
+
[,bash]
159
+
----
160
+
curl \
161
+
--request GET 'https://<dataplane-api-url>/v1/monitoring/kafka/connections' \
0 commit comments