mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #26414 from jsafrane/reduce-sync-period
Automatic merge from submit-queue Reduce volume controller sync period fixes #24236 and most probably also fixes #25294. Needs #25881! With the cache, binder is not affected by sync period. Without the cache, binding of 1000 PVCs takes more than 5 minutes (instead of ~70 seconds). 15 seconds were chosen by fair 2d10 roll :-)
This commit is contained in:
commit
9aeeef1d81
@ -60,7 +60,7 @@ func NewCMServer() *CMServer {
|
|||||||
NodeSyncPeriod: unversioned.Duration{Duration: 10 * time.Second},
|
NodeSyncPeriod: unversioned.Duration{Duration: 10 * time.Second},
|
||||||
ResourceQuotaSyncPeriod: unversioned.Duration{Duration: 5 * time.Minute},
|
ResourceQuotaSyncPeriod: unversioned.Duration{Duration: 5 * time.Minute},
|
||||||
NamespaceSyncPeriod: unversioned.Duration{Duration: 5 * time.Minute},
|
NamespaceSyncPeriod: unversioned.Duration{Duration: 5 * time.Minute},
|
||||||
PVClaimBinderSyncPeriod: unversioned.Duration{Duration: 10 * time.Minute},
|
PVClaimBinderSyncPeriod: unversioned.Duration{Duration: 15 * time.Second},
|
||||||
HorizontalPodAutoscalerSyncPeriod: unversioned.Duration{Duration: 30 * time.Second},
|
HorizontalPodAutoscalerSyncPeriod: unversioned.Duration{Duration: 30 * time.Second},
|
||||||
DeploymentControllerSyncPeriod: unversioned.Duration{Duration: 30 * time.Second},
|
DeploymentControllerSyncPeriod: unversioned.Duration{Duration: 30 * time.Second},
|
||||||
MinResyncPeriod: unversioned.Duration{Duration: 12 * time.Hour},
|
MinResyncPeriod: unversioned.Duration{Duration: 12 * time.Hour},
|
||||||
|
@ -104,7 +104,7 @@ kube-controller-manager
|
|||||||
--pv-recycler-pod-template-filepath-hostpath="": The file path to a pod definition used as a template for HostPath persistent volume recycling. This is for development and testing only and will not work in a multi-node cluster.
|
--pv-recycler-pod-template-filepath-hostpath="": The file path to a pod definition used as a template for HostPath persistent volume recycling. This is for development and testing only and will not work in a multi-node cluster.
|
||||||
--pv-recycler-pod-template-filepath-nfs="": The file path to a pod definition used as a template for NFS persistent volume recycling
|
--pv-recycler-pod-template-filepath-nfs="": The file path to a pod definition used as a template for NFS persistent volume recycling
|
||||||
--pv-recycler-timeout-increment-hostpath=30: the increment of time added per Gi to ActiveDeadlineSeconds for a HostPath scrubber pod. This is for development and testing only and will not work in a multi-node cluster.
|
--pv-recycler-timeout-increment-hostpath=30: the increment of time added per Gi to ActiveDeadlineSeconds for a HostPath scrubber pod. This is for development and testing only and will not work in a multi-node cluster.
|
||||||
--pvclaimbinder-sync-period=10m0s: The period for syncing persistent volumes and persistent volume claims
|
--pvclaimbinder-sync-period=15s: The period for syncing persistent volumes and persistent volume claims
|
||||||
--replicaset-lookup-cache-size=4096: The the size of lookup cache for replicatsets. Larger number = more responsive replica management, but more MEM load.
|
--replicaset-lookup-cache-size=4096: The the size of lookup cache for replicatsets. Larger number = more responsive replica management, but more MEM load.
|
||||||
--replication-controller-lookup-cache-size=4096: The the size of lookup cache for replication controllers. Larger number = more responsive replica management, but more MEM load.
|
--replication-controller-lookup-cache-size=4096: The the size of lookup cache for replication controllers. Larger number = more responsive replica management, but more MEM load.
|
||||||
--resource-quota-sync-period=5m0s: The period for syncing quota usage status in the system
|
--resource-quota-sync-period=5m0s: The period for syncing quota usage status in the system
|
||||||
@ -115,7 +115,7 @@ kube-controller-manager
|
|||||||
--terminated-pod-gc-threshold=12500: Number of terminated pods that can exist before the terminated pod garbage collector starts deleting terminated pods. If <= 0, the terminated pod garbage collector is disabled.
|
--terminated-pod-gc-threshold=12500: Number of terminated pods that can exist before the terminated pod garbage collector starts deleting terminated pods. If <= 0, the terminated pod garbage collector is disabled.
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 26-May-2016
|
###### Auto generated by spf13/cobra on 27-May-2016
|
||||||
|
|
||||||
|
|
||||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||||
|
@ -44,7 +44,7 @@ type PersistentVolumeControllerOptions struct {
|
|||||||
|
|
||||||
func NewPersistentVolumeControllerOptions() PersistentVolumeControllerOptions {
|
func NewPersistentVolumeControllerOptions() PersistentVolumeControllerOptions {
|
||||||
return PersistentVolumeControllerOptions{
|
return PersistentVolumeControllerOptions{
|
||||||
PVClaimBinderSyncPeriod: 10 * time.Minute,
|
PVClaimBinderSyncPeriod: 15 * time.Second,
|
||||||
VolumeConfigFlags: VolumeConfigFlags{
|
VolumeConfigFlags: VolumeConfigFlags{
|
||||||
// default values here
|
// default values here
|
||||||
PersistentVolumeRecyclerMaximumRetry: 3,
|
PersistentVolumeRecyclerMaximumRetry: 3,
|
||||||
|
Loading…
Reference in New Issue
Block a user