Use /tmp instead of /dev/shm for object store on Linux if /dev/shm is too small. (#3149)

* Use /tmp instead of /dev/shm for object store on Linux if /dev/shm is too small.

* Add logging statement and address comments.

* Fix
This commit is contained in:
Robert Nishihara
2018-10-28 20:09:06 -07:00
committed by Philipp Moritz
parent 08fc9e5bcd
commit 9868af4c7c
4 changed files with 107 additions and 42 deletions
+2 -2
View File
@@ -170,7 +170,7 @@ def ray_start_reconstruction(request):
# Start the Plasma store instances with a total of 1GB memory.
plasma_store_memory = 10**9
plasma_addresses = []
objstore_memory = plasma_store_memory // num_local_schedulers
object_store_memory = plasma_store_memory // num_local_schedulers
for i in range(num_local_schedulers):
store_stdout_file, store_stderr_file = (
ray.tempfile_services.new_plasma_store_log_file(i, True))
@@ -178,7 +178,7 @@ def ray_start_reconstruction(request):
ray.services.start_plasma_store(
node_ip_address,
redis_address,
objstore_memory=objstore_memory,
object_store_memory=object_store_memory,
store_stdout_file=store_stdout_file,
store_stderr_file=store_stderr_file))