move Big Data solutions based on Percona XTRADB cluster a mobile trip to the IoE Recently, because of the "prism door" incident exposure, caused the national attention to information security issues, the major industries also launched to "IOE" action. For mobile, on the one hand is the concern about information security, on the other hand, to reduce cost consid
Percona-xtradb-cluster Environment" 3 nodes deployed on a single physical server "First, related software installation#安装前确认源安装mysql已经卸载#rpm-qa |grep mysql*#rpm-E--nodeps mysql-server-5.1.73-5.el6_6 mysql-libs-5.1.73-5.el6_6 mysql-5.1.73-5.el6_6 mysql-devel-5.1.73-5.el6 _6Yum-y Install http://www.percona.com/downloads/
This was done before Percona XtraDB Cluster (Configuration See linkhttp://hans925.blog.51cto.com/542170/1607157)Now with Haproxy to Percona XtraDB cluster do load balancing, machine or those two machines, (originally do load balan
Tags: copy First name Live Sync ati Storage sha Cal httpPercona XtraDB Cluster (PXC) cluster is a general multi-master synchronous replication plug-in based on Galera and transactional application, which is mainly used to solve the strong consistency problem, so that the data of each node is kept in real-time synchronization and multi-node simultaneous reading an
://repo.percona.com/aptsaucy MainDeb-srchttp://repo.percona.com/apt Saucy MainStep 4:apt-pinning the PackagesIn some cases-might need to "pin", the selected packages to avoid theupgrades from the distribution repositories. You'll need to make a new file/etc/apt/preferences.d/00percona.pref and add the following lines in it:1. vim/etc/apt/preferences.d/00percona.prefVim/etc/apt/preferences.d/00percona.prefAdd the following line:1. Package: *2. pin:release O=p
-2.4.3-1.el7.x86_64
(1) Solving Perl (Dbd::mysql):
Yum Install-y Perl-dbd-mysql(2) Solve libev.so.4 (64bit)You can go to the rpmfind.net search system to download and install the RPM package
wget ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/libev-4.15-1.el6.rf.x86_64.rpmOK, Installation completeUsing Xtrabackup Backup
Innobackupex--user=root--password=pengyuanzhi--socket=/var/lib/mysql/
Percona XtraDB Cluster (hereinafter referred to as PXC) is an open source MySQL high-availability solution. It integrates Percona server and Percona xtrabackup with the Galera library to enable synchronous multi-master replication. The topology of each node is as follows:
PXC Installation
1, PXC installation environment:
Cluster Name: Pxc-sky
node1:192.168.246.18
node2:192.168.246.19
node3:192.168.246.20
2, shut down the firewall and SELinux
#chkconfig iptables off
#vi/etc/selinux/config
Selinux=disabled
#reboot
3. Create MySQL users and Groups
All 3 nodes to do
[Root@localhost ~]# Groupadd MySQL
[Root@localhost ~]# useradd–g mysql–s/sbin/nologin MySQL
4, the main software installation
All 3 nodes to do
The storage l
"Mysql_password= ""
Mysql_cmdline= "/usr/local/mysql/bin/mysql
B. Run/usr/local/mysql/bin/clustercheck 200 indicates Clustercheck validation succeeded
2.XINETD Configuration
A.yum install-y xinetd.x86_64
b.cp/usr/local/mysql/xinetd.d/mysqlchk/etc/xinetd.d/
D.vim/etc/xinetd.d/mysqlchk changes the server to/usr/local/mysql/bin/clustercheck (server=/usr/local/mysql/bin/ Clustercheck)
E. Change of authority chmod +x Mysqlchk
F.vim/etc/services the last Ne
data conflict, then the way is to take the inconsistent node kicked out of the cluster environment.Limitations of 4.PXC
Only the InnoDB engine is supported. Because an XA transaction is likely to occur when a commit occurs rollback
XA transactions are not supported,
A table delete operation without a primary key is not supported, and a SELECT ... limit also returns a different value.
Because of optimistic concurrency control, tra
completion of data recovery work, the data is not lost. The next thing to do is MySQL ha. The main scripts are as follows:ALTER TABLE AUTH_USER discard tablespace;Cp-f/data/munion_db_bak/munion_db/auth_user.ibd/data/munion_db/munion_dbALTER TABLE AUTH_USER import tablespace;Mysqldump-u root-pmunion123-c--default-character-set=gbk munion_db auth_user >/data/du Mp/auth_userMysqldump-u root-pmunion123--default-character-set=gbk munion_db Auth_User MySQL data recovery is a rare experience, of cours
Although PXC supports adding cluster nodes online, it has not yet addressed the Wsrep_sst_method=xtrabackup or wsrep_sst_method=mysqldump times error. Therefore, try to manually complete the Xtrabackup backup and restore and add the nodes to the cluster.Scene:There are three clean CentOS 6 servers, IP configured as: 192.168.166.169,192.168.166.170,192.168.166.171, ready to build three nodes of Percona
Tags: percona xtradb cluster Sysbench haproxyXtradb after the cluster deployment is complete, 3 machine can read and write at the same time, it needs to be built in front Haproxy For load Balancing. official website haproxy Configuration reference address:Https://www.percona.com/doc/
Install Percona Server in rpm package
Percona XtraDBIt is an enhanced version of the InnoDB Storage engine and is designed to better use and update the performance of computer hardware systems. It also contains some new features in high-performance environments. The XtraDB storage engine is completely backward compatib
XTRADB sysbench Performance TestInstall sysbench, the latest version is 0.5Yum Install Sysbench-yInitializing the test tableSysbench--test=/usr/share/doc/sysbench/tests/db/oltp.lua--oltp-table-size=1000000--mysql-table-engine=innodb-- Mysql-user=sysbench--mysql-password=sysbench--mysql-port=3306--mysql-host=10.0.37.123--mysql-db=test PrepareParameter description:--oltp-table-size : Specifies the size o
Install Percona Server using a binary tar package
Install Percona Server using a binary tar package
InstallingPercona ServerFrom a Binary Tarball1. Download the binary tar package
Take version 5.6 as an example. Go to the official website https://www.percona.com/downloads/percona
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.