Skip to content

Allow fetching number of logicalclusters on a shard during scheduling #4256

Open

Description

@SimonTheLeg

In order to build a fair and balanced scheduler (see platform-mesh/backlog#333), we need during scheduling the ability to roughly know the number of logicalclusters scheduled on all shards.

To be refined:

Option A)
Include this data in the shard object (e.g. statusfield) as we fetch these for all scheduling anyway. Potentially the simplest solution, however this would mean we constantly update the shard object and write it to etcd.

Option B)
Allow shards to fetch the number from the metrics endpoint. I am still undecided if it is a good idea to mix the metrics domain with core functionality

Option C)
Implement a new endpoint on shards which gives out this number, which is only accessible for other shards via their shard-to-shard auth certificate.

Option D)
Frontproxy already keeps track of information on logicalclusters and the shards they are scheduled on. By having the scheduling component inside or close to frontproxy we could directly access that information. Has the advantage that the FP is already stateless.

// TODO research how existing Kubernetes scheduling retrieves this information

Activity

  1. kcp-ci-bot commented on Nov 10, 2026

    @kcp-ci-bot
    Contributor

    Issues go stale after 90d of inactivity.
    After a furter 30 days, they will turn rotten.
    Mark the issue as fresh with /remove-lifecycle stale.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  2. added
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    • Status
      New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions