Build a heap
#pragma once #include #include using namespace std;// Small pile templatestruct Less{ bool operator() (const T& l, const T& r) {return l struct Greater{ bool operator() (const T
Build a heap
#pragma once #include #include using namespace std;// Small pile templatestruct Less{ bool operator() (const T& l, const T& r) {return l struct Greater{ bool operator() (const T
One Heartbeat basic theory
Provide redundant system:
HA Cluster: In order to improve the system callability, combine multiple hosts to build a cluster;
Split brain, partitioned cluste
Regarding the heartbeat v2 version description, using the hb_gui window management tool, there will be a separate process mgmtd to test crm, which is responsible for crm work and monitors the tcp p
The definition of Heartbeat
The Heartbeat project is an integral part of the Linux-HA project, and it is also the most successful example of the current open source HA project. The full name of Li
Heartbeat3.xThe whole application strategy:TestHeartbeat的HAFunction
HeartbeatAfter the installation is complete, it will automatically enter /etc/init.d< The startup script file heartbeat is
Configuration premise:
1. Time must be synchronized, It is recommended to use ntp protocol
2.Required between nodes To communicate with each other through the host name;The name used in
PostgreSQL HA Collect: 1.pgpool 2.Pacemaker + Corosync 3.ecox 4 .Patroni: A Template for PostgreSQL HA with ZooKeeper, etcd or Consul Patroni originated as a fork of Governor, the project