[autoscaler] Add a 'request_cores' function for manual autoscaling (#4754)

This commit is contained in:
Daniel Edgecumbe
2019-07-26 17:14:45 -07:00
committed by Richard Liaw
parent d9e81da3b8
commit 06fec63c87
5 changed files with 137 additions and 11 deletions
@@ -173,6 +173,13 @@ class AWSNodeProvider(NodeProvider):
def create_node(self, node_config, tags, count):
tags = to_aws_format(tags)
conf = node_config.copy()
# Delete unsupported keys from the node config
try:
del conf["Resources"]
except KeyError:
pass
tag_pairs = [{
"Key": TAG_RAY_CLUSTER_NAME,
"Value": self.cluster_name,