paypal / load-watcher

Load watcher is a cluster-wide aggregator of metrics, developed for Trimaran: Real Load Aware Scheduler in Kubernetes.
Other
65 stars 34 forks source link

Add support variation risk balancing #9

Closed charstal closed 3 years ago

charstal commented 3 years ago
  1. I add a yaml deploy file
  2. finished the support for second plugin simply

testing result image image

I havn't finished the testing file

{"timestamp":1609843956,"window":{"duration":"15m","start":1609843056,"end":1609843956},"source":"","data":{"NodeMetricsMap":{"k8s-1m-2n-latest-worker":{"metrics":[{"name":"host.cpu.utilisation","type":"CPU","rollup":"AVG","value":0.003616666666666667},{"name":"host.cpu.utilisation","type":"CPU","rollup":"STD","value":0.00000004345238095238095},{"name":"host.memory.utilisation","type":"Memory","rollup":"AVG","value":0.01586203949225173},{"name":"host.memory.utilisation","type":"Memory","rollup":"STD","value":0.0000000009411688868542183}],"tags":{},"metadata":{"dataCenter":""}},"k8s-1m-2n-latest-worker2":{"metrics":[{"name":"host.cpu.utilisation","type":"CPU","rollup":"AVG","value":0.004158333333333333},{"name":"host.cpu.utilisation","type":"CPU","rollup":"STD","value":0.00000787157738095238},{"name":"host.memory.utilisation","type":"Memory","rollup":"AVG","value":0.01659691465281302},{"name":"host.memory.utilisation","type":"Memory","rollup":"STD","value":0.00000005600158888731594}],"tags":{},"metadata":{"dataCenter":""}},"k8s-1m-2n-latest-control-plane":{"metrics":[{"name":"host.cpu.utilisation","type":"CPU","rollup":"AVG","value":0.022574999999999998},{"name":"host.cpu.utilisation","type":"CPU","rollup":"STD","value":0.000001104464285714288},{"name":"host.memory.utilisation","type":"Memory","rollup":"AVG","value":0.05292091717184762},{"name":"host.memory.utilisation","type":"Memory","rollup":"STD","value":0.000000025921568293925273}],"tags":{},"metadata":{"dataCenter":""}}}}}
ridv commented 3 years ago

@charstal some folks working on this project are on vacation so you may not get feedback quick but it'll come 😄

zorro786 commented 3 years ago

@charstal Thank you for your contribution, it is not clear to me the need for this PR. Please open an issue first and we can discuss there. For your information, @wangchen615 is working to add support for "LoadVariationRiskBalancing" plugin, this will take care of memory/std/avg etc. I am currently working on a hands on tutorial which includes deployment spec for Trimaran Scheduler. I am closing this PR for now; if you would like to contribute for anything please open an issue and we can take it from there.