[ 
https://issues.apache.org/jira/browse/CASSANDRA-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vijay updated CASSANDRA-6596:
-----------------------------

    Attachment: 0001-CASSANDRA-6596.patch

Attached patch introduces inter_dc_stream_throughput_outbound_megabits_per_sec 
which is a subset of stream_throughput_outbound_megabits_per_sec.

Currently the node throttles all the traffic which it streams (this doesn't 
change after this patch). In addition, this patch adds additional throttle 
across the DC's.

One more thing: There might be a bug (in trunk) where the throttle is applied 
on bytes instead of bits... Since its not related to this ticket, i have not 
changed it.

{code}
int toTransfer = (int) Math.min(transferBuffer.length, length - 
bytesTransferred);
        int minReadable = (int) Math.min(transferBuffer.length, reader.length() 
- reader.getFilePointer());

        reader.readFully(transferBuffer, 0, minReadable);
        if (validator != null)
            validator.validate(transferBuffer, 0, minReadable);

        limiter.acquire(toTransfer);
{code}

> Split out outgoing stream throughput within a DC and inter-DC
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-6596
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6596
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jeremy Hanna
>            Assignee: Vijay
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: 0001-CASSANDRA-6596.patch
>
>
> Currently the outgoing stream throughput setting doesn't differentiate 
> between when it goes to another node in the same DC and when it goes to 
> another DC across a potentially bandwidth limited link.  It would be nice to 
> have that split out so that it could be tuned for each type of link.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to