-
Notifications
You must be signed in to change notification settings - Fork 73
[API-582] Implement external smart client discovery #468
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
[API-582] Implement external smart client discovery #468
Conversation
This PR implements the client-side support for the external smart client discovery. With this PR, the Python client will be able to use public addresses reported by the cluster members even if the client and the cluster are in different networks. To use it, one has to enable `use_public_addresses` option by setting it to `True`, and passing at least one public address of the cluster members to the `cluster_members` config. Client will initiate the cluster connection using the provided public address, and will discover the rest of the cluster using the public addresses reported by them.
|
Ali did the tests on Kubernetes on GKE with this branch, and the tests are passed. Here is the link to his verification: https://github.com/alisengul53/GHActionTestRepo/runs/3542770380?check_suite_focus=true |
srknzl
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.
I started to review tests. Just wanted to send the reviews so far..
examples/external-smart-client-discovery/external_smart_client_discovery_example.py
Outdated
Show resolved
Hide resolved
examples/external-smart-client-discovery/external_smart_client_discovery_example.py
Outdated
Show resolved
Hide resolved
|
@mdumandag The Java client property that enables this feature is |
|
@yuce I changed it to At first, I used |
Codecov Report
@@ Coverage Diff @@
## master #468 +/- ##
==========================================
- Coverage 94.96% 94.86% -0.11%
==========================================
Files 345 345
Lines 17633 17685 +52
==========================================
+ Hits 16745 16776 +31
- Misses 888 909 +21
Continue to review full report at Codecov.
|
srknzl
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.
I left one last additional comment in one of the previous review comments. Thanks for your patience and changes.
|
@mdumandag Thanks. I agree that |
This PR implements the client-side support for the external smart
client discovery. With this PR, the Python client will be able
to use public addresses reported by the cluster members even
if the client and the cluster are in different networks.
To use it, one has to enable
use_public_addressesoption by settingit to
True, and passing at least one public address of the clustermembers to the
cluster_membersconfig. Client will initiate thecluster connection using the provided public address, and will
discover the rest of the cluster using the public addresses reported
by them.
Protocol PR: hazelcast/hazelcast-client-protocol#394