ThreeMammals / Ocelot

.NET API Gateway
https://www.nuget.org/packages/Ocelot
MIT License
8.32k stars 1.63k forks source link

Service is not registered after deployment on virtual machine #1056

Closed JayChuah95 closed 6 months ago

JayChuah95 commented 4 years ago

Expected Behavior

Eureka Server should show the instance to be UP after deployment.

Actual Behavior

Instance was registered DOWN and disappear from the Eureka Server

Steps to Reproduce the Problem

  1. Deploy the microservice to a virtual machine with IIS
  2. The Eureka show
    2019-11-14 06:20:21.238  INFO 5132 --- [nio-8761-exec-7] c.n.e.registry.AbstractInstanceRegistry  : Registered instance AUTHENTICATIONSERVICE/AppService2:AuthenticationService:80 with status DOWN (replication=true)
    2019-11-14 06:20:21.238  INFO 5132 --- [nio-8761-exec-7] c.n.e.registry.AbstractInstanceRegistry  : Cancelled instance AUTHENTICATIONSERVICE/AppService2:AuthenticationService:80 (replication=true)
  3. The service is start in IIS but didn't registered with Eureka unless MANUALLY browse the service in browser.

Is this behaviour normal? Or the service should re-registered with Eureka once it finished deployment?

@catcherwong Thanks for the help

raman-m commented 6 months ago

We are not DevOps team!