Skip to content

Q. Is there any reason why does LoadBalancerCacheManager Bean excluded from autowire candidates? #1203

Closed
@kworkbee

Description

@kworkbee

Hi, I'm planning to implement a new feature so that LoadBalancer can switch to another zone if all instances within a particular zone fail to respond.

For acheiving this, the new ServiceInstanceListSupplier needs cache, which is why I wanted to inject LoadBalancerCacheManager.

I checked that the Bean is currently excluded from Autowire Candidates, and I wonder if there is a reason why it was written like this.

I wonder if it is okay to exclude that option to achieve what I intend, or if not, what other alternatives can be used.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions