Skip to content

Optimize allocator to maintain list of available IDs #4574

@tgraf

Description

@tgraf

The allocator in pkg/kvstore/allocator is using a brute force to allocate IDs based on a random number sequence to have multiple agents attempt allocation in different order.

This can be optimized by maintaining a random sequence that takes used IDs into account based on local usage and identity events (see maintenance of Allocator.cache).

Metadata

Metadata

Assignees

No one assigned

    Labels

    good-first-issueGood starting point for new developers, which requires minimal understanding of Cilium.kind/enhancementThis would improve or streamline existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions