JeremyGrosser / tablesnap

Uses inotify to monitor Cassandra SSTables and upload them to S3
BSD 2-Clause "Simplified" License
181 stars 86 forks source link

Limit bandwidth of tablesnap #46

Closed Itxaka closed 8 years ago

Itxaka commented 9 years ago

Would be really helpful to be able to limit the tablesnap upload bandwidth, so in the case of using it on a production machine which needs to prioritise the out bandwidth from cassandra, tablesnap does not take as much bandwidth as possible.

pcn commented 9 years ago

Have you looked at the trickle library? http://monkey.org/~marius/pages/?page=trickle

JeremyGrosser commented 8 years ago

This isn't something that can be easily implemented within tablesnap. @pcn's suggestion of trickle or some tc (http://tldp.org/HOWTO/Traffic-Control-HOWTO/intro.html) rules are likely your best bet.