This article by show according to Lin Feng to provide friendship sponsorship, starting in the mud row world. Description This article is reproduced in part from the Internet. MySQL replication (English for replication) is a multi-MySQL database master from the synchronous scheme, characterized by asynchronous
1. EnvironmentOS: CentOS release 6.4 (Final) db:postgresql 9.3.6pgpool server: Pgpool 172.16.0.240 database master server: Master 172.16.0.241 database from server: Slave 172.16.0.242where the master-slave database uses the stream replication and has been configured, the newly configured Pgpool is managed using Postg
the case of high concurrency or faulty connection, the process is easy to automatically shut down, so it is a good idea to turn on the--keepalive parameter so that the process automatically recovers, but still can't solve the problem fundamentally, Therefore, it is usually the most prudent to install a mysql-proxy on each slave server for its own use, although relatively inefficient but can guarantee stability;4. A master
? More than Checkpoint_segments * 2 + wal_keep_segments should not be used in the standard quota system of PostgreSQL for so many xlog files. If the number of xlog files starts to grow massively, you will encounter some strange problems. Make sure the Archive_command is working properly. If you perform these checks correctly, nothing bad happens in this area-if you can't check these parameters, you're not far from the danger.6.1.2 Monitoring things Lo
send me"4) Slave's SQL thread detects that the content in the Relay log has been added, it immediately resolves the contents of the log file into those executable query statements that were executed at the Master end, and executes the query itself. In this way, the same Query is actually executed on the Master and Slave ends, so the data on both ends is exactly the same.Refer to above: http://machael.blog.
. BINLOG dump: send data from binary log event requests sent from the Service's Io thread to the other party.
3. Slave must enable relay logs, disable binary logs (recommended), and have a unique server-id.
Io thread: Requests binary logs from the master and saves them to the local relay logs.
SQL thread: read and execute SQL statements in the current relay log one by one.
4. There is usually only one master
new repository with the contents of the trunk log. This completes the synchronization process. second, the common replication model1 , one master one from the model650) this.width=650; "src=" Http://7xaxaa.com1.z0.glb.clouddn.com/1.jpg "width=" 285 "height=" 133 "alt=" 1.jpg "/>The advantages of this architecture are relatively simple, the construction and maintenance are relatively easy, the cost is relat
Tags: binary file thread state different MYSQ based on user backup enterprise1. Set the Servie-id value of main Library master and turn on Bin-log function parameterVi/etc/my.cnfTo modify the parameters of the MY.CNF:[Mysqld]Server-id=1 //Each library must have a different Server-idLog-bin=mysql-bin 2. Check that the parameters are set and restarted successfullyEgrep "Server-id|log-bin"/etc/my.cnfRestart command see: MySQL installation or MySQL databa
,... , while Slave-1 is no longer responsible for select. Slave-1 transfers the burden of the master copy thread to its own body. This is called the concept of multi-level replication.Issue 6: When a select is sent to the MySQL proxy, this time the slave-2 response, the next time by the slave-3 response, so that the query cache can not be exploited.Should find a shared cache, such as memcache to solve. The
InnoDB engine database master-slave replication synchronization new sharing bitsCN.com recently upgraded the company's MySQL architecture, from the original master-slave multi-slave to DRBD + Heartbeat dual-master multi-slave, the
library, resulting in delaysView The configuration of Master and Slave may cause replication delays due to improper configurationissue 3: too many slow SQL statementsIf a statement executes for more than 2 seconds, it needs to be tunedissue 4: Master-slave replication design issuesMaster -slave
Tokyo cabinet tyrant supports master-slaver and master-master distributed deployment. However, because master-slaver needs to manually set the master after the master is down, this method of Cold Start is not very good. In additi
serverreplicate_ignore_db = Test\ \ non-binary log replication databasereplicate_ignore_db = MySQLreplicate_ignore_db = Information_schemaReplicate_wild_do_table = Sxjy.stu\ \ Copy the binary log of the specified database or tableReplicate_wild_do_table = sxkj.%Replicate_wild_ignore_table = Sxjy.class\ \ Does not copy the binary log of the specified database or tableExercise: First build a MySQL database server, do not enable binary logging, and then
, Case: Customer complaints: Modified xx information, prompted to modify the success. View or old data again. What's going on?Most likely caused by a database master-slave delay3, MySQL master-slave delay delay problem how to deal with?1. Occasional delay: Control the Write speed, peak load shifting.2. Frequency delay: Split database for multi-point write3. Last
password.If the above password is wrong, it can be entered, but cannot be manipulated afterwards. Need to re-authorize with Auth.Second: master-slave replicationRedis's master-slave replication feature is very powerful, a master can have multiple slave, and a slave can have more than slave, so continue to form a power
Tags: PostgreSQL masterSetting up PostgreSQL master server under UbuntuInstall slightlyPostgreSQL master server:$ vi/home/postgresql/data/postgresql.confPress A or I to enter edit modelisten_addresses = ' * 'Wal_level = Hot_standby (default is commented)Max_wal_senders = 5 (
This document is based on Nginx+tomcat+redis (session basis) to do the operation, this operation is not introduced, can refer to: http://francis905.blog.51cto.com/3048056/1720693Principle part:Redis's master-slave replication feature is very powerful, a master can have multiple slave, and a slave can have more than slave, so continue to form a powerful
, mysql5.7 began to support multiple master one fromIv. Construction of master-slave replication1, necessary conditions: Open Log-bin parameters, master-slave Server-id different, relay-log, from the library server can connect to the main libraryV. The problem of master-slave replication1, the host after the outage, th
Label:master-Slave form
MySQL master-slave replication flexibility
One Master one from
Primary master replication
One master multiple reads from the---extended system, because reads are read from the librar
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.