From ee755029539e42e0994f4be41f3369881aa6a685 Mon Sep 17 00:00:00 2001 From: zhangyinxia Date: Mon, 22 Feb 2021 15:26:48 +0800 Subject: [PATCH] fix hb --- mindspore_serving/ccsrc/common/heart_beat.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mindspore_serving/ccsrc/common/heart_beat.h b/mindspore_serving/ccsrc/common/heart_beat.h index cf95b16..f142973 100644 --- a/mindspore_serving/ccsrc/common/heart_beat.h +++ b/mindspore_serving/ccsrc/common/heart_beat.h @@ -147,7 +147,7 @@ class MS_API Watcher { std::unique_lock lock{m_lock_}; if (watchee_map_[address].timeouts_ >= max_ping_times_) { // add exit handle - MSI_LOG(INFO) << "Recv Pong Time Out from " << address; + MSI_LOG(ERROR) << "Recv Pong Time Out from " << address << ", host address is " << host_address_; watchee_map_[address].timer_->StopTimer(); // need erase map return; @@ -156,7 +156,7 @@ class MS_API Watcher { } void RecvPingTimeOut(const std::string &address) { - MSI_LOG(INFO) << "Recv Ping Time Out from " << address; + MSI_LOG(ERROR) << "Recv Ping Time Out from " << address << ", host address is " << host_address_; // add exit handle watcher_map_[address].timer_->StopTimer(); // need erase map @@ -197,8 +197,8 @@ class MS_API Watcher { std::shared_ptr stub_ = nullptr; }; std::string host_address_; - uint64_t max_ping_times_ = 10; - uint64_t max_time_out_ = 10000; // 10s + uint64_t max_ping_times_ = 20; + uint64_t max_time_out_ = 20000; // 20s std::unordered_map watchee_map_; std::unordered_map watcher_map_; std::mutex m_lock_;