mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
[core] Disable GCS reconnect (#10579)
* Set default GCS retries to 1 * Fix cc test
This commit is contained in:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user