Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Increase MaxConcurrentReconciles number #14

Open
hbinkim opened this issue Apr 28, 2021 · 0 comments
Open

Increase MaxConcurrentReconciles number #14

hbinkim opened this issue Apr 28, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@hbinkim
Copy link
Contributor

hbinkim commented Apr 28, 2021

Just so we don't forget about it.

// SetupWithManager creates a new CephCluster Controller and adds it to the Manager
func (r *CephClusterReconciler) SetupWithManager(mgr ctrl.Manager) error {
	return ctrl.NewControllerManagedBy(mgr).
		For(&hypersdsv1alpha1.CephCluster{}).
		Watches(&source.Kind{Type: &v1.RoleBinding{}},
			&handler.EnqueueRequestForOwner{IsController: true, OwnerType: &hypersdsv1alpha1.CephCluster{}}).
		WithOptions(controller.Options{MaxConcurrentReconciles: 10}).
		Complete(r)
}

Looking at operator-framework/operator-sdk#1938 seems like we can come up with an appropriate number and see how it goes.

@hbinkim hbinkim added the enhancement New feature or request label Apr 28, 2021
@hbinkim hbinkim added this to the Project Merge milestone Apr 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant