-
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
can nacos replicas be 1 in cluster mode? #5662
Comments
It should be ok. You can try to start with 1 replicas directly but no start with 3 and short to 1. |
my k8s case is just as same sa you said, which is started with 1 replicas. |
@zcz3313 Could you use the following procedure to deploy your Nacos cluster and help us find the exact reason 1、stop all of the nacos node in the cluster |
My docker-compose file does not mount ~/nacos/data on host path. |
@zcz3313 there should be a directory named 'data' under your ${nacos_home} directory, I mean delete that directory and retry. |
I have found that directory on my host machine and recreate nacos docker after delete that dir, still not working. |
@zcz3313 Yes, delete the cache inside docker and restart it. If it still not work, I will try to figure out if this problem is caused by another factor.
The directory on host machine has nothing to do with that problem, but the cache inside docker may cause it. |
still not working. here are my steps: btw, i can't delete dirs inside container when it is stopped. |
@JackSun-Developer Can you reproduce this problem by following my steps? Is this a bug? |
I see the error seems the distro problem. Need research. |
@zcz3313 I can reproduce your problem. In application.properties, set
Then this problem will not occur, and nacos work correctly. |
@JackSun-Developer |
Describe the bug
naming module of nacos does not work well when replicas = 1 in cluster mode
Expected behavior
work well
Acutally behavior
got 503 when using naming module api
How to Reproduce
detail message as below
nacos-group/nacos-k8s#214 (comment)
Desktop (please complete the following information):
Additional context
in k8s environment
The text was updated successfully, but these errors were encountered: