-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor autoscaler tagging to support multiple tag specs
- Loading branch information
1 parent
d71d4e4
commit 9cf4840
Showing
8 changed files
with
118 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""The Ray autoscaler uses tags/labels to associate metadata with instances.""" | ||
|
||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
|
||
TAG_KEYS = { | ||
# Tag uniquely identifying all nodes of a cluster | ||
'node-name': 'ray:NodeName', | ||
# Tag for the type of node (e.g. Head, Worker) | ||
'node-type': 'ray:NodeType', | ||
# Tag that reports the current state of the node (e.g. Updating, Up-to-date) | ||
'node-status': 'ray:NodeStatus', | ||
'cluster-name': 'ray:ClusterName', | ||
# Hash of the node launch config, used to identify out-of-date nodes | ||
'launch-config': 'ray:LaunchConfig', | ||
# Hash of the node runtime config, used to determine if updates are needed | ||
'runtime-config': 'ray:RuntimeConfig', | ||
} | ||
|
||
|
||
TAG_VALUES = { | ||
'head': 'Head', | ||
'waiting-for-ssh': 'WaitingForSSH', | ||
'update-failed': 'UpdateFailed', | ||
'setting-up': 'SettingUp', | ||
'syncing-files': 'SyncingFiles', | ||
'up-to-date': 'Up-To-Date', | ||
'worker': 'Worker', | ||
'uninitialized': 'Uninitialized', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""The Ray autoscaler uses tags/labels to associate metadata with instances. | ||
Notice that the name 'tag' here is somewhat misnomer, since gcp uses the name | ||
'label' for key-value pairs, and 'tag' for value-only tags. | ||
""" | ||
|
||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
|
||
TAG_KEYS = { | ||
# Tag uniquely identifying all nodes of a cluster | ||
'node-name': 'ray_node-name', | ||
# Tag for the type of node (e.g. Head, Worker) | ||
'node-type': 'ray_node-type', | ||
# Tag that reports the current state of the node (e.g. Updating, Up-to-date) | ||
'node-status': 'ray_node-status', | ||
'cluster-name': 'ray_cluster-name', | ||
# Hash of the node launch config, used to identify out-of-date nodes | ||
'launch-config': 'ray_launch-config', | ||
# Hash of the node runtime config, used to determine if updates are needed | ||
'runtime-config': 'ray_runtime-config', | ||
} | ||
|
||
|
||
TAG_VALUES = { | ||
'head': 'head', | ||
'waiting-for-ssh': 'waiting-for-ssh', | ||
'update-failed': 'update-failed', | ||
'setting-up': 'setting-up', | ||
'syncing-files': 'syncing-files', | ||
'up-to-date': 'up-to-date', | ||
'worker': 'worker', | ||
'uninitialized': 'uninitialized', | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters