Skip to content

Commit

Permalink
Raise the (runtime_env max size) gRPC max message size to 500MiB
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Liang <[email protected]>
Signed-off-by: Stefan van der Kleij <[email protected]>
  • Loading branch information
ericl authored and Stefan van der Kleij committed Aug 18, 2022
1 parent 9b49b02 commit 02beea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/ray/_private/runtime_env/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# The size is bounded by the max gRPC message size.
# Keep in sync with max_grpc_message_size in ray_config_def.h.
GCS_STORAGE_MAX_SIZE = int(
os.environ.get("RAY_max_grpc_message_size", 250 * 1024 * 1024)
os.environ.get("RAY_max_grpc_message_size", 500 * 1024 * 1024)
)
RAY_PKG_PREFIX = "_ray_pkg_"

Expand Down
2 changes: 1 addition & 1 deletion src/ray/common/ray_config_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ RAY_CONFIG(int64_t, max_direct_call_object_size, 100 * 1024)
// The max gRPC message size (the gRPC internal default is 4MB). We use a higher
// limit in Ray to avoid crashing with many small inlined task arguments.
// Keep in sync with GCS_STORAGE_MAX_SIZE in packaging.py.
RAY_CONFIG(int64_t, max_grpc_message_size, 250 * 1024 * 1024)
RAY_CONFIG(int64_t, max_grpc_message_size, 500 * 1024 * 1024)

// Retry timeout for trying to create a gRPC server. Only applies if the number
// of retries is non zero.
Expand Down

0 comments on commit 02beea1

Please sign in to comment.