nodetool setinterdcstreamthroughput
Sets the inter-datacenter stream throughput limit.
Synopsis
Section titled “Synopsis”nodetool [connection_options] setinterdcstreamthroughput [options] <throughput>See connection options for connection options.
Description
Section titled “Description”nodetool setinterdcstreamthroughput modifies the maximum throughput for streaming between datacenters. This is useful for controlling WAN bandwidth usage during cross-datacenter operations.
Options
Section titled “Options”| Option | Description |
|---|---|
-m, --mib | Interpret the throughput value as MiB/s instead of Mb/s |
-e, --entire-sstable-throughput | Set the entire-SSTable inter-DC streaming throughput |
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
throughput | Maximum throughput. Default unit is megabits per second (Mb/s). Use -m for MiB/s. Set to 0 to disable throttling. |
Unit Clarification
By default, the argument is in megabits per second (Mb/s), not megabytes. For example:
nodetool setinterdcstreamthroughput 200= 200 Mb/s = ~25 MiB/snodetool setinterdcstreamthroughput -m 25= 25 MiB/s = ~200 Mb/s
cassandra.yaml Parameter
The corresponding cassandra.yaml parameter changed in 4.1:
| Cassandra Version | Parameter Name | Example |
|---|---|---|
| Pre-4.1 | inter_dc_stream_throughput_outbound_megabits_per_sec | 200 |
| 4.1+ | inter_dc_stream_throughput | 200Mb/s or 24MiB/s |
Examples
Section titled “Examples”Set Throughput (Megabits per Second)
Section titled “Set Throughput (Megabits per Second)”# Set to 50 Mb/s (~6 MiB/s)nodetool setinterdcstreamthroughput 50Set Throughput (MiB per Second)
Section titled “Set Throughput (MiB per Second)”# Set to 25 MiB/s using the -m flagnodetool setinterdcstreamthroughput -m 25Increase for Faster Cross-DC Operations
Section titled “Increase for Faster Cross-DC Operations”# Set to 200 Mb/s (~25 MiB/s)nodetool setinterdcstreamthroughput 200Disable Throttling
Section titled “Disable Throttling”# Set to 0 for unlimited throughputnodetool setinterdcstreamthroughput 0Set Entire-SSTable Streaming Throughput
Section titled “Set Entire-SSTable Streaming Throughput”# Set entire-SSTable inter-DC streaming throughputnodetool setinterdcstreamthroughput -e 200When to Use
Section titled “When to Use”WAN Bandwidth Management
Section titled “WAN Bandwidth Management”# Limit during business hours (25 Mb/s)nodetool setinterdcstreamthroughput 25
# Increase during off-peak (100 Mb/s)nodetool setinterdcstreamthroughput 100Cross-DC Rebuild
Section titled “Cross-DC Rebuild”# Increase for faster rebuild (150 Mb/s)nodetool setinterdcstreamthroughput 150nodetool rebuild -- dc2Using MiB/s Units
Section titled “Using MiB/s Units”# Set to 10 MiB/s (clearer unit)nodetool setinterdcstreamthroughput -m 10
# Set to 50 MiB/s during maintenancenodetool setinterdcstreamthroughput -m 50Related Commands
Section titled “Related Commands”| Command | Relationship |
|---|---|
| getinterdcstreamthroughput | View current setting |
| setstreamthroughput | Intra-DC throughput |