mirror of
https://github.com/wassname/ray.git
synced 2026-07-21 12:50:45 +08:00
Provide flag for setting redis maxclients. (#1257)
* Add flag for attempting to increase ulimit -n and the redis maxclients. * Don't bother trying to set ulimit -n. * Fix linting. * Add basic test.
This commit is contained in:
committed by
Philipp Moritz
parent
7fc2ddbaf7
commit
0b4961b161
@@ -193,13 +193,19 @@ class StartRayScriptTest(unittest.TestCase):
|
||||
"--num-gpus", "100"])
|
||||
subprocess.Popen(["ray", "stop"]).wait()
|
||||
|
||||
# Test starting Ray with the max redis clients specified.
|
||||
subprocess.check_output(["ray", "start", "--head",
|
||||
"--redis-max-clients", "100"])
|
||||
subprocess.Popen(["ray", "stop"]).wait()
|
||||
|
||||
# Test starting Ray with all arguments specified.
|
||||
subprocess.check_output(["ray", "start", "--head",
|
||||
"--num-workers", "20",
|
||||
"--redis-port", "6379",
|
||||
"--object-manager-port", "12345",
|
||||
"--num-cpus", "100",
|
||||
"--num-gpus", "0"])
|
||||
"--num-gpus", "0",
|
||||
"--redis-max-clients", "100"])
|
||||
subprocess.Popen(["ray", "stop"]).wait()
|
||||
|
||||
# Test starting Ray with invalid arguments.
|
||||
|
||||
Reference in New Issue
Block a user