mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
Add external module as a node scaler. (#1703)
* WIP: add external module as a node scaler. * Fix style. * Add tests, fix style issues. * Fix typos. * Fix test error. * Fix node provider path. * Add function to spli pkg from class. * Add doc. * Correct documentation. * Debugging.... * Debugging.... * Add __init__.py to tests. * add more output for debugging * Add more test, fix error with import. * Add a small detail to the documentation. * Update autoscaler.py
This commit is contained in:
committed by
Eric Liang
parent
e3685fca5e
commit
070e27ea7a
@@ -157,6 +157,21 @@ with GPU worker nodes instead.
|
||||
MarketType: spot
|
||||
InstanceType: p2.xlarge
|
||||
|
||||
|
||||
External Node Provider
|
||||
--------------------------
|
||||
|
||||
Ray also supports external node providers (check `node_provider.py <https://github.com/ray-project/ray/tree/master/python/ray/autoscaler/node_provider.py>`__ implementation).
|
||||
You can specify the external node provider using the yaml config:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
provider:
|
||||
type: external
|
||||
module: mypackage.myclass
|
||||
|
||||
The module needs to be in the format `package.provider_class` or `package.sub_package.provider_class`.
|
||||
|
||||
Additional Cloud providers
|
||||
--------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user