8000 Stat the realtime tps of zookeepr server by nileader · Pull Request #5 · apache/zookeeper · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Stat the realtime tps of zookeepr server #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Stat the realtime tps of zookeepr server #5

wants to merge 3 commits into from

Conversation

nileader
Copy link
@nileader nileader commented Nov 4, 2013

Apache issue: ZOOKEEPER-1804(https://issues.apache.org/jira/browse/ZOOKEEPER-1804)

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

@nileader nileader closed this Nov 7, 2013
zhaxiancheng pushed a commit to zhaxiancheng/zookeeper that referenced this pull request Sep 8, 2016
afine pushed a commit to afine/zookeeper that referenced this pull request Oct 20, 2017
Reason: Maintainability
Author: Abraham Fine
Ref: CDH-58017
asfgit pushed a commit that referenced this pull request Jan 25, 2019
This is a master branch version of: #654

The previous PR was for branch 3.5, and couldn't be merged as that branch is closed for new features.

The Zookeeper libraries currently allow you to set up your SSL Context via system properties such as "zookeeper.ssl.keyStore.location" in the X509Util. This covers most simple use cases, where users have software keystores on their harddrive.

There are, however, a few additional scenarios that this doesn't cover. Two possible ones would be:

1. The user has a hardware keystore, loaded in using PKCS11 or something similar.
2. The user has no access to the software keystore, but can retrieve an already-constructed SSLContext from their container.

For this, I would propose that the X509Util be extended to allow a user to set a property "zookeeper.ssl.client.context" to provide a class which supplies a custom SSL context. This gives a lot more flexibility to the ZK client, and allows the user to construct the SSLContext in whatever way they please (which also future proofs the implementation somewhat).

I added a few simple tests to this class around setting the SSLContext, and setting an invalid one. I'm not testing the actual functionality of the SSLContext, etc.

Author: Alex Rankin <davelister@gmail.com>
Author: Alex Rankin <alex.rankin@mastercard.com>

Reviewers: andor@apache.org

Closes #728 from arankin-irl/ZOOKEEPER-3160 and squashes the following commits:

a20c62f [Alex Rankin] Merge branch 'master' into ZOOKEEPER-3160
5a9b8fc [Alex Rankin] Merge pull request #7 from apache/master
3c3dfdd [Alex Rankin] Re-ordering imports.
69e0b6c [Alex Rankin] Updating custom SSLContext supplier with review comments
874529b [Alex Rankin] Using supplier interface instead of custom interface, and renaming property
ec27260 [Alex Rankin] Merge branch 'master' into ZOOKEEPER-3160
75a010e [Alex Rankin] Merge pull request #6 from apache/master
838f61c [Alex Rankin] Merge branch 'master' into ZOOKEEPER-3160
f85d7e5 [Alex Rankin] Merge pull request #5 from apache/master
31d8dd5 [Alex Rankin] Extracting SSLContext creation from config to new method.
400839a [Alex Rankin] Adding ability to specify custom SSLContext for client
7ae7485 [Alex Rankin] Merge pull request #4 from apache/master
msolo pushed a commit to z-division/zookeeper that referenced this pull request Apr 25, 2019
upstream patches + partially rolling back ZOOKEEPER-2678
huizhilu added a commit to huizhilu/zookeeper that referenced this pull request Nov 16, 2020
…he#5)

Apply the patch of ZOOKEEPER-2260: paginated getChildren call (apache#50)
And adjust code style to pass the check style verification
Credit goest to the original author of ZOOKEEPER-2260
huizhilu added a commit to huizhilu/zookeeper that referenced this pull request Dec 22, 2020
…he#5)

Apply the patch of ZOOKEEPER-2260: paginated getChildren call (apache#50)
And adjust code style to pass the check style verification
Credit goest to the original author of ZOOKEEPER-2260
mgao0 pushed a commit to mgao0/zookeeper that referenced this pull request Jan 25, 2022
…he#5)

Apply the patch of ZOOKEEPER-2260: paginated getChildren call (apache#50)
And adjust code style to pass the check style verification
Credit goest to the original author of ZOOKEEPER-2260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0