Skip to content

Feature: Priority Queue #2374

Open
Open
@fabriziopandini

Description

@fabriziopandini

Tasks

Feature enablement

The feature can be enabled by setting the UsePriorityQueue option to true, e.g.:

	ctrlOptions := ctrl.Options{
		Controller: config.Controller{
			UsePriorityQueue: ptr.To[bool](true),
		},
        ...
	}

	mgr, err := ctrl.NewManager(restConfig, ctrlOptions)

Original issue description

While discussing #857 (comment) an idea come up about having something like a priority queue, so we can give resync events a lower priority while assigning to other events a higher priority.

This could help when there are many objects of the same type and at every resync period there is a storm of events being added to the queue.

cc @alvaroaleman @sbueringer

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions