-
Notifications
You must be signed in to change notification settings - Fork 170
using RoundRobinLoadBalancer with redis #368
Copy link
Copy link
Closed
Labels
Component/DiscoveryIssues related to Steeltoe Service DiscoveryIssues related to Steeltoe Service DiscoveryReleaseLine/2.xIdentified as a feature/fix for the 2.x release lineIdentified as a feature/fix for the 2.x release lineReleaseLine/3.xIdentified as a feature/fix for the 3.x release lineIdentified as a feature/fix for the 3.x release lineType/bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
There are some instances in the Eureka.When I remove or add a instance,ServiceInstances-XXXX can't update.
So I add DistributedCacheEntryOptions into the file.
IServiceInstanceProviderExtensions.cs
if (distributedCache != null)
{
await distributedCache.SetAsync(serviceInstancesKeyPrefix + serviceId, SerializeForCache(MapToSerializable(instances)),new DistributedCacheEntryOptions()
{
AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(10)
}).ConfigureAwait(false);
}
Is it OK?
Environment (please complete the following information):
- Steeltoe 2.4.4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component/DiscoveryIssues related to Steeltoe Service DiscoveryIssues related to Steeltoe Service DiscoveryReleaseLine/2.xIdentified as a feature/fix for the 2.x release lineIdentified as a feature/fix for the 2.x release lineReleaseLine/3.xIdentified as a feature/fix for the 3.x release lineIdentified as a feature/fix for the 3.x release lineType/bugSomething isn't workingSomething isn't working