How does one modify the Oracle replica set in Linux ?, Linuxoracle code
The Oracle replica set installed on the virtual machine is different from the replica set installed on Windows. Refer to the online documents to modify the replica set on the server, and make a summary and record here.
1. log on to the Oracle us
The following figure shows the mongdb cluster architecture to be built. Create the first replset folder ------------------ create directory mkdir-P/data/replset_sharding/replset1/r0mkdir-P/data/replset_sharding/replset1/r1mkdir-P /data/replset_sharding/replset1/r2mkdir-P/data/replset_sharding/replset1/log can be changed to the following one (this is for the convenience of viewing logs, view it directly in the command line output)/apps/Mongo/Bi N/mongod -- dbpath/data/replset_sharding/replset1/R0
2.33mongodb Replica Set IntroductionEarlier versions used Master-slave, a master one from and MySQL similar, but slave in this architecture is read-only, when the main library down, from the library can not automatically switch to primaryThe Master-slave mode has now been phased out, changed to a replica set, this mode has a master (primary), and multiple Slave (secondary), read-only. Support to set weights
=/export/log/mongconfigsvr.logLogappend=truemaxconns=1000Pidfilepath=/var/run/mongconfigsvr.pidHttpinterface=true Start Configsvrmkdir-pv/export/log/cd/export/log/Touch Mongconfigsvr.log /opt/mongodb3.2.6/bin/mongod-f/opt/mongodb3.2.6/configsvr.confNetstat-tlnup 1111 Port Boot 6. Configure routing on each machineCreate a configuration file for MONGOs Vim mongos.confPort = 2222maxconns=1000Logpath=/var/log/mongos.logLogappend=trueLogrotate=renamePidfilepath=/var/run/mongos.pidFork=trueHttpinterfa
Tags: dependent markdown asm UIL pen img Relationship Water SRCin my previous cognition, once a system is officially on-line, most of the servers will not be migrated easily, especially those involving multiple related applications involving multiple hardware servers, because this migration will be reaching. However, there is still such a situation, as I am mainly responsible for the past few days, is a system of all the server migration part of the machine migration, and a part of others are re
Tags: for workspace port bin exe AST configuration common IATCreate a DirectoryMkdir-p/DATA/R0/DATA/R1/DATA/R2Declaring an instance./bin/mongod--port 27017--dbpath/home/workspace/data/r0/--smallfiles--replset RSA--fork--logpath/home/workspace/ Logs/mongo0.log./bin/mongod--port 27018--dbpath/home/workspace/data/r1/--smallfiles--replset RSA--fork--logpath/home/workspace/ Logs/mongo1.log./bin/mongod--port 27019--dbpath/home/workspace/data/r2/--smallfiles--replset RSA--fork--logpath/home/workspace/
I. node types
Standard: a regular node that stores a complete copy of data and participates in voting. It may become an active node.
Passive: stores complete data copies and participates in voting. It cannot be an active node.
Arbiter: An arbitration node that only participates in voting and does not receive copied data. It cannot become an active node.
Ii. parameter description-- Dbpath: Data File Path-- Logpath: Log File Path-- Port port number. The default value is 27017. This port number is
One: Concept
The popular copy set is to use multiple machines for the same data asynchronous synchronization, so that multiple machines have multiple copies of the same data, and when the main library when it is off without user intervention, automatically switch to other backup server Master library. The replica server can also be used as a read-only server to achieve read-write separation and increase load.
Second: Experimental en
Tags: Mongodb big Data cloud computingThe following operations are mainly divided into two sections:
Modify Node State
Mainly include: Demote the primary node to the secondary nodeFreeze secondary nodesForcing secondary nodes into maintenance mode2. Modify the configuration of the replica set Adding nodesDelete a nodeTo set the secondary node as a deferred backup nodeTo set the secondary node as a hidden nodeReplace the current
Mongodb master-slave configuration: replica set, mongodbreplica1. Replica setThe master-slave deployment of mongodb, usually in the replica set mode. Replica set is a group of multiple mongod instances, including one primary and multiple slave databases. The advantage of this primary multi-slave mode is that mongodb se
Actual Combat MongoDB
Master-slave
MongoDB supports asynchronous data replication between different services to implement failover (failover, failover, failback) and redundancy (data redundancy).
At the same time, only one service node (primary or master) supports writing.
MongoDB supports two modes of replication:
Master/slave, master-slave replication, roles include Master and Slave.
Replica set, replica
structure diagram looks like this:The above structure diagram total, the client total master node reads the data, the client writes the data to the master node is, the master node and the slave node carries on the data interaction safeguard data consistency.Replica set Features:
N-node clusters
Any node can be used as the master node
All write operations are on the primary node
Auto Fail-Over
Automatic recovery
MongoDB Replica
Tags: read proc interrupt shell Modify hardware init code MasterMongoDB Replica Set ConfigurationMongoDB replication is the process of synchronizing data across multiple servers.Replication provides redundant backups of data, stores copies of data on multiple servers, improves data availability, and guarantees data security.Replication also allows you to recover data from hardware failures and service outages.Note When you create a
Label:Shard Cluster 1.1. Concept A shard cluster is an operation that stores data on multiple machines, consisting mainly of query routing MONGOs, shards, and configuration servers.Query routing distributes requests to the appropriate shards based on metadata on the configuration server and does not itself store the cluster's metadata, but is cached in memory.Shards are used to store data blocks. The dataset splits the collection into chunks based on the Shard key, stored on different shards. I
When you set a mongodb replica set, the Primary node, second node, and arbitration node may have unbalanced resource configurations (CPU or memory). Therefore, some nodes are required not to be Primary. We know mongodb settings: in addition to the arbitration node, each other node has a priority. You can manually set a priority to determine who has the highest weight as primay.
When you set a mongodb replica
the master-slave relationship.
Mount the master node: only the slave Database Service is left before the operation.
Db. sources. insert ({"host": "127.0.0.1: 8888 "})
Delete the connected master node: only the slave Database Service is left before the operation.
Db. sources. remove ({"host": "127.0.0.1: 8888 "})
Ii. Replica Set Concept
1.1 The first figure shows that A is active. B and C are used for backup.
1.2 When A fails, the cluster selects B a
that do not use the return address (127.0.0.1) when using a private IP Address ):
> MongoPrimary> cfg = {"_ id": "[replication_set_name]", "members": [{"_ id": 0, "host": "[Primary_Host_IP]: 27017 "}]}Primary> rs. initiate (cfg );
4. Add a Failover instance to the replica set
Primary> rs. add ("[Failover_Host_IP]: 27017 ")
5. Add an arbitration instance to the replica set
Primary> rs. addArb (": 27017 ")
6
Eight Copy
Introduction to 8.1 image replicas
RMAN can create database data files, archive redo logs, or exact copies of control files. The Rman copy is a copy of these files, and the difference is only in the name and location changes. We don't
You need to consider backup slices or other issues. The image copy can only be generated on disk and cannot generate an incremental replica. The build image copy must load or open the database. Build histor
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.