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

config option to allow GossipingPropertyFileSnitch to use the "reconnect trick"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.6
    • Component/s: None
    • Labels:

      Description

      Currently we have two instances of the "use the local ip inside the same datacenter trick":

      • Ec2MultiRegionSnitch – which is obviously EC2 specific
      • YamlFileNetworkTopologySnitch – which is powerful but verbose

      There is no reason that GossipingPropertyFileSnitch could not (optionally) do the same. Attached is a patch that adds a preferLocal (default==false==current-behavior) property to GossipingPropertyFileSnitch and does the IEndpointStateChangeSubscriber reconnect dance. I based it on the other snitches but admit that they still seem fairly magical to me. This could be a new class that extends GossipingPropertyFileSnitch, but I could not think of a name that wasn't absurdly long.

        Attachments

        1. CASSANDRA-5630-v1.patch
          4 kB
          Chris Burroughs

          Activity

            People

            • Assignee:
              cburroughs Chris Burroughs
              Reporter:
              cburroughs Chris Burroughs
              Authors:
              Chris Burroughs
              Reviewers:
              Brandon Williams
              Tester:
              Ryan McGuire
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: