Read about sql server synchronous replication, The latest news, videos, and discussion topics about sql server synchronous replication from alibabacloud.com
Percona MySQL5.6 semi-synchronous Replication
Configure normal clone first
Two servers, one master and one slave
Master Server:
10.10.1.30
Slave:
10.10.1.200
Modify the my. cnf file of each machine and the server_id
Master server server_id = 1, slave server_id = 2
Restart the two servers and run the following command:
Configure the normal clone firstTwo servers, one master and one standbyPrimary server:10.10.1.30Slave:10.10.1.200Modify the My.cnf file for each machine, modify the server_id separatelymaster server server_id= 1, slave server_id=2Restart the two servers by:Show variables like ' server_id ';You can see that the server_id for both servers are different.Login Master, enter:Grant
replication. semi-synchronous replication premise at least one from the library and the main library in the same room, to ensure sufficient bandwidth, data replication is fast enough . Because of the great impact on write performance and need synchronous confirmation wait.
Tags: linux, mysqlSemi-synchronous replication, where there is a synchronous replication between a node or a part from a node to the primary node, and the other slave nodes are still replicated asynchronouslySemi-synchronous replication
Tags: dia media st3 Val star View project Connection table0. Environment
No domain environment
Publishing services and distributors on the same host
role
Host name
IP
Publication name
Publish library name/subscription library name
Publishing Server
Server1
192.168.1.100
Test3
Db1
Distribution server
'@ '%' by'qwert'; Show master status; The database is then not manipulated. Slave server connection Master, the command is as follows: Stop slave;Change Master toMaster_host='127.0.0.1', Master_port=3306, Master_user='Repl', Master_password='Qwert', Master_log_file='mysql-bin.000001', Master_log_pos= 2388;Start slave;show slave status; Problems that arise: 1, show master status; Show as empty the binary log is not turned on log-bin = ... 2
Tags: ado select form col sem images. com synchronization srcFirst, Brief introduction
Viewed documents: http://www.actionsky.com/mysql-57-semi-sync-intro/Where the semi-synchronous copy is explained in great detail.
Second, the simple configuration
Semi-synchronous replication is the main theory of mastering, this configuration is just
Label:I. What is covered in this article (Contents)
What is covered in this article (Contents)
Background (contexts)
Scenario (solution)
Scenario I (Solution one)
Programme II (Solution two)
Programme III (solution three)
Implementation (process)
Precautions (Attention)
References (References)
two. Background (contexts) In the SQL Server datab
[Synchronous replication common error handling 3] The Stored Procedure sp_MSins_tablename cannot be found, and the stored procedure cannot be found
An error occurred while synchronizing the environment to SQL2008 R2
The error message is that the synchronization stored procedure called during synchronization is not found at the subscription end. The MS error message is as follows:
When a transaction is pu
defined, Ip:port would be used. #id: svc_2# sync|mirror, default is sync#type:sync#ip:127.0.0.1#port:8889logger:level:infooutput:log.txtrotate:size:1000000000leveldb:# in MBcache _size:300# in kbblock_size:64# in mbwrite_buffer_size:256# in mbcompaction_speed:100# yes|nocompression:noWork_dir:ssdb-server's working directory, when started, will generate data and meta two directories in this directory to hold LevelDB database files. This directory is a relative path relative to ssdb.conf, or an a
|nocompression: no
Work_dir: the working directory of ssdb-server. After startup, two directories, data and meta, are generated under this directory to save the database files of LevelDB. this directory is relative to ssdb. the relative path of conf. You can also specify the absolute path.
Server: ip and port specify the IP address and port number of the server
|+ ------------------ + ---------- + ------------------- + ------------------ +
Under the slave server master MySQL command:#/Usr/local/mysql/bin/mysql-u root-pMysql> slave stop;Mysql> change master to master_host = '192. 168.1.123 ', master_user = 'back', master_password = 'back', master_log_file = 'mysql-bin.000009', master_log_pos = 98;Mysql> slave start;
Use show slave status \ G; to check synchronization from the serverSlave_IO_Running: YesSlave
After 5.5 semi-synchronous replication, 5.6 has optimized and improved it. Two of them are important: 1. It should be a big pleasure for O M personnel, after the master-slave switchover, you need to find
After 5.5 semi-synchronous replication, 5.6 has optimized and improved it. Two of them are important: 1. It should
the previous article, "Why do you have toMySQL master from synchronous replication"we explain.MySQL master-slave synchronization of the role of master-slave synchronization principle and the shortcomings of master-slave synchronization. Below we introduce the following 3 nodes: 2 nodes are mainly from each other, 1 nodes as the first 2 nodes from, for the implementation of MySQL5.6 3 node master-slave
. Set synchronization server1. Set synchronization MasterModify the my. cnf file, in# Replication Master Server (default)# Binary logging is required for replicationAdd the following content:# Log-bin =/var/log/mysql/updatelogServer-id = 1Binlog-do-db = discuzBinlog-ignore-db = mysqlRestart MySQL and create a MySQL account for synchronization#/Usr/local/mysql/bin/mysql-u root-pMysql> grant
Original: SQL Server changes replication agent profile parameters and two conflicting policy settingsSince it is often necessary to synchronize tests and change agent profile properties, it is always scripted to facilitate testing.There are two kinds of conflicting policies for updatable subscriptions: one is conflict in the publication, that is, when the subscri
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.