Removing the check about the size re: ray-project/ray#3450 (#3464)

* Removing the check about the size re: ray-project/ray#3450

* Addressing comments

* Update services.py
This commit is contained in:
Devin Petersohn
2018-12-06 16:59:24 -08:00
committed by Philipp Moritz
parent 7a7c6e53c8
commit 970babf31a
+9 -7
View File
@@ -1028,9 +1028,6 @@ def determine_plasma_store_config(object_store_memory=None,
"when calling ray.init() or ray start.")
object_store_memory = MAX_DEFAULT_MEM
if plasma_directory is not None:
plasma_directory = os.path.abspath(plasma_directory)
# Determine which directory to use. By default, use /tmp on MacOS and
# /dev/shm on Linux, unless the shared-memory file system is too small,
# in which case we default to /tmp on Linux.
@@ -1055,10 +1052,15 @@ def determine_plasma_store_config(object_store_memory=None,
else:
plasma_directory = "/tmp"
# Do some sanity checks.
if object_store_memory > system_memory:
raise Exception("The requested object store memory size is greater "
"than the total available memory.")
# Do some sanity checks.
if object_store_memory > system_memory:
raise Exception(
"The requested object store memory size is greater "
"than the total available memory.")
else:
plasma_directory = os.path.abspath(plasma_directory)
logger.warning("WARNING: object_store_memory is not verified when "
"plasma_directory is set.")
if not os.path.isdir(plasma_directory):
raise Exception("The file {} does not exist or is not a directory."