-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(kuma-cp): circuit breaker #781
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some minor comments 👍
// base time multiplied by the number of times the host has been ejected | ||
google.protobuf.Duration baseEjectionTime = 2; | ||
// The maximum percent of an upstream cluster that can be ejected due to | ||
// outlier detection, has to be in [0.0 - 100.0] range |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean [0-100] range? It's an UInt32Value
mesh_core "github.com/Kong/kuma/pkg/core/resources/apis/mesh" | ||
) | ||
|
||
func CircuitBreaker(circuitBreaker *mesh_core.CircuitBreakerResource) ClusterBuilderOpt { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the name here to OutlierDetectionConfigurer
? I think that names in pkg/xds/envoy
should be Envoy names, not Kuma names. Look at RBAC. We call it NetworkRBACConfigurer
, not TrafficPermissionConfigurer
Please merge when ready for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change circuit_breaker_configurer.go
to outlier_detection_configurer.go
, resolve conflicts and you're good to go
# Conflicts: # app/kumactl/pkg/install/k8s/control-plane/templates_vfsdata.go # pkg/xds/generator/outbound_proxy_generator.go
Summary
This PR introduces a new Policy - CircuitBreaker. Initially proposed format was adjusted and now looks like this:
Note: This PR doesn't remove passive HealthCheck. Maybe it makes sense to get rid of passive HealthCehck in a major release.
Docs in kumahq/kuma-website#206