forked from ray-project/ray-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update worker.py and services.py to use plasma and the local schedule…
…r. (ray-project#19) * Update worker code and services code to use plasma and the local scheduler. * Cleanups. * Fix bug in which threads were started before the worker mode was set. This caused remote functions to be defined on workers before the worker knew it was in WORKER_MODE. * Fix bug in install-dependencies.sh. * Lengthen timeout in failure_test.py. * Cleanups. * Cleanup services.start_ray_local. * Clean up random name generation. * Cleanups.
- Loading branch information
1 parent
2068587
commit 072f442
Showing
20 changed files
with
623 additions
and
1,208 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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,25 @@ | ||
from __future__ import print_function | ||
|
||
import sys | ||
import argparse | ||
import numpy as np | ||
|
||
import ray | ||
|
||
parser = argparse.ArgumentParser(description="Parse addresses for the worker to connect to.") | ||
parser.add_argument("--node-ip-address", required=True, type=str, help="the ip address of the worker's node") | ||
parser.add_argument("--redis-port", required=True, type=int, help="the port to use for Redis") | ||
parser.add_argument("--object-store-name", type=str, help="the object store's name") | ||
parser.add_argument("--object-store-manager-name", type=str, help="the object store manager's name") | ||
parser.add_argument("--local-scheduler-name", type=str, help="the local scheduler's name") | ||
|
||
if __name__ == "__main__": | ||
args = parser.parse_args() | ||
address_info = {"node_ip_address": args.node_ip_address, | ||
"redis_port": args.redis_port, | ||
"object_store_name": args.object_store_name, | ||
"object_store_manager_name": args.object_store_manager_name, | ||
"local_scheduler_name": args.local_scheduler_name} | ||
ray.worker.connect(address_info, ray.WORKER_MODE) | ||
|
||
ray.worker.main_loop() |
This file was deleted.
Oops, something went wrong.
Empty file.
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
Oops, something went wrong.