Database Reference
In-Depth Information
Listing 7.8 Unthrottling Compaction Speed Using nodetool
Click here to view code image
$ nodetool setcompactionthroughput 0
To unthrottle streaming of data between nodes, run the nodetool command
shown in Listing 7.9 .
Listing 7.9 Unthrottling Network Traffic Using nodetool
Click here to view code image
$ nodetool setstreamthroughput 0
Note that unthrottling streaming on the current node and not unthrottling
streaming on the peers that the current node is trying to stream from and to won't
help much. If you want to take full advantage of the unthrottled streaming setup,
you'll need to run the same command on the node's peers. The way to see which
nodes are part of the stream is to run a nodetool netstats and see which
hosts the current node has streaming sessions with. You can then use nodetool
to unthrottle the other hosts by passing in the host parameter (see Listing 7.10 ).
Listing 7.10 Unthrottling Network Traffic Using nodetool on Multiple
Nodes
Click here to view code image
$ nodetool -h 10.100.1.110 setstreamthroughput 0 &&
nodetool -h 10.100.2.120 setstreamthroughput 0
Don't forget to set the machines back to the throttled compaction and streaming
states after the repairs have completed (or the off-peak window has completed).
See Listing 7.11 for an example.
Listing 7.11 Reset the Streaming Throttling Settings
Click here to view code image
$ nodetool -h localhost setstreamthroughput 16 &&
nodetool -h localhost setcompactionthroughput 16
&&
 
 
 
 
Search WWH ::




Custom Search