Increase replay buffer size
Increase the default value of the replayBufferSize
parameter in Knox
to better handle high-load scenarios.
The replayBufferSize
parameter in Knox is set to 8 KB by default,
which may be insufficient under high-load scenarios. This can result in the error
message Existing stream already past replay buffer capacity. Increase
the value to 512 KB to mitigate the issue.
- In Cloudera Manager, select the Knox service.
- Go to Configuration.
- Find the Knox Simplified Topology Management - cdp-proxy property.
-
Add the following line:
$SERVICE_NAME:replayBufferSize=512
- Save your changes.
- Refresh the Knox instances’ configuration: the Refresh needed stale configuration indicator appears; click it and wait until the refresh process completes.
-
Validate that
replayBufferSize=512
incdp-proxy
is added by navigating to the following URL:https://$KNOX_GATEWAY_HOST:$PORT/$GATEWAY_PATH/admin/api/v1/topologies/cdp-proxy
.
replayBufferSize
parameter is increased to 512 KB, ensuring
better handling of high-load scenarios.