NodeSelector using system load metric (#94)

* use load when selecting nodes

* Apply suggestions from code review

Co-authored-by: David Zhao <david@davidzhao.com>

* sysload selector test

* wire nodeSelectorFromConfig

* fix tests

* Update pkg/routing/selectorsystemload_test.go

Co-authored-by: David Zhao <david@davidzhao.com>

* dz review: nits

Co-authored-by: David Zhao <david@davidzhao.com>
This commit is contained in:
Mathew Kamkar
2021-08-26 15:24:39 -07:00
committed by GitHub
co-authored by David Zhao
parent 0a9d12bc35
commit c437152e2b
12 changed files with 140 additions and 21 deletions
+8
View File
@@ -117,3 +117,11 @@ keys:
# # optional
# # cert_file: /path/to/cert.pem
# # key_file: /path/to/key.pem
# # node selector
# node_selector:
# # default: random. valid values: random, sysload
# kind: sysload
# # used in sysload node selector
# # do not assign room to node if load per CPU exceeds sysload_limit
# sysload_limit: 0.7