From 32035eb125d47f00ae0d955e52978dd9780b2c5e Mon Sep 17 00:00:00 2001 From: mwtian <81660174+mwtian@users.noreply.github.com> Date: Tue, 15 Feb 2022 14:48:19 -0800 Subject: [PATCH] [Pubsub] increase subscriber timeout (#22394) As mentioned in https://github.com/ray-project/ray/issues/22161#issuecomment-1039661368, increase subscriber timeout to avoid subscriber state being deleted too soon. --- src/ray/common/ray_config_def.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ray/common/ray_config_def.h b/src/ray/common/ray_config_def.h index 59a3d319d7545..8fae5ab805429 100644 --- a/src/ray/common/ray_config_def.h +++ b/src/ray/common/ray_config_def.h @@ -454,9 +454,10 @@ RAY_CONFIG(int64_t, max_command_batch_size, 2000) /// The maximum batch size for OBOD report. RAY_CONFIG(int64_t, max_object_report_batch_size, 2000) -/// The time where the subscriber connection is timed out in milliseconds. -/// This is for the pubsub module. -RAY_CONFIG(uint64_t, subscriber_timeout_ms, 30000) +/// For Ray publishers, the minimum time to drop an inactive subscriber connection in ms. +/// In the current implementation, a subscriber might be dead for up to 3x the configured +/// time before it is deleted from the publisher, i.e. deleted in 300s ~ 900s. +RAY_CONFIG(uint64_t, subscriber_timeout_ms, 300 * 1000) // This is the minimum time an actor will remain in the actor table before // being garbage collected when a job finishes