MongoDB, master and slave configuration
A MongoDB installation
The code is as follows
Copy Code
[Root@zabbix_server src]# wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.0.tgz[Root@zabbix_server src]# tar xzvf
Label:First, preface: Why does MySQL want to master from copy (read-write separation)?In layman's terms, the performance of a business system degrades if both the read and write of the database are operated on the same database server.In order to improve the performance of the business system and optimize the user experience, it is possible to reduce the load of the primary database by the master from
with a value of: onSET @ @global. gtid_mode=off_permissive; Set Gtid_mode to ready to turn off stateSET @ @global. gtid_mode=on_permissive;Set Gtid_mode to ready to open state (2) Viewing the status from the serverShow status like ' Ongoing_anonymous_transaction_count '; View the number of things that log-based replication is, 0 or null to indicate normal. This step is to ensure consistency of the data based on the log
Mysql master-slave replication technology (test) bitsCN.com
Mysql master-slave replication technology (test)
Start configuration:
Step 1: Create a replication account
Each
Redis is a high-performance Key-value database. The emergence of redis largely compensates for the shortage of keyValue storage such as memcached, and can play a good complementary role in relational databases in some cases. It provides python, Ruby, Erlang, and PHP clients for ease of use.
Performance test results:
The set operation is performed 110000 times per second, and the get operation is performed 81000 times per second. The server configuration is as follows:
Linux 2.6, Xeon x3320 2.5 G
MySQL master-slave Architecture and Data replication based on SSL
I. Mysql Master/Slave architecture topology:650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131229/193QUD5-0.png "border =" 0 "alt =" "/>
Ii. Knowledge about MySQL
A master-slave MySQL replication configuration case where the environment is 111.111.111.110 and the slave database is 111.111.111.111.
A master-slave MySQL replication configuration ca
": 131815 5992000, "I": 1}}
#查看各Collection状态
Db.printcollectionstats ();
#查看主从复制状态
Db.printreplicationinfo ();
Test MasterCreate a new database on the primary server
MONGO--port 27001 >show dbs >use elaindb >db.blog.save ({title: "new Article"})
Viewing synchronized data from a server
MONGO--port 27001
#在从库插入数据的操作 will prompt not master
> Use elaindb; Switched to DB elaindb > Db.blog.find (); {"_id": ObjectId ("4e9174b48443c8ef12b30c56"), "title": "Ne
Label:MySQL is an open-source relational database system. Replication (Replication) is a process that replicates data from one MySQL database server (master server master) to another server (from server slave).Configuring the primary server (
Tags: MySQL1.MySQL Master-Slave Replication IntroductionMySQL database supports the replication of one-way, two-way, chained cascade, ring-like, and different business scenarios. During the replication process, one server acts as the primary server (
The construction of the master-slave copy of MongoDB databaseWriteby:lipeng date:2014-10-22Recent projects using the location query, on the Internet to see the MongoDB support distance query, so I learned a bit mongodb, in the study summed up the problems encountered and sol
MySQL two-way master-slave replication server configuration method 1. environment description
Server A (master) 192.85.1.175Server B (slave) 192.85.1.176
Mysql version: 5.1.61
System version: System OS: ubuntu 10.10X86
(System installation and data environment setup, omitt
One: The principle of Redis master-slave replication, steps. First step: Copy initialization---> after booting from Redis, the Sync command is sent to the primary redis based on configuration. After version 2.8, the Psync command is sent. After---> Master redis receives the Sync command, it begins to save the snapshot
Mysql Replication master-slave synchronization, mysqlreplication
Introduction:
Mysql master-slave synchronization is a common solution for enterprises. It is often used to back up databases. When the client operates the master dat
Introduction: MySQL databaseOne server acts as the master server while one or more other servers act as the slave server. The master server writes updates to the binary log file and maintains an index of the log file to track log loops. When an slave server is connected to the mast
MySQL replication description MySQL supports one-way and asynchronous replication. During the replication process, one server acts as the master server, and one or more other servers act as the slave server. MySQL replication Base
Redis Master-slave replication configuration and usage are simple. Master-slave replication allows multiple slave servers to have the same database copy as
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.