Skip to content

Commit

Permalink
[Core] Improve doc for --object-store-memory to describe how the defa…
Browse files Browse the repository at this point in the history
…ult value is set (ray-project#45301)

Currently it's unclear how the default value is set

Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Richard Liu <[email protected]>
  • Loading branch information
jjyao authored and richardsliu committed Jun 12, 2024
1 parent 2cff779 commit f91fb0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions python/ray/_private/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,8 +1302,12 @@ def init(
quantities for them available.
labels: [Experimental] The key-value labels of the node.
object_store_memory: The amount of memory (in bytes) to start the
object store with. By default, this is automatically set based on
available system memory.
object store with.
By default, this is 30%
(ray_constants.DEFAULT_OBJECT_STORE_MEMORY_PROPORTION)
of available system memory capped by
the shm size and 200G (ray_constants.DEFAULT_OBJECT_STORE_MAX_MEMORY_BYTES)
but can be set higher.
local_mode: Deprecated: consider using the Ray Debugger instead.
ignore_reinit_error: If true, Ray suppresses errors from calling
ray.init() a second time. Ray won't be restarted.
Expand Down
5 changes: 4 additions & 1 deletion python/ray/scripts/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ def debug(address):
required=False,
type=int,
help="The amount of memory (in bytes) to start the object store with. "
"By default, this is capped at 20GB but can be set higher.",
"By default, this is 30% (ray_constants.DEFAULT_OBJECT_STORE_MEMORY_PROPORTION) "
"of available system memory capped by "
"the shm size and 200G (ray_constants.DEFAULT_OBJECT_STORE_MAX_MEMORY_BYTES) "
"but can be set higher.",
)
@click.option(
"--redis-max-memory",
Expand Down

0 comments on commit f91fb0e

Please sign in to comment.