-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(disvocery): Add zookeeper discovery #12772
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
base: master
Are you sure you want to change the base?
Conversation
7bfba46 to
01f70df
Compare
Baoyuantop
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dongjiang1989, thanks for your contribution. Could you add documentation and testing for this feature? You can refer to other service discovery modules for reference.
Thanks @Baoyuantop |
3993d37 to
ea3c33e
Compare
Signed-off-by: dongjiang1989 <dongjiang1989@126.com> add zookeeper discovery docs Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
f25602f to
3435db2
Compare
|
@Baoyuantop Please review docs, thanks |
|
Hi @dongjiang1989, additional tests are needed to verify that the function works correctly. |
| instance_cache:flush_all() | ||
| log.info("zookeeper discovery destroyed") | ||
| end | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A dump method is also needed to retrieve all services in the current service discovery instance. You can explore other service discovery modules for more information.
| } | ||
|
|
||
| -- Global Configuration | ||
| local local_conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is recommended that the main process request the service instance from ZooKeeper and synchronize it to the worker processes via the shared dict.
Got it. I'll add UT soon |
Description
Which issue(s) this PR fixes:
Fixes #3231 #6687
Add zookeeper discovery
Checklist