peaks icon indicating copy to clipboard operation
peaks copied to clipboard

Use Kubernetes Configmap to pass the power model parameters to PEAKS plugin

Open knarayan opened this issue 1 year ago • 4 comments

PEAKS plugin requires the power model parameters for each cluster node configured with it.

However, the power model parameters are subjected to change (e.g., increase in the number of CPUs on a node result in change in the power model [ utilization vs. power consumption ]) over time.

Hence we need a mechanism to pass the updated power model parameters of any cluster node.

knarayan avatar Jun 27 '24 17:06 knarayan

Configmap can be used to address this issue (a less preferred alternative is to use webhook).

knarayan avatar Jun 27 '24 17:06 knarayan

Plan

  1. Mount a configmap to scheduler pod as volume.
  2. Configmap contains power model in json.
  3. Read config map in power model function and unmarshal to json.

fali007 avatar Sep 20 '24 05:09 fali007

Plan

1. Mount a configmap to scheduler pod as volume.

2. Configmap contains power model in json.

3. Read config map in power model function and unmarshal to json.

@fali007 You may want to referrer to the issue https://github.com/sustainable-computing-io/peaks/issues/32 to configure kind cluster for testing your changes.

knarayan avatar Sep 23 '24 14:09 knarayan

Associated PR: https://github.com/sustainable-computing-io/scheduler-plugins/pull/9

knarayan avatar Sep 27 '24 09:09 knarayan