actually eventually starts the service by invoking the service's resource agent.Messaging layer, CRM, RA these three levels are AIS family to achieve the three basic level of cluster function;Summarize:Messaging Layer main role: through the configuration of the interface and address and mode, to complete the heartbeat and transaction information transmission of the cluster;CRM role: For non-ha-aware (can not directly communicate with the message layer) program to provide the middle tier, becaus
Tags: pacemaker corosync pcsExperimental purpose: Using Corosync as the cluster message transaction layer (massage layer), pacemaker as the cluster resource Manager (Cluster Resource Management), PCs as a management interface tool for CRM. Requires the implementation of HTTPD's high-availability features.Environment: CentOS 6.9pacemaker:1.1.15corosync:1.47pcs:0.9.155Preparatory work:
Configure SSH
Os:rhel 6.5 64bitcorosync:1.4.7--yum Mode installationpacemaker:1.1.2--Automatic installation as a Corosync dependency packPacemaker is the product of heartbeat development to 3.0 independent, Red Hat 6.0 series, using Yum to install Corosync, the default is to install Pacemaker as CRM.Pacemaker Common Configuration tool: Crmsh PCsCrmsh need to install RPM packages independentlyMain configuration files:/etc/corosync/corosync.conf/etc/crm/crm.confExper
resource management function and cannot form a cluster independently.2, Corosync IntroductionCorosync was originally used only to demonstrate an application of the Openais Cluster Framework interface specification, which can be said to be part of the Openais, but the latter is clearly beyond the official original idea, and more and more vendors are trying to use Corosync as a cluster solution. The RHCs cluster suite, such as Redhat, is based on the Corosync implementation.Corosync only provides
Tags: haproxy mariadb pacemaker CorosyncThe highly available solution keepalived just provides the simplest high-availability features, and the truly advanced features keepalived difficult to complete. Openais specifications provide a complete solution, but a lot of the weight of many features considered comprehensive, very detailed, to understand these we can be more in-depth understanding of the complete system of high availability, when encounterin
: Drbdadm----Overwrite-data-of-peer primary MySQL, making this VM a primary for the DRBD group. When you view the status of DRBD by Drbd-overview, you can see that two disks are synchronizing at this time:0:mysql/0 syncsource primary/secondary uptodate/inconsistent C r-----???? [A]. ..... ......... Sync ' ed:0.6% (20372/20476) MThe format is now on the master node: mkfs.ext4/dev/drbd0?At this point, the DRBD installation configuration is complete. At this point, you can only mount this DRBD disk
1. Environment IntroductionOS: centos 6.5Kernel: 2.6.32-431.11.2.el6.x86 _ 64Node1: nginxha001 10.0.15.31 MasterNode2: nginxha002 10.0.15.32 SlaveVip: 10.0.15.30Note: drbd is used in this example. For installation of mysql, corosync, and pacemaker programs, see other materials. Both programs must be installed. drbd resources can be copied to the other one after configuration is completed on one platform. Both drbd resources must be created to create d
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/37/C6/wKioL1OvrZKw1D9-AAEDaobD9Aw534.jpg "Title =" 1.jpg" alt = "wKioL1OvrZKw1D9-AAEDaobD9Aw534.jpg"/>
Lab platform:
Centos 1, 6.4
Functions:
Use corosync + pacemaker + drbd to achieve high availability of the lamp platform, and install the discuz forum for testing.
Tutorial steps:
1,
Synchronize the hosts files of both parties and add the parsing of node6 and node7
10.32.9.56 node6
10.3
the system to find out the inconsistency or conflict between the software and the definition of the system.
Differences:
First, their test methods are different:
Unit testing is a white box test;
Integration testing is a gray-box test;
System testing is a black box testing.
Second, they have different scope of study, that is, their testing focuses are different:
Unit testing mainly tests the data structure, logic control, and exception handling within a unit;
The integration test mainly tes
1 Start the Docker service, which causes the running Docker to error if the Docker service stops, without switching2 Prepare the same image file on each node3 pcs resource Create My-docker1 docker image= "Index.alauda.cn/library/tomcat:9" name= "My-docker" run_opts= "-P 8,888:8,080 "4 Setting up PCs constraint colocation add my-docker1 VIP1 INFINITYThis article is from the "old section of the Cultivation of Life" blog, please be sure to keep this source http://031028.blog.51cto.com/9866455/18370
Operation thinking: Through the DRBD to achieve data synchronization, through the Corosync+pacemaker (hereinafter referred to as CP) to detect failures and transfer, only one of the normal state of work, the other only to detect and synchronize data, when there is a failure, Server2 automatically take over all business, and synchronizing the data to another (of course, it doesn't have to sync successfully at this point ...). This is illustrated below:
corosync+pacemaker+iscsi+httpd Implement Web High availability of servicesFirst, the introduction of softwareCorosync implemented is the Membership and Reliable Group Communication protocolPacemaker is based on corosync/linux-ha Implement service ManagementCorosync includes the following components: Totem Protocol EVS CPG CFG QuorumExtended Virtual synchrony algorithm (EVS) two features available: Synchronization of group membership lists; Rel
Corosync Introduction:
Corosync can use a simple configuration file to define the way and protocol of information delivery when passing information. It is an emerging software, launched in 2008, but in fact it is not a real sense of the new software, in 2002, there is a project Openais, it is too large, split into two subprojects, which can achieve HA heartbeat information transmission function is Corosync, its code 60% Left or right from Openais. Corosync can provide a complete ha function, bu
is the default data transmission model, can guarantee the integrity of the database. Installation Environment: centos6.5, installing the Corosync and pacemaker procedures, see the previous blog, the previous environment installed configuration interface is Crmsh, where the installation of PCs, the installation of PCs is relatively simple, #yum install pcs–y can After the installation is complete, the cluster status is as follows: 650) this.width=650
Corosync is used to enable multiple machines to communicate with each other (maintaining heartbeats), while pacemaker manages the entire cluster's operations on the Corosync top. Corosync is the future direction of development. In later new projects, the general use of Corosync, and Hb_gui can provide a good ha management functions, can achieve graphical management. In addition, related graphics have RHCs suite Luci+ricci.
Consistency of highly avail
]Masters: [Node2]Stopped: [Node1]Mount(ocf::heartbeat:filesystem):Started Node2Mysqlip(ocf::heartbeat:ipaddr):Started Node2MySQLServer(lsb:mysqld):Started Node2########### #成功切换至另一节点# Avoid Node1 recovery grab back, grab back may also lead to service not working properly, set stickinessCRM (Live) configure# property default-resource-stickiness=100# then set the Node1 to the online statusCRM (live) node# online# Check the service again, Node2 still workingResolution links for some common errors:
Although the Linux system is very powerful, stable, but we use the process, if the human operation is not appropriate, will still affect the system, and may even make the system does not boot, unable to run services and other problems. Then this blog post summarizes some common troubleshooting methods, but it is impossible to cover all, can only continue to supplement, update.first, the administrator forgot the password(1), restart the computer, enter
Network troubleshooting and viewing in linux, and network troubleshooting in linux
Basic troubleshooting errors
Troubleshooting must be simple and complex. Some people repeatedly configure the above files, but they cannot access the network. They always think that the system is faulty and want to reinstall the host. Th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.