Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1acd69ef6b | ||
|
|
497937a833 |
+1
-1
@@ -3,7 +3,7 @@ active: true
|
||||
schedule: "* * * * *"
|
||||
action: ensure
|
||||
runOnStartup: true
|
||||
imageName: python-sched:0.1
|
||||
imageName: docker.izazpi.cloud/infra/infra-python:0.1.12
|
||||
command: ["python", "/app/test_script.py"]
|
||||
maxCpuCores: 0.5
|
||||
maxMemoryMb: 128
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ def logic(plant):
|
||||
cpu = plant.state.get("deb13kde-cpu", 0.0)
|
||||
ram = plant.state.get("deb13kde-ram", 0.0)
|
||||
|
||||
load_index = (cpu + ram) / 2.0
|
||||
load_index = (cpu * 3.0 + ram) / 4.0
|
||||
|
||||
batch = plant.new_write_batch()
|
||||
batch.add(ID_LOAD_INDEX, load_index, "deb13kde-load-index")
|
||||
|
||||
Reference in New Issue
Block a user