[core] Disable GCS reconnect (#10579)

* Set default GCS retries to 1

* Fix cc test
This commit is contained in:
Stephanie Wang
2020-09-05 13:14:07 -07:00
committed by GitHub
parent 54215ff287
commit 4f02ad4ef9
4 changed files with 34 additions and 10 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ RAY_CONFIG(uint32_t, cancellation_retry_ms, 2000)
RAY_CONFIG(int64_t, ping_gcs_rpc_server_interval_milliseconds, 1000)
/// Maximum number of times to retry ping gcs rpc server when gcs server restarts.
RAY_CONFIG(int32_t, ping_gcs_rpc_server_max_retries, 600)
RAY_CONFIG(int32_t, ping_gcs_rpc_server_max_retries, 1)
/// Whether start the Plasma Store as a Raylet thread.
RAY_CONFIG(bool, plasma_store_as_thread, false)
@@ -25,7 +25,11 @@ namespace ray {
class ServiceBasedGcsClientTest : public ::testing::Test {
public:
ServiceBasedGcsClientTest() { TestSetupUtil::StartUpRedisServers(std::vector<int>()); }
ServiceBasedGcsClientTest() {
RayConfig::instance().initialize(
{{"ping_gcs_rpc_server_max_retries", std::to_string(60)}});
TestSetupUtil::StartUpRedisServers(std::vector<int>());
}
virtual ~ServiceBasedGcsClientTest() { TestSetupUtil::ShutDownRedisServers(); }