Skip to content

Commit

Permalink
Merge pull request #2973 from Yelp/PAASTA-17118-signalflow-min
Browse files Browse the repository at this point in the history
Use above() in HPA signalflow so we do not replace null with 0
  • Loading branch information
stug committed Nov 16, 2020
2 parents 4d73417 + 3729da3 commit 09c4851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paasta_tools/kubernetes_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
desired_instances_at_each_point_in_time = (load_per_instance - offset).sum() / (setpoint - offset)
desired_instances = desired_instances_at_each_point_in_time.mean(over=moving_average_window)
max(desired_instances / current_replicas, 0).publish()
(desired_instances / current_replicas).above(0).publish()
"""


Expand Down

0 comments on commit 09c4851

Please sign in to comment.