Skip to content
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

Is it able to use discovery without registering itself? #3675

Closed
craynic opened this issue Apr 7, 2024 · 5 comments · May be fixed by spring-cloud-alibaba-group/spring-cloud-alibaba-group.github.io#150

Comments

@craynic
Copy link

craynic commented Apr 7, 2024

Which Component
Nacos Discovery

Describe what problem you have encountered
Scenario: I start a local instance for development. It needs to call dev deployments, but it shouldn't be called by dev deployments.

Describe what information you have read
There is no option to disable auto registering according to the doc.
I tried marking the instance offline on nacos web. It worked, while it turned online every time I restart the instance. It's annoyed to click the offline button every time I restart the instance.
I tried setting -Dspring.cloud.nacos.discovery.weight=0. It worked, while it is not documented. I'm afraid this will not function some day.
So what's the formal way to do this?

@yuluo-yx yuluo-yx added kind/question waiting-for-feedback Waiting for user feedback area/nacos spring cloud alibaba nacos labels Apr 7, 2024
@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Apr 7, 2024

You can try spring.cloud.nacos.discovery.register-enabled=false

@craynic
Copy link
Author

craynic commented Apr 7, 2024

Cool. Hope it documented in wiki.

@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Apr 7, 2024

https://sca.aliyun.com/en-us/docs/2023.0.0.0-RC1/user-guide/nacos/advanced-guide/#configuration-items-1

It's documented, but it doesn't look like the documentation has been updated, so we'll update this configuration item later!

Copy link

github-actions bot commented May 8, 2024

This issue has been open 30 days with no activity. This will be closed in 7 days.

@github-actions github-actions bot added the stale label May 8, 2024
Copy link

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants