mirror of
https://github.com/wassname/ray.git
synced 2026-10-29 13:30:42 +08:00
Clip RLIMIT_NOFILE increase to avoid redis failing to start on Big Sur
This commit is contained in:
1 parent
69b0bc2132
commit
1eb4ac12b1
1 file changed
+2
@@ -608,6 +608,8 @@ def init(
|
||||
import resource
|
||||
soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
|
||||
if soft < hard:
|
||||
# https://github.com/ray-project/ray/issues/12059
|
||||
soft = max(soft, min(hard, 65536))
|
||||
logger.debug("Automatically increasing RLIMIT_NOFILE to max "
|
||||
"value of {}".format(hard))
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user