mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
[autoscaler] Add a 'request_cores' function for manual autoscaling (#4754)
This commit is contained in:
committed by
Richard Liaw
parent
d9e81da3b8
commit
06fec63c87
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user