Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Use allocatable capacity, not total capacity for nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Feb 26, 2018
1 parent 5b244bd commit cf7e765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoscaler/kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(self, node):
self.instance_id, self.region, self.instance_type, self.provider = self._get_instance_data()
self.pods = []

self.capacity = KubeResource(**node.obj['status']['capacity'])
self.capacity = KubeResource(**node.obj['status']['allocatable'])
self.used_capacity = KubeResource()
self.creation_time = dateutil_parse(metadata['creationTimestamp'])
last_heartbeat_time = self.creation_time
Expand Down

0 comments on commit cf7e765

Please sign in to comment.