当前位置:网站首页>未知内容监控
未知内容监控
2022-08-02 09:38:00 【荒-于嬉】
实现最简单的主机存活监控.
每个节点启动一个monitor服务,同时给他一个其他主机的monitor服务的列表(IP+端口号).
monitor启动以后,每隔一段时间访问一次其他所有节点的monitor服务,每个节点的monitor服务都如此
接下来monitor对每个节点的相应时间进行排序,同时检查那个是没有相应的,或者相应过慢.
接下来每个节点之间互相同步信息,检查是否有些节点也没有相应别人,如果大部分节点发现某个节点无法响应,那么则认为此节点异常.一起对外发送报警.
在这个monitor集群中,每个机器部署一份服务,不使用主节点也不考虑选主问题,只要集群中指定的服务数量访问某个节点返回异常,那么则认为对方存在问题
边栏推荐
猜你喜欢

Bigder:41/100生产bug有哪些分类

The god-level Alibaba "high concurrency" tutorial "basic + actual combat + source code + interview + architecture"

单词接龙 II

第十七章 Excel操作

Use the scrapy to climb to save data to mysql to prevent repetition

Tencent T8 architect, teach you to learn small and medium R&D team architecture practice PDF, senior architect shortcut

The perceptron perceptron of Li Hang's "Statistical Learning Methods" notes

李航《统计学习方法》笔记之监督学习Supervised learning

MySQL安装与卸载详细教程

谈谈对Volatile的理解
随机推荐
Re23:读论文 How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence
php组件漏洞
EdrawMax Crack,多合一的图表应用程序
system_error错误处理库学习
动态规划每日一练(2)
天地图给多边形加标注
Pytorch's LSTM parameters explained
Rust 从入门到精通03-helloworld
Application scenarios of js anti-shake function and function throttling
初学者怎么快速学会SQL
牛客网项目2.7开发注册功能 报错This application has no explicit mapping for /error......
【New Edition】DeepFakes: Creation, Detection and Influence
【技术分享】OSPFv3基本原理
Talk about the understanding of Volatile
【SeaTunnel】从一个数据集成组件演化成企业级的服务
练习16-两道模拟题
图形化矩阵,矩阵到底长什么样?
Chapter 15 Generics
【新版干货书】深度伪造 (DeepFakes):创造,检测和影响
The use of thread pool and analysis of ThreadPoolExecutor source code