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

软件测试之发现和解决bug

Redis数据结构

Implementation of mysql connection pool

The use of thread pool and analysis of ThreadPoolExecutor source code

从零开始入门单片机(一):必会背景知识总结

智能网络安全网卡|这是不是你要的安全感

HCIA动态主机配置协议实验(dhcp)

QT专题:组合会话框和文本编辑器

【云原生】快出数量级的性能是怎样炼成的?就提升了亿点点

It's time for bank data people who are driven crazy by reporting requirements to give up using Excel for reporting
随机推荐
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
单机部署flink,创建oracle19c rac的连接表时报错 ORA-12505 ,怎么回事?
The 17th day of the special assault version of the sword offer
Pytorch's LSTM parameters explained
动态规划每日一练(2)
百战RHCE(第四十六战:运维工程师必会技-Ansible学习1-基础知识讲解)
用正向迭代器封装实现反向迭代器
leetcode 62. Unique Paths(独特的路径)
AutoJs学习-实现谢尔宾斯基三角
HikariCP database connection pool, too fast!
Pytorch的LSTM参数解释
The k-nearest neighbor method in the notes of Li Hang's "Statistical Learning Methods"
被报表需求逼疯的银行数据人,是时候放弃用Excel做报表了
记某社区问答
[Concurrent programming] - Thread pool uses DiscardOldestPolicy strategy, DiscardPolicy strategy
Have you ever learned about these architecture designs and architecture knowledge systems?(Architecture book recommendation)
【Redis】通用命令
QT专题:组合会话框和文本编辑器
Overview of Edge Computing Open Source Projects
QT专题:自定义部件