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

Allow multiple ports to gossip from a single IP address

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Won't Fix
    • 2.0 beta 1
    • None
    • None

    Description

      If a fat client is running on the same machine as a Cassandra node, the fat client must be allocated a new IP address. However, since the node is now a part of the gossip, the other nodes in the ring must be able to talk to it. This means that a local only address (127.0.0.n) won't actually work for the rest of the ring.

      This also would allow for multiple Cassandra service instances to run on a single machine, or from a group of machines behind a NAT.

      The change is simple in concept: instead of using an InetAddress, use a different class. Instead of using an InetSocketAddress, which would still tie us to using InetAddress, I've added a new class, "CassandraInstanceEndpoint". The serializer allows for reading a serialized Inet4Address or Inet6Address; also, the message service can still communicate with non-CassandraInstanceEndpoint aware code.

      Attachments

        1. 5400.txt
          604 kB
          Carl Yeksigian
        2. 5400-v2.txt
          619 kB
          Carl Yeksigian
        3. 5400-v3.patch
          604 kB
          Carl Yeksigian
        4. 5400-v4.patch
          602 kB
          Carl Yeksigian

        Issue Links

          Activity

            People

              carlyeks Carl Yeksigian
              carlyeks Carl Yeksigian
              Carl Yeksigian
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: