Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename outlier detect to health check #8

Merged
merged 1 commit into from
Oct 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion polaris.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ consumer:
setCircuitBreaker:
enable: false
#描述:故障探测相关配置
outlierDetection:
healthCheck:
#描述:是否启用故障探测功能
#类型:bool
#默认值:true
Expand Down
2 changes: 1 addition & 1 deletion polaris/engine/health_check_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class HealthCheckExecutor : public Executor {
virtual ~HealthCheckExecutor() {}

// 获取线程名字
virtual const char* GetName() { return "outlier_detect"; }
virtual const char* GetName() { return "health_check"; }

virtual void SetupWork();

Expand Down
2 changes: 1 addition & 1 deletion polaris/plugin/health_checker/health_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ReturnCode HealthCheckerChainImpl::Init(Config* config, Context* context) {
plugin_config = NULL;
} else {
POLARIS_LOG(LOG_ERROR,
"Outlier detector plugin with name[%s] not found, skip it for service[%s/%s]",
"health checker plugin with name[%s] not found, skip it for service[%s/%s]",
plugin_name.c_str(), service_key_.namespace_.c_str(), service_key_.name_.c_str());
}
}
Expand Down
6 changes: 3 additions & 3 deletions polaris/plugin/health_checker/health_checker.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// language governing permissions and limitations under the License.
//

#ifndef POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_OUTLIER_DETECTOR_H_
#define POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_OUTLIER_DETECTOR_H_
#ifndef POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_HEALTH_CHECKER_H_
#define POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_HEALTH_CHECKER_H_

#include <stdint.h>

Expand Down Expand Up @@ -81,4 +81,4 @@ class HealthCheckerChainImpl : public HealthCheckerChain {

} // namespace polaris

#endif // POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_OUTLIER_DETECTOR_H_
#endif // POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_HEALTH_CHECKER_H_
6 changes: 3 additions & 3 deletions polaris/plugin/health_checker/http_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// language governing permissions and limitations under the License.
//

#ifndef POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_HTTP_DETECTOR_H_
#define POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_HTTP_DETECTOR_H_
#ifndef POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_HTTP_DETECTOR_H_
#define POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_HTTP_DETECTOR_H_

#include <stdint.h>

Expand Down Expand Up @@ -44,4 +44,4 @@ class HttpHealthChecker : public HealthChecker {

} // namespace polaris

#endif // POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_HTTP_DETECTOR_H_
#endif // POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_HTTP_DETECTOR_H_
6 changes: 3 additions & 3 deletions polaris/plugin/health_checker/tcp_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// language governing permissions and limitations under the License.
//

#ifndef POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_TCP_DETECTOR_H_
#define POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_TCP_DETECTOR_H_
#ifndef POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_TCP_DETECTOR_H_
#define POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_TCP_DETECTOR_H_

#include <stdint.h>

Expand Down Expand Up @@ -45,4 +45,4 @@ class TcpHealthChecker : public HealthChecker {

} // namespace polaris

#endif // POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_TCP_DETECTOR_H_
#endif // POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_TCP_DETECTOR_H_
6 changes: 3 additions & 3 deletions polaris/plugin/health_checker/udp_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// language governing permissions and limitations under the License.
//

#ifndef POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_UDP_DETECTOR_H_
#define POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_UDP_DETECTOR_H_
#ifndef POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_UDP_DETECTOR_H_
#define POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_UDP_DETECTOR_H_

#include <stdint.h>

Expand Down Expand Up @@ -45,4 +45,4 @@ class UdpHealthChecker : public HealthChecker {

} // namespace polaris

#endif // POLARIS_CPP_POLARIS_PLUGIN_OUTLIER_DETECTOR_UDP_DETECTOR_H_
#endif // POLARIS_CPP_POLARIS_PLUGIN_HEALTH_CHECKER_UDP_DETECTOR_H_