-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Zuul2.x:使用eurela服务发现-进行路由 #603
Labels
Comments
Hi, can you restate your issue in English? I don't know if anyone working on Zuul will be able to help otherwise. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
实在是不理解,这个配置不生效
Zuul可与Eureka无缝协作,但也可配置为使用静态服务器列表或您选择的发现服务。
使用Eureka服务器的标准方法如下所示:
# ##负载平衡与后端尤里卡
eureka.shouldUseDns = true
eureka.eurekaServer.context = discovery / v2
eureka.eurekaServer.domainName = discovery $ {environment} .netflix.net
eureka.eurekaServer.gzipContent = true
eureka.serviceUrl.default = http:// $ {region}。$ {eureka.eurekaServer.domainName}:7001 / $ {eureka.eurekaServer.context}
api.ribbon.NIWSServerListClassName = com.netflix.niws.loadbalancer.DiscoveryEnabledNIWSServerList
api.ribbon.DeploymentContextBasedVipAddresses = api-test.netflix.net:7001
在此配置中,您必须指定您的Eureka上下文和位置。鉴于此,Zuul将与尤里卡对给定的VIP自动选择服务器列表api 功能区客户端。您可以找到有关功能区配置的详细信息在这里
The text was updated successfully, but these errors were encountered: