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

Allow fine-tuning of Thrift TCP behavior for Thrift-managed sockets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 2
    • None
    • None

    Description

      Would be nice to be able to control low-level TCP socket behaviors for the Thrift-managed sockets used by o.a.c.thrift.CassandraDaemon.

      Blatantly stole the idea from here: http://mail-archives.apache.org/mod_mbox/hadoop-hive-commits/201006.mbox/%3C20100616044535.E781723889CB@eris.apache.org%3E

      Patch attached, implemented to retain default behavior with current system but allows definition of the following in cassandra.yaml:

      • rpc_keepalive (default:false)
      • rpc_reuse_addrs (default:false)
      • rpc_send_buff_size_in_bytes (default:undefined)
      • rpc_recv_buff_size_in_bytes (default:undefined)

      Wasn't sure how/if to write a unit test so could use some advice there.

      Verified that configs are picked up correctly and the socket accepts them on Linux 2.6 kernel.

      Attachments

        1. CAS-1424.patch
          8 kB
          Erik Onnen
        2. 1424-v2.txt
          7 kB
          Jonathan Ellis

        Activity

          People

            eonnen Erik Onnen
            eonnen Erik Onnen
            Erik Onnen
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: