ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1804

Stat the realtime tps of zookeepr server

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: server
    • Labels:
      None

      Description

      At this time, we assessed whether zookeeper supports some business scenarios, always use the number of subscribers, or to assess the number of clients。

      You konw, some times, many client connection with zookeeper, but do noting, and the onthers do complex business logic。

      So,we must stat the realtime tps of zookeepr。

      [-----------------Solution-------------------]

      Solution1:

      If you only want to know the real time transaction processed, you can use the patch "ZOOKEEPER-1804.patch".

      Solution2:

      If you also want to know how client use zookeeper, and the real time r/w ps of each zookeeper client, you can use the patch "ZOOKEEPER-1804-2.patch"
      use java properties: -Dserver_process_stats=true to open the function.

      Sample:
      $>echo rwps|nc localhost 2181
      RealTime R/W Statistics:
      getChildren2:   0.5994005994005994
      createSession:  1.6983016983016983
      closeSession:   0.999000999000999
      setData:     110.18981018981019
      setWatches:   129.17082917082917
      getChildren:    68.83116883116884
      delete:      19.980019980019982
      create:      22.27772227772228
      exists:      1806.2937062937062
      getDate:     729.5704295704296

      1. ZOOKEEPER-1804.patch
        11 kB
        Leader Ni
      2. ZOOKEEPER-1804.patch
        2 kB
        Raul Gutierrez Segales

        Activity

        Leader Ni created issue -
        Raul Gutierrez Segales made changes -
        Field Original Value New Value
        Attachment ZOOKEEPER-1804.patch [ 12610864 ]
        Raul Gutierrez Segales made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Leader Ni made changes -
        Description At this time, we assessed whether zookeeper supports some business scenarios, always use the number of subscribers, or to assess the number of clients。

        You konw, some times, many client connection with zookeeper, but do noting, and the onthers do complex business logic。

        So,we must stat the realtime tps of zookeepr。
        At this time, we assessed whether zookeeper supports some business scenarios, always use the number of subscribers, or to assess the number of clients。

        You konw, some times, many client connection with zookeeper, but do noting, and the onthers do complex business logic。

        So,we must stat the realtime tps of zookeepr。


        [-----------------Solution-------------------]

        Solution1:

        If you only want to know the real time transaction processed, you can use the patch "ZOOKEEPER-1804.patch".

        Solution2:

        If you also want to know how client use zookeeper, and the real time r/w ps of each zookeeper client, you can use the patch "ZOOKEEPER-1804-2.patch"

        Sample:
        $>echo rwps|nc localhost 2181
        RealTime R/W Statistics:
                getChildren2:   0.5994005994005994
                createSession:  1.6983016983016983
                closeSession:   0.999000999000999
                setData:     110.18981018981019
                setWatches:   129.17082917082917
                getChildren:    68.83116883116884
                delete:      19.980019980019982
                create:      22.27772227772228
                exists:      1806.2937062937062
                getDate:     729.5704295704296
        Leader Ni made changes -
        Description At this time, we assessed whether zookeeper supports some business scenarios, always use the number of subscribers, or to assess the number of clients。

        You konw, some times, many client connection with zookeeper, but do noting, and the onthers do complex business logic。

        So,we must stat the realtime tps of zookeepr。


        [-----------------Solution-------------------]

        Solution1:

        If you only want to know the real time transaction processed, you can use the patch "ZOOKEEPER-1804.patch".

        Solution2:

        If you also want to know how client use zookeeper, and the real time r/w ps of each zookeeper client, you can use the patch "ZOOKEEPER-1804-2.patch"

        Sample:
        $>echo rwps|nc localhost 2181
        RealTime R/W Statistics:
                getChildren2:   0.5994005994005994
                createSession:  1.6983016983016983
                closeSession:   0.999000999000999
                setData:     110.18981018981019
                setWatches:   129.17082917082917
                getChildren:    68.83116883116884
                delete:      19.980019980019982
                create:      22.27772227772228
                exists:      1806.2937062937062
                getDate:     729.5704295704296
        At this time, we assessed whether zookeeper supports some business scenarios, always use the number of subscribers, or to assess the number of clients。

        You konw, some times, many client connection with zookeeper, but do noting, and the onthers do complex business logic。

        So,we must stat the realtime tps of zookeepr。


        [-----------------Solution-------------------]

        Solution1:

        If you only want to know the real time transaction processed, you can use the patch "ZOOKEEPER-1804.patch".

        Solution2:

        If you also want to know how client use zookeeper, and the real time r/w ps of each zookeeper client, you can use the patch "ZOOKEEPER-1804-2.patch"
        use java properties: -Dserver_process_stats=true to open the function.

        Sample:
        $>echo rwps|nc localhost 2181
        RealTime R/W Statistics:
                getChildren2:   0.5994005994005994
                createSession:  1.6983016983016983
                closeSession:   0.999000999000999
                setData:     110.18981018981019
                setWatches:   129.17082917082917
                getChildren:    68.83116883116884
                delete:      19.980019980019982
                create:      22.27772227772228
                exists:      1806.2937062937062
                getDate:     729.5704295704296
        Leader Ni made changes -
        Attachment ZOOKEEPER-1804-2.patch [ 12611868 ]
        Leader Ni made changes -
        Attachment ZOOKEEPER-1804-2.patch [ 12611868 ]
        Leader Ni made changes -
        Attachment ZOOKEEPER-1804.patch [ 12612555 ]
        Leader Ni made changes -
        Fix Version/s 3.5.0 [ 12316644 ]
        Michi Mutsuzaki made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Michi Mutsuzaki made changes -
        Fix Version/s 3.6.0 [ 12326518 ]
        Fix Version/s 3.5.0 [ 12316644 ]

          People

          • Assignee:
            Leader Ni
            Reporter:
            Leader Ni
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:

              Development