We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0946533 commit a7617c7Copy full SHA for a7617c7
src/cobald/controller/stepwise.py
@@ -113,16 +113,16 @@ def control(pool: Pool, interval):
113
@control.add(supply=10)
114
def quantized(pool: Pool, interval):
115
if pool.utilisation < 0.5:
116
- return pool.supply - 1
+ return pool.demand - 1
117
elif pool.allocation > 0.5:
118
- return pool.supply + 1
+ return pool.demand + 1
119
120
@control.add(supply=100)
121
def continuous(pool: Pool, interval):
122
123
- return pool.supply * 1.1
+ return pool.demand * 1.1
124
125
- return pool.supply * 0.9
+ return pool.demand * 0.9
126
127
# create controller from skeleton
128
pipeline = control(pool, interval=10)
0 commit comments