Implement simple endpoint slice batching
Kubernetes-commit: 49b11b5431d01cf9ac954b97cbec51e92d33c7f6
This commit is contained in:
parent
d92cc655c7
commit
4f8784b13a
|
|
@ -312,6 +312,11 @@ type EndpointSliceControllerConfiguration struct {
|
||||||
// added to an EndpointSlice. More endpoints per slice will result in fewer
|
// added to an EndpointSlice. More endpoints per slice will result in fewer
|
||||||
// and larger endpoint slices, but larger resources.
|
// and larger endpoint slices, but larger resources.
|
||||||
MaxEndpointsPerSlice int32
|
MaxEndpointsPerSlice int32
|
||||||
|
|
||||||
|
// EndpointUpdatesBatchPeriod describes the length of endpoint updates batching period.
|
||||||
|
// Processing of pod changes will be delayed by this duration to join them with potential
|
||||||
|
// upcoming updates and reduce the overall number of endpoints updates.
|
||||||
|
EndpointUpdatesBatchPeriod metav1.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
// GarbageCollectorControllerConfiguration contains elements describing GarbageCollectorController.
|
// GarbageCollectorControllerConfiguration contains elements describing GarbageCollectorController.
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,7 @@ func (in *EndpointControllerConfiguration) DeepCopy() *EndpointControllerConfigu
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *EndpointSliceControllerConfiguration) DeepCopyInto(out *EndpointSliceControllerConfiguration) {
|
func (in *EndpointSliceControllerConfiguration) DeepCopyInto(out *EndpointSliceControllerConfiguration) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
out.EndpointUpdatesBatchPeriod = in.EndpointUpdatesBatchPeriod
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue