Netflix / eureka

AWS Service registry for resilient mid-tier load balancing and failover.
Apache License 2.0
12.37k stars 3.74k forks source link

Eureka microservices getting deregistered automatically after getting registered with Eureka. #1331

Open skone16 opened 4 years ago

skone16 commented 4 years ago

We have many micro services which will get registered in eureka. But our services are getting deregistered automatically after they get registered in eureka. please let me know what can be done to overcome this issue.

these are my eureka-client & server properties client-properties

after going live:

renewalPercentThreshold=0.85 eureka.eurekaServer.domainName=${aesd.archaius.deployment.domain} eureka.eurekaServer.context=eureka/v2 eureka.healthCheckUrl=http://${archaius.deployment.serverPrivIP}:8080/eureka/healthcheck eureka.registration.enabled=true eureka.enableSelfPreservation=true

server properties Set this only for this sample service without which starting the instance will by default wait for the default of 5 mins eureka.waitTimeInMsWhenSyncEmpty=0 eureka.disableDelta=false eureka.disableDeltaForRemoteRegions=true

Setup EIP timeouts

eureka.eipBindRebindRetries=5 eureka.eipBindRebindRetryIntervalMs=120000 eureka.server.eviction-interval-timer-in-ms=12000 eureka.server.enableSelfPreservation=false enableSelfPreservation=false renewalPercentThreshold=0.85

Logs where I found few on my eureka servers 2020-09-03 17:08:55,473 INFO com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver:43 [AsyncResolver-bootstrap-executor-0] [getClusterEndpoints] Resolving eureka endpoints via configuration 2020-09-03 17:09:09,418 INFO com.netflix.eureka.registry.AbstractInstanceRegistry$EvictionTask:1247 [Eureka-EvictionTimer] [run] Running the evict task with compensationTime 0ms 2020-09-03 17:09:09,418 INFO com.netflix.eureka.registry.AbstractInstanceRegistry:614 [Eureka-EvictionTimer] [evict] Evicting 1 items (expired=1, evictionLimit=44) 2020-09-03 17:09:09,418 WARN com.netflix.eureka.registry.AbstractInstanceRegistry:626 [Eureka-EvictionTimer] [evict] DS: Registry: expired lease for servciename/I-xxxxxxxxxxx 2020-09-03 17:09:09,418 INFO com.netflix.eureka.registry.AbstractInstanceRegistry:333 [Eureka-EvictionTimer] [internalCancel] Cancelled instance servicename/ixxxxxxxxxxxxxxx (replication=false) 2020-09-03 17:09:09,919 ERROR com.netflix.eureka.aws.EIPManager$EIPBindingTask:436 [Eureka-EIPBinder] [run] Could not bind to EIP java.lang.StringIndexOutOfBoundsException: String index out of range: -4

kondarddygit commented 2 years ago

i have also same issue

KishoreKumarReddyKadapa commented 1 year ago

i am also getting same issue , can any one have solution for this.