Skip to content

using RoundRobinLoadBalancer with redis #368

@dboy2018

Description

@dboy2018

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

Metadata

Metadata

Assignees

Labels

Component/DiscoveryIssues related to Steeltoe Service DiscoveryReleaseLine/2.xIdentified as a feature/fix for the 2.x release lineReleaseLine/3.xIdentified as a feature/fix for the 3.x release lineType/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions