mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 10:33:16 +08:00
[Object Spilling] Turn on by default. (#13745)
* Done. * in progress. * in progress. * fixed tests. * Fix.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
|
||||
@@ -320,16 +319,3 @@ class RayParams:
|
||||
if numpy_major <= 1 and numpy_minor < 16:
|
||||
logger.warning("Using ray with numpy < 1.16.0 will result in slow "
|
||||
"serialization. Upgrade numpy if using with ray.")
|
||||
|
||||
# Make sure object spilling configuration is applicable.
|
||||
object_spilling_config = self._system_config.get(
|
||||
"object_spilling_config", {})
|
||||
if object_spilling_config:
|
||||
object_spilling_config = json.loads(object_spilling_config)
|
||||
from ray import external_storage
|
||||
# Validate external storage usage.
|
||||
external_storage.setup_external_storage(object_spilling_config)
|
||||
external_storage.reset_external_storage()
|
||||
# Configure the proper system config.
|
||||
self._system_config["is_external_storage_type_fs"] = (
|
||||
object_spilling_config["type"] == "filesystem")
|
||||
|
||||
Reference in New Issue
Block a user