kubernetes-sigs / kube-scheduler-wasm-extension

All the things to make the scheduler extendable with wasm.
Apache License 2.0
83 stars 16 forks source link

EventHandler equivalent through Wasm #71

Open sanposhiho opened 7 months ago

sanposhiho commented 7 months ago

What would you like to be added:

EventHandler equivalent to notify updates to resources from host to wasm guest.

Why is this needed:

In current design, we passed nodes and pods to every wasm guest in every scheduling cycle. But, actually no need to pass nodes and pods every time since not all objects get changed between each scheduling cycle. We can always store every pod/node to all wasm guests' memory, and keep them up-to-date. Then, every wasm guest just needs to refer to those objects when needed, instead of getting them from host in every scheduling cycle, which requires overhead to marshall/unmarshall the objects.

Completion requirements:

This enhancement requires the following artifacts:

The artifacts should be linked in subsequent comments.

k8s-triage-robot commented 2 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

sanposhiho commented 2 months ago

/remove-lifecycle stale /lifecycle frozen