Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8313

cassandra-stress: No way to pass in data center hint for DCAwareRoundRobinPolicy

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Not A Problem
    • Fix Version/s: None
    • Component/s: Legacy/Tools
    • Labels:
      None

      Description

      When using cassandra-stress in a multiple datacenter configuration, we need to be able to behave like the applications do and send traffic to nodes co-located in the same data center.

      I can't for the life of me figure out how to pass in such a hint into the new cassandra-stress.

      And passing in a local node into "-node" doesn't help. Apparently, cassandra-stress will guess the data center based on the order of the list that it receives from the cluster.

      In my case, it seems to always pick 'DC2', no matter what I do.

      INFO 22:17:06 Using data-center name 'DC2' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)

      Could someone please add the ability to configure the DCAwareRoundRobinPolicy with a data center hint?

        Attachments

          Activity

            People

            • Assignee:
              tjake T Jake Luciani
              Reporter:
              bob_nilsen Bob Nilsen
              Authors:
              T Jake Luciani
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: