awswrangler.distributed.ray.initialize_ray¶
- awswrangler.distributed.ray.initialize_ray(address: str | None = None, redis_password: str | None = None, ignore_reinit_error: bool = True, include_dashboard: bool | None = False, configure_logging: bool = True, log_to_driver: bool = False, logging_level: int = 20, object_store_memory: int | None = None, cpu_count: int | None = None, gpu_count: int | None = None) None ¶
Connect to an existing Ray cluster or start one and connect to it.
Note
This function has arguments which can be configured globally through wr.config or environment variables:
address
redis_password
ignore_reinit_error
include_dashboard
configure_logging
log_to_driver
logging_level
object_store_memory
cpu_count
gpu_count
Check out the Global Configurations Tutorial for details.
- Parameters:
address (
str
|None
) – Address of the Ray cluster to connect to, by default Noneredis_password (
str
|None
) – Password to the Redis cluster, by default Noneignore_reinit_error (
bool
) – If true, Ray suppress errors from calling ray.init() twice, by default Trueinclude_dashboard (
bool
|None
) – Boolean flag indicating whether or not to start the Ray dashboard, by default Falseconfigure_logging (
bool
) – Boolean flag indicating whether or not to enable logging, by default Truelog_to_driver (
bool
) – Boolean flag to enable routing of all worker logs to the driver, by default Falselogging_level (
int
) – Logging level, defaults to logging.INFO. Ignored unless “configure_logging” is Trueobject_store_memory (
int
|None
) – The amount of memory (in bytes) to start the object store with, by default Nonecpu_count (
int
|None
) – Number of CPUs to assign to each raylet, by default Nonegpu_count (
int
|None
) – Number of GPUs to assign to each raylet, by default None
- Return type:
None