ray API reference
400 public APIs from ray (ray-project/ray) — 104 classes, 154 functions, 142 methods. Signatures extracted by static analysis of the actual source.
Repository: ray-project/ray
| Kind | Count |
|---|---|
| Classes | 104 |
| Functions | 154 |
| Methods | 142 |
API list
func
ci.lint.pytest_checker.check_file(file_contents:str) -> boolCheck file for the snippet
func
ci.lint.pytest_checker.treat_path(path:str) -> PathTreat bazel paths to filesystem paths
class
ci.ray_ci.automation.copy_wanda_image.CopyWandaImageErrorError raised when copying Wanda-cached images fails.
class
ci.ray_ci.automation.crane_lib.CraneErrorException raised when a crane operation fails.
func
ci.ray_ci.automation.crane_lib.call_crane_copy(source:str, destination:str) -> NoneCopy a container image from source to destination.
func
ci.ray_ci.automation.crane_lib.call_crane_export(tag:str, output_dir:str) -> NoneExport a container image to a tar file and extract it.
func
ci.ray_ci.automation.crane_lib.call_crane_manifest(tag:str) -> strFetch the manifest for a container image.
class
ci.ray_ci.automation.docker_tags_lib.AuthTokenExceptionException for failing to retrieve auth token.
class
ci.ray_ci.automation.docker_tags_lib.DockerHubRateLimitExceptionException for Docker Hub rate limit exceeded.
class
ci.ray_ci.automation.docker_tags_lib.RetrieveImageConfigExceptionException for failing to retrieve image config.
func
ci.ray_ci.automation.docker_tags_lib.backup_release_tags(namespace:str, repository:str, aws_ecr_repo:str, docker_username:str, docker_password:str, release_versions:Optional[List[str]]=None) -> NoneBackup release tags to AWS ECR.
func
ci.ray_ci.automation.docker_tags_lib.copy_tag_to_aws_ecr(tag:str, aws_ecr_repo:str) -> boolCopy tag from Docker Hub to AWS ECR.
func
ci.ray_ci.automation.docker_tags_lib.delete_tag(tag:str, docker_hub_token:str) -> boolDelete tag from Docker Hub repo.
func
ci.ray_ci.automation.docker_tags_lib.get_ray_commit(image_name:str) -> strGet the commit hash of Ray in the image.
func
ci.ray_ci.automation.docker_tags_lib.list_image_tags(prefix:str, ray_type:str, python_versions:List[str], platforms:List[str], architectures:List[str]) -> List[str]List all tags for a Docker build version.
func
ci.ray_ci.automation.docker_tags_lib.query_tags_from_docker_with_oci(namespace:str, repository:str) -> List[str]Query all repo tags from Docker using OCI API.
func
ci.ray_ci.automation.filter_tests.main(prefix:str, state_filter:str) -> NoneFilter flaky tests.
class
ci.ray_ci.automation.image_tags_lib.ImageTagsErrorError raised when image tag operations fail.
func
ci.ray_ci.automation.image_tags_lib.format_platform_tag(platform:str) -> strFormat platform as -cpu, -tpu, or shortened CUDA version.
func
ci.ray_ci.automation.image_tags_lib.format_python_tag(python_version:str) -> strFormat python version as -py310 (no dots, with hyphen prefix).
func
ci.ray_ci.automation.image_tags_lib.get_variation_suffix(image_type:str) -> strGet variation suffix for -extra image types.
func
ci.ray_ci.automation.image_tags_lib.image_exists(tag:str) -> boolCheck if a container image manifest exists using crane.
class
ci.ray_ci.automation.push_ray_image.PushRayImageErrorError raised when pushing ray images fails.
func
ci.ray_ci.automation.push_ray_image.compact_cuda_suffix(platform:str) -> strConvert a CUDA platform string to compact suffix (e.g.
func
ci.ray_ci.automation.ray_wheels_lib.add_build_tag_to_wheel(wheel_path:str, build_tag:str) -> NoneAdd build tag to the wheel.
func
ci.ray_ci.automation.ray_wheels_lib.add_build_tag_to_wheels(directory_path:str, build_tag:str) -> NoneAdd build tag to all wheels in the given directory.
func
ci.ray_ci.automation.ray_wheels_lib.download_wheel_from_s3(key:str, directory_path:str) -> NoneDownload a Ray wheel from S3 to the given directory.
class
ci.ray_ci.bazel_sharding.BazelRuleDataclass representing a bazel py_test rule (BUILD entry).
method
ci.ray_ci.bazel_sharding.BazelRule.from_xml_element(element:ET.Element) -> 'BazelRule'Create a BazelRule from an XML element.
func
ci.ray_ci.bazel_sharding.generate_regex_from_tags(tags:Iterable[str]) -> strTurn tag filters into a regex used in bazel query.
func
ci.ray_ci.bazel_sharding.run_bazel_query(query:str, debug:bool) -> ET.ElementRuns bazel query with XML output format.
func
ci.ray_ci.bazel_sharding.split_tag_filters(tag_str:str) -> Tuple[Set[str], Set[str]]Split tag_filters string into include & exclude tags.
func
ci.ray_ci.builder.build_anyscale(image_type:str, python_version:str, build_type:str, platform:List[str], architecture:str, canonical_tag:str, upload:bool) -> NoneBuild an anyscale container artifact.
func
ci.ray_ci.builder.build_docker(image_type:str, python_version:str, build_type:str, platform:List[str], architecture:str, canonical_tag:str, upload:bool) -> NoneBuild a container artifact.
func
ci.ray_ci.builder.build_wheel(python_version:str, build_type:str, architecture:str, operating_system:str, upload:bool) -> NoneBuild a wheel artifact.
func
ci.ray_ci.builder.main(artifact_type:str, image_type:str, build_type:str, python_version:str, platform:List[str], architecture:str, operating_system:str, canonical_tag:str, upload:bool) -> NoneBuild a wheel or jar artifact
class
ci.ray_ci.container.ContainerA wrapper for running commands in ray ci docker container
method
ci.ray_ci.container.Container.get_artifact_mount() -> Tuple[str, str]Get artifact mount path on host and container
method
ci.ray_ci.container.Container.run_script(script:List[str]) -> NoneRun a script in container
method
ci.ray_ci.container.Container.run_script_with_output(script:List[str]) -> strRun a script in container and returns output
func
ci.ray_ci.container.get_docker_image(docker_tag:str, build_id:Optional[str]=None) -> strGet rayci image for a particular tag.
class
ci.ray_ci.docker_container.DockerContainerContainer for building and publishing ray docker images
class
ci.ray_ci.ray_docker_container.RayDockerContainerContainer for building and publishing ray docker images
method
ci.ray_ci.ray_docker_container.RayDockerContainer.run(base:Optional[str]=None) -> NoneBuild and publish ray docker images
class
ci.ray_ci.ray_image.RayImageImmutable identity of a Ray Docker image variant.
method
ci.ray_ci.ray_image.RayImage.repo() -> strDocker Hub repository name (e.g.
method
ci.ray_ci.ray_image.RayImage.wanda_image_name() -> strWanda output image name (without registry prefix).
class
ci.ray_ci.ray_image.RayImageErrorRaised when a RayImage field combination is invalid.
class
ci.ray_ci.tester_container.TesterContainerA wrapper for running tests in ray ci docker container
method
ci.ray_ci.tester_container.TesterContainer.run_tests(team:str, test_targets:List[str], test_arg:Optional[str]=None, is_bisect_run:bool=False, run_flaky_tests:bool=False, cache_test_results:bool=False) -> boolRun tests parallelly in docker.
func
ci.ray_ci.utils.add_handlers(logger:logging.Logger)Add handlers to logger
func
ci.ray_ci.utils.chunk_into_n(list:List[str], n:int) -> List[List[str]]Chunk a list into n chunks
func
ci.ray_ci.utils.ci_init() -> NoneInitialize global config
func
ci.ray_ci.utils.docker_pull(image:str) -> NonePull docker image
func
ci.ray_ci.utils.ecr_docker_login(docker_ecr:str) -> NoneLogin to ECR with AWS credentials
func
ci.ray_ci.utils.get_flaky_test_names(prefix:str) -> List[str]Query all flaky tests with specified prefix.
func
ci.raydepsets.cli.cli()Manage Python dependency sets.
func
python.ray._common.network_utils.find_free_port(family:socket.AddressFamily=socket.AF_INET) -> intFind a free port on the local machine.
method
python.ray._common.ray_option_utils.Option.validate(keyword:str, value:Any)Validate the option.
func
python.ray._common.ray_option_utils.update_options(original_options:Dict[str, Any], new_options:Dict[str, Any]) -> Dict[str, Any]Update original options with new options and return.
func
python.ray._common.ray_option_utils.validate_actor_options(options:Dict[str, Any], in_options:bool)Options check for Ray actors.
func
python.ray._common.retry.call_with_retry(f:Callable[P, R], description:str, match:Optional[Sequence[str]]=None, max_attempts:int=10, max_backoff_s:int=32, *args:P.args, **kwargs:P.kwargs) -> RRetry a function with exponential backoff.
func
python.ray._common.retry.format_exception(exc:BaseException, include_cause:bool=False) -> strFormat ``exc`` as ``"ClassName: message"`` for substring/regex matching.
func
python.ray._common.signature.extract_signature(func:Any, ignore_first:bool=False) -> List[Parameter]Extract the function signature from the function.
func
python.ray._common.signature.get_signature(func:Any) -> inspect.SignatureGet signature parameters.
func
python.ray._common.signature.validate_args(signature_parameters:List[Parameter], args:Tuple[Any, ...], kwargs:Dict[str, Any]) -> NoneValidates the arguments against the signature.
func
python.ray._common.tls_utils.generate_self_signed_tls_certs() -> Tuple[str, str]Create self-signed key/cert pair for testing.
class
python.ray._common.usage.usage_lib.UsageReportClientThe client implementation for usage report.
method
python.ray._common.usage.usage_lib.UsageReportClient.report_usage_data(url:str, data:UsageStatsToReport) -> NoneReport the usage data to the usage server.
method
python.ray._common.usage.usage_lib.UsageReportClient.write_usage_data(data:UsageStatsToWrite, dir_path:str) -> NoneWrite the usage data to the directory.
class
python.ray._common.usage.usage_lib.UsageStatsToReportUsage stats to report
func
python.ray._common.usage.usage_lib.generate_report_data(cluster_config_to_report:ClusterConfigToReport, total_success:int, total_failed:int, seq_number:int, gcs_address:str, cluster_id:str) -> UsageStatsToReportGenerate the report data.
func
python.ray._common.usage.usage_lib.generate_write_data(usage_stats:UsageStatsToReport, error:str) -> UsageStatsToWriteGenerate the report data.
func
python.ray._common.usage.usage_lib.get_cluster_metadata(gcs_client:GcsClient) -> dictGet the cluster metadata from GCS.
func
python.ray._common.usage.usage_lib.get_cluster_status_to_report(gcs_client:GcsClient) -> ClusterStatusToReportGet the current status of this cluster.
func
python.ray._common.usage.usage_lib.get_extra_usage_tags_to_report(gcs_client:GcsClient) -> Dict[str, str]Get the extra usage tags from env var and gcs kv store.
func
python.ray._common.usage.usage_lib.is_ray_init_cluster(gcs_client:ray._raylet.GcsClient) -> boolReturn whether the cluster is started by ray.init()
func
python.ray._common.usage.usage_lib.put_cluster_metadata(gcs_client:GcsClient, *ray_init_cluster:bool) -> dictGenerate the cluster metadata and store it to GCS.
func
python.ray._common.usage.usage_lib.record_extra_usage_tag(key:TagKey, value:str, gcs_client:Optional[GcsClient]=None)Record extra kv usage tag.
func
python.ray._common.usage.usage_lib.record_hardware_usage(hardware_usage:str)Record hardware usage (e.g.
func
python.ray._common.usage.usage_lib.record_library_usage(library_usage:str)Record library usage (e.g.
func
python.ray._common.utils.decode(byte_str:str, allow_none:bool=False, encode_type:str='utf-8')Make this unicode in Python 3, otherwise leave it as bytes.
func
python.ray._common.utils.import_attr(full_path:str, *reload_module:bool=False) -> AnyGiven a full import path to a module attr, return the imported attr.
func
python.ray._common.utils.resolve_user_ray_temp_dir(gcs_client:GcsClient, node_id:str)Get the ray temp directory.
func
python.ray._common.utils.resources_from_ray_options(options_dict:Dict[str, Any]) -> Dict[str, Any]Determine a task's resource requirements.
func
python.ray._common.utils.run_background_task(coroutine:Coroutine) -> asyncio.TaskSchedule a task reliably to the event loop.
class
python.ray._private.accelerators.amd_gpu.AMDGPUAcceleratorManagerAMD GPU accelerators.
class
python.ray._private.accelerators.apple_gpu.AppleGPUAcceleratorManagerApple Silicon GPU (MPS) accelerator manager.
method
python.ray._private.accelerators.apple_gpu.AppleGPUAcceleratorManager.set_current_process_visible_accelerator_ids(ids:List[str]) -> NoneNo-op for Apple Silicon.
class
python.ray._private.accelerators.furiosa.FuriosaAcceleratorManagerFuriosaAI NPU accelerators.
func
python.ray._private.accelerators.get_all_accelerator_managers() -> Set[AcceleratorManager]Get all accelerator managers supported by Ray.
func
python.ray._private.accelerators.get_all_accelerator_resource_names() -> Set[str]Get all resource names for accelerators.
class
python.ray._private.accelerators.hpu.HPUAcceleratorManagerIntel Habana(HPU) accelerators.
method
python.ray._private.accelerators.hpu.HPUAcceleratorManager.is_initialized() -> boolAttempt to check if HPU backend is initialized.
class
python.ray._private.accelerators.intel_gpu.IntelGPUAcceleratorManagerIntel GPU accelerators.
method
python.ray._private.accelerators.intel_gpu.IntelGPUAcceleratorManager.get_current_node_accelerator_type() -> Optional[str]Get the name of first Intel GPU.
class
python.ray._private.accelerators.metax_gpu.MetaxGPUAcceleratorManagerMetax GPU accelerators.
class
python.ray._private.accelerators.neuron.NeuronAcceleratorManagerAWS Inferentia and Trainium accelerators.
class
python.ray._private.accelerators.npu.NPUAcceleratorManagerAscend NPU accelerators.
class
python.ray._private.accelerators.nvidia_gpu.NvidiaGPUAcceleratorManagerNVIDIA GPU accelerators.
class
python.ray._private.accelerators.rbln.RBLNAcceleratorManagerRebellions RBLN accelerators.
class
python.ray._private.accelerators.tpu.TPUAcceleratorManagerGoogle TPU accelerators.
method
python.ray._private.accelerators.tpu.TPUAcceleratorManager.is_valid_tpu_accelerator_topology(tpu_accelerator_version:str, tpu_topology:str) -> boolCheck whether the tpu topology is valid.
func
python.ray._private.accelerators.tpu.get_num_chips_from_topology(topology:str) -> intCalculates the total number of chips in a TPU topology.
func
python.ray._private.accelerators.tpu.infer_tpu_pod_type_from_topology(topology:str, accelerator_type:str) -> Optional[str]Infer the TPU pod type (e.g.
class
python.ray._private.accelerators.ttnpu.TTNPUAcceleratorManagerTenstorrent NPU accelerators.
func
python.ray._private.async_compat.get_new_event_loop()Construct a new event loop.
func
python.ray._private.async_compat.has_async_methods(cls:object) -> boolReturn True if the class has any async methods.
func
python.ray._private.async_utils.enable_monitor_loop_lag(callback:Callable[[float], None], interval_s:float=0.25, loop:Optional[asyncio.AbstractEventLoop]=None) -> NoneStart logging event loop lags to the callback.
func
python.ray._private.authentication.authentication_utils.is_token_auth_enabled() -> boolCheck if token authentication is enabled.
func
python.ray._private.authentication_test_utils.set_auth_mode(mode:str) -> NoneSet the authentication mode environment variable.
func
python.ray._private.authentication_test_utils.set_env_auth_token(token:str) -> NoneConfigure the authentication token via environment variable.
func
python.ray._private.collections_utils.split(items:List[Any], chunk_size:int)Splits provided list into chunks of given size
func
python.ray._private.dict.flatten_dict(dt:Dict, delimiter:str='/', prevent_delimiter:bool=False, flatten_list:bool=False)Flatten dict.
func
python.ray._private.dict.merge_dicts(d1:dict, d2:dict) -> dictArgs: d1: Dict 1.
func
python.ray._private.dict.unflatten_dict(dt:Dict[str, T], delimiter:str='/') -> Dict[str, T]Unflatten dict.
func
python.ray._private.dict.unflatten_list_dict(dt:Dict[str, T], delimiter:str='/') -> Dict[str, T]Unflatten nested dict and list.
func
python.ray._private.event.event_logger.filter_event_by_level(event:Event, filter_event_level:str) -> boolFilter an event based on event level.
func
python.ray._private.event.event_logger.parse_event(event_str:str) -> Optional[Event]Parse an event from a string.
class
python.ray._private.external_storage.ExternalStorageThe base class for external storage.
method
python.ray._private.external_storage.ExternalStorage.restore_spilled_objects(object_refs:List[ObjectRef], url_with_offset_list:List[str]) -> intRestore objects from the external storage.
method
python.ray._private.external_storage.ExternalStorage.spill_objects(object_refs:List[ObjectRef], owner_addresses:List[str]) -> List[str]Spill objects to the external storage.
class
python.ray._private.external_storage.FileSystemStorageThe class for filesystem-like external storage.
class
python.ray._private.external_storage.SlowFileStorageThis class is for testing slow object spilling.
class
python.ray._private.external_storage.UnstableFileStorageThis class is for testing with writing failure.
func
python.ray._private.external_storage.create_url_with_offset(*url:str, *offset:int, *size:int) -> strMethods to create a URL with offset.
func
python.ray._private.external_storage.parse_url_with_offset(url_with_offset:str) -> Tuple[str, int, int]Parse url_with_offset to retrieve information.
func
python.ray._private.external_storage.spill_objects(object_refs:List[ObjectRef], owner_addresses:List[str]) -> List[str]Spill objects to the external storage.
func
python.ray._private.gcs_utils.create_gcs_channel(address:str, aio:bool=False)Returns a GRPC channel to GCS.
func
python.ray._private.inspect_util.is_function_or_method(obj:object) -> boolCheck if an object is a function or method.
class
python.ray._private.log.PlainRayHandlerA plain log handler.
method
python.ray._private.log.PlainRayHandler.emit(record:logging.LogRecord)Emit the log message.
func
python.ray._private.log.format_returncode(rc:Optional[int]) -> strReturn a consistent string for process return code.
class
python.ray._private.log_monitor.LogMonitorA monitor process for monitoring Ray log files.
method
python.ray._private.log_monitor.LogMonitor.get_is_autoscaler_v2(gcs_address:Optional[str]) -> boolCheck if autoscaler v2 is enabled.
method
python.ray._private.log_monitor.LogMonitor.run()Run the log monitor.
method
python.ray._private.log_monitor.LogMonitor.should_update_filenames(last_file_updated_time:float) -> boolReturn true if filenames should be updated.
class
python.ray._private.memory_monitor.MemoryMonitorHelper class for raising errors on low memory.
class
python.ray._private.metrics_agent.GaugeGauge representation of opencensus view.
class
python.ray._private.metrics_agent.PrometheusServiceDiscoveryWriterA class to support Prometheus service discovery.
class
python.ray._private.node.NodeAn encapsulation of the Ray processes on a single node.
method
python.ray._private.node.Node.address()Get the address for bootstrapping, e.g.
method
python.ray._private.node.Node.address_info()Get a dictionary of addresses.
method
python.ray._private.node.Node.dead_processes()Return a list of the dead processes.
method
python.ray._private.node.Node.gcs_address()Get the gcs address.
method
python.ray._private.node.Node.get_runtime_env_dir_path()Get the path of the runtime env.
method
python.ray._private.node.Node.get_session_dir_path()Get the path of the session directory.
method
python.ray._private.node.Node.kill_all_processes(check_alive:bool=True, allow_graceful:bool=False, wait:bool=False)Kill all of the processes.
method
python.ray._private.node.Node.kill_dashboard(check_alive:bool=True)Kill the dashboard.
method
python.ray._private.node.Node.kill_gcs_server(check_alive:bool=True)Kill the gcs server.
method
python.ray._private.node.Node.kill_log_monitor(check_alive:bool=True)Kill the log monitor.
method
python.ray._private.node.Node.kill_monitor(check_alive:bool=True)Kill the monitor.
method
python.ray._private.node.Node.kill_raylet(check_alive:bool=True)Kill the raylet.
method
python.ray._private.node.Node.kill_reaper(check_alive:bool=True)Kill the reaper process.
method
python.ray._private.node.Node.kill_redis(check_alive:bool=True)Kill the Redis servers.
method
python.ray._private.node.Node.live_processes()Return a list of the live processes.
method
python.ray._private.node.Node.metrics_agent_port()Get the metrics agent gRPC port
method
python.ray._private.node.Node.metrics_export_port()Get the port that exposes metrics
method
python.ray._private.node.Node.node_id()Get the node ID.
method
python.ray._private.node.Node.node_ip_address()Get the IP address of this node.
method
python.ray._private.node.Node.node_labels()Get the node labels.
method
python.ray._private.node.Node.node_manager_port()Get the node manager's port.
method
python.ray._private.node.Node.raylet_socket_name()Get the node's raylet socket name.
method
python.ray._private.node.Node.redis_address()Get the cluster Redis address.
method
python.ray._private.node.Node.redis_password()Get the cluster Redis password.
method
python.ray._private.node.Node.redis_username()Get the cluster Redis username.
method
python.ray._private.node.Node.session_name()Get the current Ray session name.
method
python.ray._private.node.Node.start_api_server(*include_dashboard:Optional[bool], *raise_on_failure:bool)Start the dashboard.
method
python.ray._private.node.Node.start_gcs_server()Start the gcs server.
method
python.ray._private.node.Node.start_head_processes()Start head processes on the node.
method
python.ray._private.node.Node.start_log_monitor()Start the log monitor.
method
python.ray._private.node.Node.start_monitor()Start the monitor.
method
python.ray._private.node.Node.start_raylet(plasma_directory:str, fallback_directory:str, object_store_memory:int, use_valgrind:bool=False, use_profiler:bool=False)Start the raylet.
method
python.ray._private.node.Node.start_reaper_process()Start the reaper process.
method
python.ray._private.node.Node.unique_id()Get a unique identifier for this node.
method
python.ray._private.node.Node.webui_url()Get the cluster's web UI url.
class
python.ray._private.parameter.RayParamsA class used to store the parameters used by Ray.
method
python.ray._private.parameter.RayParams.update(**kwargs)Update the settings according to the keyword arguments.
func
python.ray._private.path_utils.is_path(path_or_uri:str) -> boolReturns True if uri_or_path is a path and False otherwise.
func
python.ray._private.profiling.chrome_tracing_dump(tasks:List[dict]) -> strGenerate a chrome/perfetto tracing dump using task events.
class
python.ray._private.prometheus_exporter.CollectorCollector represents the Prometheus Collector object
method
python.ray._private.prometheus_exporter.Collector.options()Options to be used to configure the exporter
method
python.ray._private.prometheus_exporter.Collector.registered_views()Map with all registered views
class
python.ray._private.prometheus_exporter.OptionsOptions contains options for configuring the exporter.
method
python.ray._private.prometheus_exporter.Options.namespace()Prefix to be used with view name
method
python.ray._private.prometheus_exporter.Options.port()Port number to listen
class
python.ray._private.prometheus_exporter.PrometheusStatsExporterExporter exports stats to Prometheus.
func
python.ray._private.prometheus_exporter.get_view_name(namespace, view)create the name for the view
func
python.ray._private.ray_logging.setup_logger(logging_level:int, logging_format:str)Setup default logging for ray.
class
python.ray._private.runtime_env.agent.runtime_env_agent.ReferenceTableThe URI reference table which is used for GC.
class
python.ray._private.runtime_env.agent.runtime_env_agent.RuntimeEnvAgentAn RPC server to create and delete runtime envs.
func
python.ray._private.runtime_env.conda_utils.exec_cmd(cmd:List[str], throw_on_error:bool=True, logger:Optional[logging.Logger]=None) -> Union[int, Tuple[int, str, str]]Runs a command as a child process.
func
python.ray._private.runtime_env.conda_utils.get_conda_env_list() -> listGet conda env list in full paths.
func
python.ray._private.runtime_env.conda_utils.get_conda_info_json() -> dictGet `conda info --json` output.
class
python.ray._private.runtime_env.context.RuntimeEnvContextA context used to describe the created runtime env.
class
python.ray._private.runtime_env.image_uri.ContainerPluginStarts worker in container.
class
python.ray._private.runtime_env.image_uri.ImageURIPluginStarts worker in a container of a custom image.
func
python.ray._private.runtime_env.packaging.delete_package(pkg_uri:str, base_directory:str) -> Tuple[bool, int]Deletes a specific URI from the local filesystem.
func
python.ray._private.runtime_env.packaging.get_local_dir_from_uri(uri:str, base_directory:str) -> PathReturn the local directory corresponding to this URI.
func
python.ray._private.runtime_env.packaging.get_uri_for_file(file:str) -> strGet a content-addressable URI from a file's content.
func
python.ray._private.runtime_env.packaging.get_uri_for_package(package:Path) -> strGet a content-addressable URI from a package's contents.
func
python.ray._private.runtime_env.packaging.package_exists(pkg_uri:str) -> boolCheck whether the package with given URI exists or not.
func
python.ray._private.runtime_env.packaging.parse_path(pkg_path:str) -> NoneParse the path to check it is well-formed and exists.
func
python.ray._private.runtime_env.packaging.upload_package_to_gcs(pkg_uri:str, pkg_bytes:bytes) -> NoneUpload a local package to GCS.
class
python.ray._private.runtime_env.plugin.RuntimeEnvPluginAbstract base class for runtime environment plugins.
method
python.ray._private.runtime_env.plugin.RuntimeEnvPlugin.delete_uri(uri:str, logger:logging.Logger) -> floatDelete the runtime environment given uri.
method
python.ray._private.runtime_env.plugin.RuntimeEnvPlugin.validate(runtime_env_dict:dict) -> NoneValidate user entry for this plugin.
func
python.ray._private.runtime_env.setup_hook.load_and_execute_setup_hook(worker_process_setup_hook_key:str) -> Optional[str]Load the setup hook from a given key and execute.
class
python.ray._private.runtime_env.uri_cache.URICacheCaches URIs up to a specified total size limit.
method
python.ray._private.runtime_env.uri_cache.URICache.add(uri:str, size_bytes:int, logger:logging.Logger=default_logger)Add a URI to the cache and mark it as in use.
method
python.ray._private.runtime_env.uri_cache.URICache.mark_used(uri:str, logger:logging.Logger=default_logger)Mark a URI as in use.
func
python.ray._private.runtime_env.validation.parse_and_validate_conda(conda:Union[str, dict]) -> Union[str, dict]Parses and validates a user-provided 'conda' option.
func
python.ray._private.runtime_env.validation.parse_and_validate_excludes(excludes:List[str]) -> List[str]Parses and validates a user-provided 'excludes' option.
func
python.ray._private.runtime_env.validation.parse_and_validate_pip(pip:Union[str, List[str], Dict]) -> Optional[Dict]Parses and validates a user-provided 'pip' option.
func
python.ray._private.runtime_env.validation.parse_and_validate_py_modules(py_modules:List[str]) -> List[str]Parses and validates a 'py_modules' option.
func
python.ray._private.runtime_env.validation.parse_and_validate_uv(uv:Union[str, List[str], Dict]) -> Optional[Dict]Parses and validates a user-provided 'uv' option.
func
python.ray._private.runtime_env.validation.parse_and_validate_working_dir(working_dir:str) -> strParses and validates a 'working_dir' option.
func
python.ray._private.runtime_env.validation.validate_path(path:str) -> NoneParse the path to ensure it is well-formed and exists.
func
python.ray._private.runtime_env.validation.validate_py_modules_uris(py_modules_uris:List[str]) -> List[str]Parses and validates a 'py_modules' option.
func
python.ray._private.runtime_env.validation.validate_working_dir_uri(working_dir_uri:str) -> strParses and validates a 'working_dir' option.
func
python.ray._private.runtime_env.virtualenv_utils.get_virtualenv_activate_command(target_dir:str) -> List[str]Get the command to activate virtual environment.
func
python.ray._private.runtime_env.virtualenv_utils.get_virtualenv_path(target_dir:str) -> strGet virtual environment path.
class
python.ray._private.serialization.SerializationContextInitialize the serialization library.
method
python.ray._private.serialization.SerializationContext.serialize(value:Any) -> Union[RawSerializedObject, MessagePackSerializedObject]Serialize an object.
method
python.ray._private.serialization.SerializationContext.store_rdt_objects(obj_id:str, tensors:List[Any], tensor_transport:str) -> bytesStore RDT objects in the RDT store.
func
python.ray._private.services.canonicalize_bootstrap_address(addr:str, temp_dir:Optional[str]=None) -> Optional[str]Canonicalizes Ray cluster bootstrap address to host:port.
func
python.ray._private.services.canonicalize_bootstrap_address_or_die(addr:str, temp_dir:Optional[str]=None) -> strCanonicalizes Ray cluster bootstrap address to host:port.
func
python.ray._private.services.create_redis_client(redis_address:str, password:Optional[str]=None, username:Optional[str]=None)Create a Redis client.
func
python.ray._private.services.get_node_with_retry(gcs_address:str, node_id:str, timeout_s:float=30, retry_interval_s:float=1) -> dictGet node info from GCS with retry logic.
func
python.ray._private.services.start_reaper(fate_share:Optional[bool]=None)Start the reaper process.
class
python.ray._private.state.GlobalStateA class used to interface with the Ray control state.
method
python.ray._private.state.GlobalState.add_worker(worker_id:bytes, worker_type:int, worker_info:Dict[str, str])Add a worker to the cluster.
method
python.ray._private.state.GlobalState.disconnect()Disconnect global state from GCS.
method
python.ray._private.state.GlobalState.get_actor_info(actor_id:ray.ActorID) -> Optional[str]Get the actor info for a actor id.
method
python.ray._private.state.GlobalState.get_node(node_id:str)Get the node information for a node id.
method
python.ray._private.state.GlobalState.get_worker_debugger_port(worker_id:bytes)Get the debugger port of a worker.
method
python.ray._private.state.GlobalState.job_table()Fetch and parse the gcs job table.
method
python.ray._private.state.GlobalState.next_job_id()Get next job id from GCS.
method
python.ray._private.state.GlobalState.update_worker_debugger_port(worker_id:bytes, debugger_port:int)Update the debugger port of a worker.
func
python.ray._private.state.get_worker_debugger_port(worker_id:bytes)Get the debugger port of a worker.
func
python.ray._private.state.next_job_id()Get next job id from GCS.
func
python.ray._private.state.update_worker_debugger_port(worker_id:bytes, debugger_port:int)Update the debugger port of a worker.
func
python.ray._private.state.workers()Get a list of the workers in the cluster.
class
python.ray._private.telemetry.metric_types.MetricTypeTypes of metrics supported by the telemetry system.
class
python.ray._private.telemetry.open_telemetry_metric_recorder.OpenTelemetryMetricRecorderA class to record OpenTelemetry metrics.
func
python.ray._private.utils.check_oversized_function(pickled:bytes, name:str, obj_type:str, worker:'ray.Worker') -> NoneSend a warning message if the pickled function is too large.
func
python.ray._private.utils.ensure_str(s, encoding='utf-8', errors='strict')Coerce *s* to `str`.
func
python.ray._private.utils.get_num_cpus(override_docker_cpu_warning:bool=ENV_DISABLE_DOCKER_CPU_WARNING, truncate:bool=True) -> floatGet the number of CPUs available on this node.
func
python.ray._private.utils.remove_ray_internal_flags_from_env(env:dict)Remove Ray internal flags from `env`.
func
python.ray._private.utils.resolve_object_store_memory(available_memory_bytes:int, object_store_memory:Optional[int]=None) -> intResolve the object store memory size.
func
python.ray._private.utils.split_address(address:str) -> Tuple[str, str]Splits address into a module string (scheme) and an inner_address.
func
python.ray._private.utils.try_to_symlink(symlink_path:str, target_path:str)Attempt to create a symlink.
class
python.ray._private.worker.BaseContextBase class for RayContext and ClientContext
class
python.ray._private.worker.RayContextContext manager for attached drivers.
class
python.ray._private.worker.WorkerA class used to define the control flow of a worker process.
method
python.ray._private.worker.Worker.check_connected()Check if the worker is connected.
method
python.ray._private.worker.Worker.get_err_file_path() -> strGet the err log file path
method
python.ray._private.worker.Worker.get_out_file_path() -> strGet the out log file path
method
python.ray._private.worker.Worker.runtime_env()Get the runtime env in json format
method
python.ray._private.worker.Worker.set_file_rotation_enabled(rotation_enabled:bool) -> NoneSet whether rotation is enabled for outfile and errfile.
method
python.ray._private.worker.Worker.set_mode(mode:int)Set the mode of the worker.
func
python.ray._private.worker.cancel(ray_waitable:Union['ObjectRef[R]', 'ObjectRefGenerator[R]'], *force:bool=False, *recursive:bool=True) -> NoneCancels a task.
func
python.ray._private.worker.color_for(data:Dict[str, str], line:str) -> strThe color for this log line.
func
python.ray._private.worker.get_actor(name:str, namespace:Optional[str]=None) -> 'ray.actor.ActorHandle'Get a handle to a named actor.
func
python.ray._private.worker.is_initialized() -> boolCheck if ray.init has been called yet.
func
python.ray._private.worker.kill(actor:'ray.actor.ActorHandle', *no_restart:bool=True)Kill an actor forcefully.
func
python.ray._private.worker.message_for(data:Dict[str, str], line:str) -> strThe printed message of this log line.
func
python.ray._private.worker.prefix_for(data:Dict[str, str]) -> strThe PID prefix for this log line.
func
python.ray._private.worker.put(value:R, *_owner:Optional['ray.actor.ActorHandle']=None, *_tensor_transport:Optional[str]=None) -> 'ray.ObjectRef[R]'Store an object in the object store.
func
python.ray._private.worker.restore_tqdm()Undo hide_tqdm().
func
python.ray._private.worker.time_string() -> strReturn the relative time from the start of this job.
class
python.ray.actor.ActorClassAn actor class.
method
python.ray.actor.ActorClass.options(**actor_options:Any) -> 'ActorClass[T]'Configures and overrides the actor instantiation parameters.
method
python.ray.actor.ActorClass.remote(*args:Any, **kwargs:Any) -> ActorProxy[T]Create an actor.
class
python.ray.actor.ActorHandleA handle to an actor.
class
python.ray.actor.ActorMethodA class used to invoke an actor method.
func
python.ray.actor.exit_actor()Intentionally exit the current actor.
class
python.ray.air._internal.device_manager.cpu.CPUTorchDeviceManagerCPU device manager
class
python.ray.air._internal.device_manager.hpu.HPUTorchDeviceManagerHPU device manager
class
python.ray.air._internal.device_manager.npu.NPUTorchDeviceManagerAscend NPU device manager
class
python.ray.air._internal.device_manager.nvidia_gpu.CUDATorchDeviceManagerCUDA device manager
method
python.ray.air._internal.device_manager.nvidia_gpu.CUDATorchDeviceManager.create_stream(device:torch.device) -> torch.cuda.StreamCreate a stream on cuda device
method
python.ray.air._internal.device_manager.nvidia_gpu.CUDATorchDeviceManager.get_current_stream() -> torch.cuda.StreamGet current stream for cuda device
class
python.ray.air._internal.device_manager.tpu.TPUTorchDeviceManagerTPU device manager using torch_tpu backend
class
python.ray.air._internal.filelock.TempFileLockFileLock wrapper that uses temporary file locks.
func
python.ray.air._internal.torch_utils.contains_tensor(obj:Any) -> boolCheck if the obj contains a torch tensor.
func
python.ray.air._internal.usage.tag_air_entrypoint(entrypoint:AirEntrypoint) -> NoneRecords the entrypoint to an AIR training run.
class
python.ray.air._internal.util.RunnerThreadSupervisor thread that runs your script.
func
python.ray.air._internal.util.skip_exceptions(exc:Optional[Exception]) -> ExceptionSkip all contained `StartTracebacks` to reduce traceback output.
class
python.ray.air.config.RunConfigRuntime configuration for training and tuning runs.
class
python.ray.air.config.ScalingConfigConfiguration for scaling training.
class
python.ray.air.execution._internal.actor_manager.RayActorManagerManagement class for Ray actors and actor tasks.
method
python.ray.air.execution._internal.actor_manager.RayActorManager.is_actor_started(tracked_actor:TrackedActor) -> boolReturns True if the actor has been started.
method
python.ray.air.execution._internal.actor_manager.RayActorManager.remove_actor(tracked_actor:TrackedActor, kill:bool=False, stop_future:Optional[ray.ObjectRef]=None) -> boolRemove a tracked actor.
class
python.ray.air.execution._internal.barrier.BarrierBarrier to collect results and process them in bulk.
method
python.ray.air.execution._internal.barrier.Barrier.completed() -> boolReturns True if the barrier is completed.
method
python.ray.air.execution._internal.barrier.Barrier.get_results() -> List[Tuple[Any]]Return list of received results.
method
python.ray.air.execution._internal.barrier.Barrier.num_results() -> intNumber of received (successful) results.
method
python.ray.air.execution._internal.barrier.Barrier.reset() -> NoneReset barrier, removing all received results.
class
python.ray.air.execution._internal.event_manager.RayEventManagerEvent manager for Ray futures.
method
python.ray.air.execution._internal.event_manager.RayEventManager.discard_future(future:ray.ObjectRef)Remove future from tracking.
method
python.ray.air.execution._internal.event_manager.RayEventManager.get_futures() -> Set[ray.ObjectRef]Get futures tracked by the event manager.
method
python.ray.air.execution._internal.event_manager.RayEventManager.resolve_future(future:ray.ObjectRef)Resolve a single future.
class
python.ray.air.execution._internal.tracked_actor.TrackedActorActor tracked by an actor manager.
class
python.ray.air.execution._internal.tracked_actor_task.TrackedActorTaskActor task tracked by a Ray event manager.
class
python.ray.air.execution.resources.fixed.FixedResourceManagerFixed budget based resource manager.
class
python.ray.air.execution.resources.request.AcquiredResourcesBase class for resources that have been acquired.
class
python.ray.air.execution.resources.request.ResourceRequestRequest for resources.
method
python.ray.air.execution.resources.request.ResourceRequest.bundles() -> List[Dict[str, float]]Returns a deep copy of resource bundles
method
python.ray.air.execution.resources.request.ResourceRequest.head_cpus() -> floatReturns the number of cpus in the head bundle.
method
python.ray.air.execution.resources.request.ResourceRequest.strategy() -> strReturns the placement strategy
class
python.ray.air.execution.resources.resource_manager.ResourceManagerResource manager interface.
method
python.ray.air.execution.resources.resource_manager.ResourceManager.acquire_resources(resource_request:ResourceRequest) -> Optional[AcquiredResources]Acquire resources.
method
python.ray.air.execution.resources.resource_manager.ResourceManager.cancel_resource_request(resource_request:ResourceRequest)Cancel resource request.
method
python.ray.air.execution.resources.resource_manager.ResourceManager.request_resources(resource_request:ResourceRequest)Request resources.
class
python.ray.air.integrations.comet.CometLoggerCallbackCometLoggerCallback for logging Tune results to Comet.
func
python.ray.air.integrations.wandb.setup_wandb(config:Optional[Dict]=None, api_key:Optional[str]=None, api_key_file:Optional[str]=None, rank_zero_only:bool=True, **kwargs) -> Union[Run, RunDisabled]Set up a Weights & Biases session.
class
python.ray.air.result.ResultThe final result of a ML training run or a Tune trial.
method
python.ray.air.result.Result.config() -> Optional[Dict[str, Any]]The config associated with the result.
class
python.ray.air.util.data_batch_conversion.BlockFormatInternal Dataset block format enum.
class
python.ray.autoscaler._private.aliyun.utils.AcsClientA wrapper around Aliyun SDK.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.allocate_public_address(instance_id:str) -> Optional[str]Assign a public IP address to an ECS instance.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.authorize_security_group(ip_protocol:str, port_range:str, security_group_id:str, source_cidr_ip:str) -> NoneCreate an inbound security group rule.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.create_key_pair(key_pair_name:str) -> Optional[dict]Create an SSH key pair.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.create_security_group(vpc_id:str) -> Optional[str]Create a security group.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.create_vpc() -> Optional[str]Create a virtual private cloud (VPC).
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.delete_key_pairs(key_pair_names:List[str]) -> NoneDelete one or more SSH key pairs.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.describe_key_pairs(key_pair_name:Optional[str]=None) -> Optional[list]Query one or more key pairs.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.describe_v_switches(vpc_id:Optional[str]=None) -> Optional[list]Query one or more VSwitches.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.describe_vpcs() -> Optional[list]Query one or more VPCs in a region.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.import_key_pair(key_pair_name:str, public_key_body:str) -> NoneImport the public key of an RSA-encrypted key pair.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.start_instance(instance_id:str) -> NoneStart an ECS instance.
method
python.ray.autoscaler._private.aliyun.utils.AcsClient.stop_instance(instance_id:str, force_stop:bool=False) -> NoneStop an ECS instance that is in the Running state.
class
python.ray.autoscaler._private.autoscaler.StandardAutoscalerThe autoscaling control loop for a Ray cluster.
class
python.ray.autoscaler._private.cli_logger.SilentClickException`ClickException` that does not print a message.
class
python.ray.autoscaler._private.cluster_dump.NodeNode (as in "machine")
func
python.ray.autoscaler._private.cluster_dump.get_all_local_data(archive:Archive, parameters:GetParameters)Get all local data.
func
python.ray.autoscaler._private.cluster_dump.get_local_debug_state(archive:Archive, session_dir:str='/tmp/ray/session_latest') -> ArchiveCopy local log files into an archive.
func
python.ray.autoscaler._private.cluster_dump.get_local_ray_logs(archive:Archive, exclude:Optional[Sequence[str]]=None, session_log_dir:str='/tmp/ray/session_latest') -> ArchiveCopy local log files into an archive.
func
python.ray.autoscaler._private.commands.debug_status(status:bytes, error:bytes, verbose:bool=False, address:Optional[str]=None) -> strReturn a debug string for the autoscaler.
func
python.ray.autoscaler._private.commands.kill_node(config_file:str, yes:bool, hard:bool, override_cluster_name:Optional[str]) -> Optional[str]Kills a random Raylet worker.
func
python.ray.autoscaler._private.commands.monitor_cluster(cluster_config_file:str, num_lines:int, override_cluster_name:Optional[str]) -> NoneTails the autoscaler logs of a Ray cluster.
func
python.ray.autoscaler._private.docker.validate_docker_config(config:Dict[str, Any]) -> NoneChecks whether the Docker configuration is valid.
func
python.ray.autoscaler._private.gcp.config.get_node_type(node:dict) -> GCPNodeTypeReturns node type based on the keys in ``node``.
class
python.ray.autoscaler._private.gcp.node.GCPComputeAbstraction around GCP compute resource
class
python.ray.autoscaler._private.gcp.node.GCPComputeNodeAbstraction around compute nodes
class
python.ray.autoscaler._private.gcp.node.GCPNodeAbstraction around compute and tpu nodes
class
python.ray.autoscaler._private.gcp.node.GCPNodeTypeEnum for GCP node types (compute & tpu)
method
python.ray.autoscaler._private.gcp.node.GCPNodeType.name_to_type(name:str)Provided a node name, determine the type.
class
python.ray.autoscaler._private.gcp.node.GCPResourceAbstraction around compute and TPU resources
method
python.ray.autoscaler._private.gcp.node.GCPResource.create_instance(base_config:dict, labels:dict, wait_for_operation:bool=True) -> Tuple[dict, str]Creates a single instance and returns result.
method
python.ray.autoscaler._private.gcp.node.GCPResource.delete_instance(node_id:str, wait_for_operation:bool=True) -> dictDeletes an instance and returns result.
method
python.ray.autoscaler._private.gcp.node.GCPResource.get_instance(node_id:str) -> 'GCPNode'Returns a single instance.
method
python.ray.autoscaler._private.gcp.node.GCPResource.list_instances(label_filters:Optional[dict]=None, is_terminated:bool=False) -> List['GCPNode']Returns a filtered list of all instances.
method
python.ray.autoscaler._private.gcp.node.GCPResource.set_labels(node:GCPNode, labels:dict, wait_for_operation:bool=True) -> dictSets labels on an instance and returns result.
method
python.ray.autoscaler._private.gcp.node.GCPResource.start_instance(node_id:str, wait_for_operation:bool=True) -> dictStarts a single instance and returns result.
method
python.ray.autoscaler._private.gcp.node.GCPResource.stop_instance(node_id:str, wait_for_operation:bool=True) -> dictDeletes an instance and returns result.
class
python.ray.autoscaler._private.gcp.node.GCPTPUAbstraction around GCP TPU resource
method
python.ray.autoscaler._private.gcp.node.GCPTPU.wait_for_operation(operation:dict, max_polls:int=MAX_POLLS_TPU, poll_interval:int=POLL_INTERVAL) -> dictPoll for TPU operation until finished.
class
python.ray.autoscaler._private.gcp.node.GCPTPUNodeAbstraction around tpu nodes
class
python.ray.autoscaler._private.gcp.tpu_command_runner.TPUCommandRunnerA TPU pod command runner.
method
python.ray.autoscaler._private.gcp.tpu_command_runner.TPUCommandRunner.run_init(*args:Any, **kwargs:Any) -> Optional[bool]Used to run extra initialization commands.
method
python.ray.autoscaler._private.gcp.tpu_command_runner.TPUCommandRunner.run_rsync_down(*args:Any, **kwargs:Any) -> NoneRsync files down from the cluster node.
class
python.ray.autoscaler._private.kuberay.node_provider.IKubernetesHttpApiClientAn interface for a Kubernetes HTTP API client.
method
python.ray.autoscaler._private.kuberay.node_provider.IKubernetesHttpApiClient.get(path:str) -> Dict[str, Any]Wrapper for REST GET of resource with proper headers.
func
python.ray.autoscaler._private.kuberay.node_provider.status_tag(pod:Dict[str, Any]) -> NodeStatusConvert pod state to Ray autoscaler node status.
class
python.ray.autoscaler._private.load_metrics.LoadMetricsContainer for cluster load metrics.
func
python.ray.autoscaler._private.load_metrics.add_resources(dict1:Dict[str, float], dict2:Dict[str, float]) -> Dict[str, float]Add the values in two dictionaries.
class
python.ray.autoscaler._private.local.node_provider.LocalNodeProviderNodeProvider for private/local clusters.
class
python.ray.autoscaler._private.monitor.MonitorAutoscaling monitor.
method
python.ray.autoscaler._private.monitor.Monitor.get_session_name(gcs_client:GcsClient) -> Optional[str]Obtain the session name from the GCS.
class
python.ray.autoscaler._private.node_launcher.NodeLauncherLaunches nodes asynchronously in the background.
class
python.ray.autoscaler._private.node_tracker.NodeTrackerMap nodes to their corresponding logs.
method
python.ray.autoscaler._private.node_tracker.NodeTracker.get_all_failed_node_info(non_failed_ids:Set[str]) -> List[Tuple[str, str]]Get the information about all failed nodes.
method
python.ray.autoscaler._private.node_tracker.NodeTracker.track(node_id:str, ip:str, node_type:str)Begin to track a new node.
method
python.ray.autoscaler._private.node_tracker.NodeTracker.untrack(node_id:str)Gracefully stop tracking a node.
class
python.ray.autoscaler._private.spark.spark_job_server.SparkJobServerHigh level design: 1.
func
python.ray.autoscaler._private.util.base32hex(data:bytes) -> strEncode bytes using base32hex, without padding and in lower case.
func
python.ray.autoscaler._private.util.format_memory(mem_bytes:Number) -> strFormats memory in bytes in friendly unit.
class
python.ray.autoscaler.batching_node_provider.ScaleRequestStores desired scale computed by the autoscaler.
class
python.ray.autoscaler.command_runner.CommandRunnerInterfaceInterface to run commands on a remote cluster node.
method
python.ray.autoscaler.command_runner.CommandRunnerInterface.run_init(*as_head:bool, *file_mounts:Dict[str, str], *sync_run_yet:bool) -> Optional[bool]Used to run extra initialization commands.
method
python.ray.autoscaler.command_runner.CommandRunnerInterface.run_rsync_down(source:str, target:str, options:Optional[Dict[str, Any]]=None) -> NoneRsync files down from the cluster node.
method
python.ray.autoscaler.command_runner.CommandRunnerInterface.run_rsync_up(source:str, target:str, options:Optional[Dict[str, Any]]=None) -> NoneRsync files up to the cluster node.
class
python.ray.autoscaler.local.coordinator_server.HandlerA custom handler for OnPremCoordinatorServer.
method
python.ray.autoscaler.local.coordinator_server.Handler.do_HEAD()HTTP HEAD handler method.
class
python.ray.autoscaler.node_provider.NodeProviderInterface for getting and returning nodes from a Cloud.
method
python.ray.autoscaler.node_provider.NodeProvider.external_ip(node_id:str) -> strReturns the external ip of the given node.
method
python.ray.autoscaler.node_provider.NodeProvider.get_node_id(ip_address:str, use_internal_ip:bool=False) -> strReturns the node_id given an IP address.
method
python.ray.autoscaler.node_provider.NodeProvider.internal_ip(node_id:str) -> strReturns the internal ip (Ray ip) of the given node.
method
python.ray.autoscaler.node_provider.NodeProvider.is_readonly() -> boolReturns whether this provider is readonly.
method
python.ray.autoscaler.node_provider.NodeProvider.is_running(node_id:str) -> boolReturn whether the specified node is running.
method
python.ray.autoscaler.node_provider.NodeProvider.is_terminated(node_id:str) -> boolReturn whether the specified node is terminated.
method
python.ray.autoscaler.node_provider.NodeProvider.node_tags(node_id:str) -> Dict[str, str]Returns the tags of the given node (string dict).
method
python.ray.autoscaler.node_provider.NodeProvider.terminate_node(node_id:str) -> Optional[Dict[str, Any]]Terminates the specified node.
method
python.ray.autoscaler.node_provider.NodeProvider.terminate_nodes(node_ids:List[str]) -> Optional[Dict[str, Any]]Terminates a set of nodes.
func
python.ray.autoscaler.sdk.sdk.get_docker_host_mount_location(cluster_name:str) -> strReturn host path that Docker mounts attach to.
func
python.ray.autoscaler.sdk.sdk.get_head_node_ip(cluster_config:Union[dict, str]) -> strReturns head node IP for given configuration file if exists.
func
python.ray.autoscaler.sdk.sdk.get_worker_node_ips(cluster_config:Union[dict, str]) -> List[str]Returns worker node IPs for given configuration file.
class
python.ray.autoscaler.v2.event_logger.AutoscalerEventLoggerLogs events related to the autoscaler.
About this data
These signatures were extracted from the public source of ray-project/ray
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.