cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-13055) DoS by StreamReceiveTask, during incremental repair
Date Tue, 20 Dec 2016 20:48:58 GMT


Paulo Motta commented on CASSANDRA-13055:

It seems this was mostly caused by multiple streaming sessions being executed simultaneously
for the same repair job due to {{RepairJob}} releasing the executor after [validations were
which means the next repair session starts while the previous is still syncing. This should
be alleviated significantly on 3.0.11 by CASSANDRA-12901, which waits for a previous {{RepairSession}}
to finish before starting the repair session for the next vnode. Can you test with that version
to see if it improves things?

Another thing is that CASSANDRA-7795 added {{StreamReceiveTask}} executor's limited by {{FBUtilities.getAvailableProcessors()}},
but this limit was removed by CASSANDRA-6455 without clear reason, so I believe it could be
a merge error. Do you confirm [~yukim] or is there any particular reason for removing this
executor's limit?

If the limit removal was unintentional, I propose restoring it to {{FBUtilities.getAvailableProcessors()}}
and reduce it's priority, while possibly making it settable via JMX or system property for
advanced users which want more control, but I think it shouldn't be necessary in most cases
specially after the additional repair job synchronization added by CASSANDRA-12901.
* Please note that this is not a limit for concurrent streaming tasks, but only to the final
completion phase of streaming, where sstables are added to the tracker which can be CPU intensive,
but should not dominate streaming time in general.
** Nevertherless it would be nice to check the impact of this for bootstrap, I believe it
won't have any significant impact but it's good to test/verify.

> DoS by StreamReceiveTask, during incremental repair
> ---------------------------------------------------
>                 Key: CASSANDRA-13055
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Tom van der Woerdt
>         Attachments: untitled 2.txt
> There's no limit on how many StreamReceiveTask there can be, and during an incremental
repair on a vnode cluster with high replication factors, this can lead to thousands of conccurent
StreamReceiveTask threads, effectively DoSing the node.
> I just found one of my nodes with 1000+ loadavg, caused by 1363 concurrent StreamReceiveTask
> That sucks :)
> I think :
> * Cassandra shouldn't allow more than X concurrent StreamReceiveTask threads
> * StreamReceiveTask threads should be at a lower priority, like compaction threads
> Alternative ideas welcome as well, of course.

This message was sent by Atlassian JIRA

View raw message