ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-578

ResponderThread should be able to use TCP or UDP

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: server
    • Labels:
      None

      Description

      The ResponderThread, which responds to inquiries for the current leader, currently only uses UDP. It also only runs for electionAlg=0.

      Observers will eventually require that a ResponderThread runs for all election types. However, this introduces a UDP dependency which some installations do not want. This would also allow such installations to use electionAlg=0 (although this is not a big win as it is the least sophisticated election algorithm).

      Therefore we should be able to toggle ResponderThread to use either TCP or UDP. Since UDP is more performant, it probably makes sense to retain it. So I propose to choose between the two at startup time using a configuration flag responderTCP=true.

      Fixing this issue exposed ZOOKEEPER-569, on which this JIRA depends.

        Activity

        Hide
        Henry Robinson added a comment -

        I don't think this is relevant any more.

        Show
        Henry Robinson added a comment - I don't think this is relevant any more.

          People

          • Assignee:
            Henry Robinson
            Reporter:
            Henry Robinson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development