Skip to content

Commit ad114ad

Browse files
authored
[feat][broker]:Support broker configuration for BookKeeper client TCP keep-alive options (apache#25580)
Signed-off-by: xiaolongran <xiaolongran@tencent.com>
1 parent 13e1fac commit ad114ad

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

conf/broker.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,28 @@ managedLedgerDefaultAckQuorum=2
12561256
# the BookkeeperPackagesStorage bookkeeper client), except the distributed log bookkeeper client.
12571257
# The dlog bookkeeper client is configured in the functions worker configuration file.
12581258

1259+
# TCP keep-alive settings for the BookKeeper client connections from the broker to bookies.
1260+
# These options were introduced in BookKeeper 4.17.3 (see apache/bookkeeper#4683) and are
1261+
# forwarded to the BookKeeper client via the generic "bookkeeper_" prefix mechanism above.
1262+
# A value of -1 (BookKeeper default) defers to the operating system's TCP keep-alive settings.
1263+
# Uncomment and adjust to enable finer-grained keep-alive probing from the broker.
1264+
#
1265+
# Note: TCP keep-alive is a two-sided mechanism. Tuning these on the broker (BookKeeper
1266+
# client) side only affects connections initiated by the broker. To complete the picture
1267+
# you should also tune the bookie node's OS-level keep-alive settings via sysctl, e.g.
1268+
# net.ipv4.tcp_keepalive_time / tcp_keepalive_intvl / tcp_keepalive_probes, since the
1269+
# BookKeeper server (bookie) currently does not expose application-level keep-alive knobs.
1270+
1271+
# Idle time (in seconds) before the first TCP keep-alive probe is sent on an otherwise idle
1272+
# BookKeeper client connection.
1273+
#bookkeeper_tcpKeepIdle=300
1274+
# Interval (in seconds) between subsequent TCP keep-alive probes when no acknowledgement is
1275+
# received from the bookie.
1276+
#bookkeeper_tcpKeepIntvl=60
1277+
# Number of unacknowledged TCP keep-alive probes before the connection is considered dead
1278+
# and closed.
1279+
#bookkeeper_tcpKeepCnt=5
1280+
12591281
# How frequently to flush the cursor positions that were accumulated due to rate limiting. (seconds).
12601282
# Default is 60 seconds
12611283
managedLedgerCursorPositionFlushSeconds=60

0 commit comments

Comments
 (0)