-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Only one instance returned when invoke getAllInstance method #18
Comments
@jasonsuzhou getAllInstances always returns all instances of a service, so your test result is weird.
|
After above error, log show below: |
@nkorange Even I restart the server, I can only get one instance. |
@jasonsuzhou execute command: |
@nkorange returned as below:
|
@jasonsuzhou The server result is correct. Please clear all data on client, try again and then paste client log here. Thank you. |
It is correct now. Thanks.
|
Merge request
Test the nacos client:
I register 2 instances with same service name, IP but different port number.
e.g.
com.mh.nacos010.helloWorldService 127.0.0.1 80
com.mh.nacos010.helloWorldService 127.0.0.1 81
After invoke registerInstance method, I checked the server side, the instance list have been written to
com.alibaba.nacos.naming.iplist.com.mh.nacos010.helloWorldService
Later I invoke the getAllInstanceMethod, but only one instance returned:
code sample:
return sample:
Only port number with 80 was returned.
My question:
Is nacos server already have load balance to provide only one available instance to client?
The text was updated successfully, but these errors were encountered: