Comments (4)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/158653339
The labels on this github issue will be updated when the story is started.
from discovery.
That does sound unusual, have you tried setting your own value for eureka:instance:leaseExpirationDurationInSeconds
? By default, your app should stay registered for 90 seconds - you could lower that and eureka:instance:leaseRenewalIntervalInSeconds
to see if anything changes.
from discovery.
I'm also having the same problem and I've been digging around a bit. When browsing the code, I can't see many references to ApplicationLifecycle
or IDiscoveryLifecycle
, so I added the following in my startup class.
lifetime.ApplicationStopping.Register(() =>
{
var eurekaClient = app.ApplicationServices.GetRequiredService<EurekaDiscoveryClient>();
eurekaClient?.ShutdownAsync().GetAwaiter().GetResult();
});
This still didn't work as expected, so I downloaded the code and ran using that. I think I have spotted a bug in EurekaDiscoverClient.cs
public override T.Task ShutdownAsync()
{
_appInfoManager.InstanceStatus = InstanceStatus.DOWN;
return ShutdownAsync();
}
When this is called, it ends up in a recursive loop since it's calling itself. I imagine it should be calling the base class version of ShutDownAsync(). When I made this change, things seemed to be working better.
public override T.Task ShutdownAsync()
{
_appInfoManager.InstanceStatus = InstanceStatus.DOWN;
return base.ShutdownAsync();
}
from discovery.
#39 should resolve this issue (thanks @kimbell!) -- That pull request was included in the 2.1.0 release of Steeltoe, please try the updated package and see if that resolves the issue for you!
from discovery.
Related Issues (20)
- Service Registry URL not resolved in PCF Marketplace Service HOT 3
- What is the difference Pivotal.Discovery.ClientCore and Steeltoe.Discovery.ClientCore? HOT 3
- Eureka Cluster config is not working in the Steeltoe Discovery HOT 2
- Is it possible to override the steeltoe configuration(without appsetting.json)? HOT 2
- Error message in Eureka server dashboard HOT 3
- Does eureka:client:serviceUrl support multiple eureka servers in the config? HOT 3
- Proxy settings are unused HOT 5
- Suport simpleinjector IOC HOT 7
- how to register to multiple eureka server HOT 3
- How to bind multiple Eureka addresses HOT 5
- Can we set the instanceId to the current IP address and port. HOT 4
- Registering with Eureka discovery server working, but renew failing. HOT 10
- Failing to fetch registry HOT 10
- How to generate random instance id? HOT 4
- AddDiscoveryClient Should also add DiscoveryHttpMessageHandler HOT 1
- Implement Spring Cloud Consul using PR #50 HOT 2
- Refactor the Discovery Health check from PR #44 HOT 2
- DoGetApplicationsAsync Failed HOT 2
- Host Name and IP Address not computing on Mac and Docker HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discovery.