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

新增了子服务后,网关程序的配置文件不能动态更新 #21

Open
landonzeng opened this issue Sep 26, 2023 · 0 comments
Open

Comments

@landonzeng
Copy link

子服务引用nacos-sdk-csharp.AspNetCore 后,服务运行起来后,控制台一直报这个: failover switch is not found, 00-00---000-VIPSRV_FAILOVER_SWITCH-000---00-00 。 这个不会有影响吧。

然后我新增了个子服务,如:A服务,通过网关调用A服务下的testapi,并未请求通,
网关程序已经添加了如下引用:
Ocelot
Ocelot.Provider.Nacos
Ocelot.Provider.Polly
nacos-sdk-csharp.aspnetcore
nacos-sdk-csharp.Extensions.Configuration

A子服务也添加了nacos-sdk-csharp.aspnetcore,并在 ConfigureServices下添加了services.AddNacosAspNet(Configuration);
并未网关程序下的修改ocelot.json文件,难道必须手动修改ocelot.json文件,添加好A服务的上下游进去吗?不能自动从nacos里获取到服务地址,自动更新么?

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

No branches or pull requests

1 participant