-
0 votesanswersviews
Zuul自动发现问题
我们正在 Build 一个新的微服务架构,前端有Zuul,后端有一堆tomcat启用的微服务 . 启动时,每个服务都会向Eureka注册,任何想要调用这些服务的客户都将通过Zuul进行注册 . 我们已将这一切都连接起来,一切正常 . 但是,我有几个问题,我们如何使这个架构更具动态性 . 我们假设有一件事是开箱即用的Ribbon / Eureka,但尚未找到解决办法,因为我们在后端添加更多服务,不... -
2 votesanswersviews
无法向发现服务器注册服务(EUREKA)
所以当我运行我的服务实例时 . 它不会将自己注册到发现服务器 . 并且没有错误,因此我无法在此处识别问题 . application.properties 我的服务看起来像这样,发现服务器的 application.properties 可以在附带的屏幕截图中看到 . spring.application.name = service eureka.client.service-url.defau... -
5 votesanswersviews
Eureka:如何禁用/配置对等复制?
当我在8761端口上运行Eureka时,一切都很好 . 配置服务器可以毫无问题地注册到Eureka . 然而,当我将eureka端口更改为7001时,事情就会停止工作,我似乎无法弄清楚如何修复它们 . 这个问题似乎围绕着Eureka无法找到运行的对等节点:http://localhost:8761/eureka . 例外是: 2015-07-05 08:00:47.301 ERROR 4140 -... -
27 votesanswersviews
尤里卡从不注销服务
我直接从git hub拉出了Eureka服务器示例,只进行了一次更改, eureka.enableSelfPreservation = false . 我的application.yml看起来像这样: server: port: 8761 eureka: enableSelfPreservation: false client: registerWithEureka: fal... -
6 votesanswersviews
如何在不同主机上使用eureka-server注册eureka-clients . Spring 季启动
我在我的localhost上运行我的eureka-server . 我可以在localhost运行服务上注册我所有的其他服务,并且可以像预期的那样注册 . 现在我想注册一个在linux机器上运行的服务 . 我的属性看起来像这样: spring.application.name=myService-service spring.cloud.config.uri=http://myMachine.do... -
2 votesanswersviews
通过Eureka Server访问微服务
我可以通过这样的方式访问微服务:Eureka服务器:http://localhost:8761/微服务网址:http://localhost:8080/调用微服务是这样的:http://localhost:8761/name-service/它可以吗?当我打开eureka服务器时,服务已注册 . 尤里卡/ application.properties: server.port=8761 eurek... -
0 votesanswersviews
服务发现中的eureka unknownHostException
我有两个微服务, eureka-client-1在localhost上运行:8081 eureka-client-2在localhost:8082上运行 这两个都是在localhost:8761上运行的'eureka-server'注册的DiscoveryClients . 在下面的代码片段中,我试图从eureka-client-1调用eureka-client-2 . 而不是调用ht... -
1 votesanswersviews
Springboot Microservice已在Eureka注册,但无法点击它
基本问题所以只是想确保我理解正确 . 我创建了一个发现服务器: @SpringBootApplication @EnableEurekaServer public class DisocveryServiceApplication { public static void main(String[] args) { SpringApplication.run(Disocv... -
0 votesanswersviews
是否可以先与Eureka一起注册Discovery?
我正在尝试实现一个 discovery first spring cloud配置模式 . 这是我的客户端bootstrap.yml server: port: 9090 spring: application: name: test-config cloud: config: fail-fast: true discovery: ... -
0 votesanswersviews
Eureka部署在wildfly上没有注册服务
我试图在独立的wildfly 11上部署spring-boot eureka-server . 到目前为止一切正常,eureka-server在wildfly 11内部运行 . 问题是没有服务可以注册这个eureka-server . 在wildfly服务器的启动或运行期间或部署期间没有异常,但是当任何服务尝试在此eureka服务器上注册时,我总是得到异常:TransportException:无... -
1 votesanswersviews
服务在eureka注册了奇怪的主机名
我设置了一个Eureka实例,然后 Build 了一个向Eureka注册的服务 . 尤里卡:appliation.properties spring.application.name=registry server.port=8761 eureka.client.register-with-eureka=false eureka.client.fetch-registry=false 主要课程... -
0 votesanswersviews
TCP中的Eureka Server
当我创建服务发现服务器时,它自动设置为HTTP @EnableEurekaServer @SpringBootApplication public class DiscoveryServerApplication { public static void main(String[] args) { SpringApplication.run(DiscoveryServerApplicat... -
0 votesanswersviews
Spring Cloud 发现首先根本不起作用
我尝试使用eureka服务注册表,配置服务器和客户端微服务实现spring cloud netflix项目 . 我使用spring cloud finchley发布 . 我有两个问题:1 . Eureka和配置服务器都在运行,但不能互相识别 . 我已阅读官方docs和多个教程,但它不起作用 . 这是我的代码: ConfigServerApplication: import org.springfr... -
-1 votesanswersviews
Spring引导,Eureka服务器,IBM WAS:logback提供NoClassDefFoundError ch.qos.logback.classic.spi.ThrowableProxy
在使用jdk 8在IBM Websphere Application Server(8.5.5.9)上启动Spring启动应用程序(Eureka服务器)(尝试:1.4.0,1.3.7,1.3.6)时出现问题,它会引发以下异常: [8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr R com.ibm.ws.exception.Runtime... -
4 votesanswersviews
Eureka服务器无法使用Spring Boot 2.0.0.M4
我尝试将基于微服务的Web应用程序从Spring Boot 2.0.0.M3更新到最新的2.0.0.M4 . 运行我的Eureka服务器时,我遇到以下异常,并且不会加载上下文: 2017-09-19 10:22:05.455 INFO 16388 --- [ main] o.s.core.annotation.AnnotationUtils : Failed to ... -
4 votesanswersviews
在spring boot中找不到DiscoveryClient bean错误
2017-03-16 16:09:08.821 INFO 9104 --- [ main] com.hello.EurekaClientApplication : No active profile set, falling back to default profiles: default 2017-03-16 16:09:08.848 INFO 9104 ... -
0 votesanswersviews
在使用SSL连接的Eureka客户端启用Spring Cloud中的Eureka Server时,PKIX路径构建失败
我正在使用spring boot构建基于 Cloud 的微服务架构 . 我们只使用嵌入式容器,这是tomcat用于spring boot . 此外,我们还为jvm密钥库添加了证书 . 为了使它更简单,我只创建了两个spring boot app . 1)Spring引导Eureka Server2)Spring启动Eureka客户端 两者都具有与上述相同的配置,当我在https上启动Eureka服... -
4 votesanswersviews
kubernetes Deployment可以将服务节点端口注入环境变量吗?
在服务yaml文件中,您可以使用jsonpath选择命名的nodeport值,如下所示: - name: MY_NODE_PORT valueFrom: fieldRef: fieldPath: spec.ports[?(@.name=="http")].nodePort 但是,在我的部署yaml文件中,我希望有一个像上面的 M... -
1 votesanswersviews
spring-boot:运行多模块maven项目
我有Eureka Server的微服务设置和Eureka客户端的多个spring-boot应用程序 . 这是在父(根)级别设置为maven多模块项目 . 以下是层次结构: parent (multi-module parent pom.xml) |_ eureka-server-spring-boot-app (individual pom.xml) |_ eureka-client-sp... -
2 votesanswersviews
问题spring-cloud-config和spring-cloud-bus
我有三个应用程序,一个是spring-cloud-config服务器点,另一个是spring-cloud-config客户 endpoints . 我在彼此配置spring-cloud-bus以使我的客户 endpoints 自动刷新更改但在我的应用程序运行中,我得到了一个异常 c.netflix.discovery.TimedSupervisorTask : task supervisor ... -
1 votesanswersviews
Spring Cloud Config Eureka Zuul - 没有在客户端看到房产
我正在使用Spring Cloud开发一个基于微服务的arhitecture的应用程序 . 我目前在项目中有四个应用程序: config-server , eureka-server , gateway-service(zuul) 和 eureka-client 我正在使用它来测试项目是否按预期工作 . 但我从配置服务器获取属性时遇到问题 . 我有一个git存储库,其中有一个文件 eureka-c... -
0 votesanswersviews
Spring Cloud Eureka服务器不会互相复制,显示警告
我在Spring Cloud 中使用两个Eureka服务器互相复制,当我在http://localhost:8761打开页面时,我看到了这样的消息: 续约比阈值更重要 . 自保护模式已关闭 . 在网络/其他问题的情况下,可能无法保护实例 . eureka application.xml是这样的: server: port: ${server.instance.port:5678} spring... -
1 votesanswersviews
为非AWS数据中心设置Eureka
我已经与2个同行设置了Eureka,大约5分钟后我看到此消息出现在UI中: 紧急!当EUREKA不是时,EUREKA可能会不正当地提出申请 . 更新的数量超过了阈值,并且这些实际情况并未到期,只是为了安全起见 . 当我查看其中一个正在运行的Eureka实例的输出时,我看到了: 2015-11-11 14:46:47.276 INFO 32748 --- [pool-5-thread-1] c... -
1 votesanswersviews
尤里卡同行意识的例子不起作用
我在运行Eureka服务器示例时遇到问题,以了解同伴意识概念 . 我有以下Eureka服务: package com.micro.eurekaserver; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; ... -
4 votesanswersviews
命令行中的server.port无法使用spring cloud config server和eureka server
我正在研究 Spring 天可以 . 我现在拥有的是spring cloud配置服务器和eureka服务器 . 配置服务器的代码 @SpringBootApplication @EnableConfigServer public class ConfigServerApplication { public static void main(String[] args) { ... -
0 votesanswersviews
Eureka-client尝试注册到eureka服务器的随机serviceUrl
使用'Dalston.BUILD-SNAPSHOT'来实现spring-cloud-dependencies,使用spring boot'1.5.2.RELEASE' . 在我目前的设置中,我有 eureka服务器配置服务器(在随机端口上运行) localhost上的Eureka服务器使用以下配置运行 . server: port: 8761 spring: application: ... -
0 votesanswersviews
Spring Eureka集群复制问题[版本eureka-Brixton.SR1]
我正在尝试设置一个包含服务器的eureka集群 . (我的设置在本地机器上) 每个eureka服务器的配置如下: server1的: server: port: 8764 eureka: instance: metadataMap: instanceId: ${spring.application.name}:${spring.application.instan... -
0 votesanswersviews
application.yml中的Eureka端口被忽略
我正在关注这篇文章(http://www.baeldung.com/spring-cloud-netflix-eureka)来设置eureka,我的application.yml看起来像这样 server: port: 8761 eureka: client: registerWithEureka: false fetchRegistry: fals... -
0 votesanswersviews
使用自定义端口和地址配置Eureka Server和客户端
我有一个在默认的localhost主机和端口8761上运行的Eureka服务器,所以我试图以这种方式更改此默认配置: server: port: 6000 servlet: context-path: /myeureka eureka: client: register-with-eureka: false fetch-registry: false 但是这样... -
0 votesanswersviews
了解Netflix Eureka租赁 - 服务保持取消注册
我与我的一个Spring Cloud Eureka客户端一直存在这个间歇性问题,但其他人都没有 . 当我开始我的“NCLSEARCHSERVICE”时,它会向Eureka注册,在Eureka中显示“UP”约30秒到一分钟,然后取消注册 . 以下是来自Eureka服务器的日志,显示它注册了我的所有其他服务,但由于“Lease未注册”而无法注册我的搜索服务 . 抱歉,日志文件复制/粘贴格式不佳 . ...