nodetool setbatchlogreplaythrottle
Sets the batchlog replay throttle in KB/s.
Synopsis
Section titled “Synopsis”nodetool [connection_options] setbatchlogreplaythrottle <throttle_in_kb>See connection options for connection options.
Description
Section titled “Description”nodetool setbatchlogreplaythrottle modifies the throttle rate for batchlog replay operations at runtime.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
batchlog_replay_throttle | Replay throttle in KiB/s. Set to 0 to disable throttling. |
Throttle Behavior
- Setting the value to 0 disables throttling entirely
- The effective throttle is proportionally reduced based on cluster size to prevent overwhelming recovered nodes during replay
cassandra.yaml Parameter
The corresponding cassandra.yaml parameter changed in 4.1:
| Cassandra Version | Parameter Name | Example |
|---|---|---|
| Pre-4.1 | batchlog_replay_throttle_in_kb | 1024 |
| 4.1+ | batchlog_replay_throttle | 1024KiB |
Examples
Section titled “Examples”Set Throttle
Section titled “Set Throttle”nodetool setbatchlogreplaythrottle 2048Increase for Faster Replay
Section titled “Increase for Faster Replay”nodetool setbatchlogreplaythrottle 4096When to Use
Section titled “When to Use”Speed Up Batch Replay
Section titled “Speed Up Batch Replay”# Increase for faster catchupnodetool setbatchlogreplaythrottle 4096nodetool replaybatchlogReduce Impact
Section titled “Reduce Impact”# During high loadnodetool setbatchlogreplaythrottle 512Disable Throttling
Section titled “Disable Throttling”# Remove throttle limit (use with caution)nodetool setbatchlogreplaythrottle 0Related Commands
Section titled “Related Commands”| Command | Relationship |
|---|---|
| getbatchlogreplaythrottle | View current throttle |
| replaybatchlog | Force replay |