TP already supports MongoDB database, here is a detailed description of the configuration and use of MONGO on TP.
(1) There is a bug in the original class of/think/model/mongomodel.class.php in the tp3.2.2 version. We need to add some code to the
This article describes how to build a shard Cluster service based on MongoDB 4.0, as shown in the following table:1. Create related catalogueCreate the following directories in three separate points:[[email protected] ~]# mkdir -p
System Environment: CentOS6.5Software: mongodb2.8The original is to think of the current data to add a copy set, easy to read and write, did not think of the tragedy, and now even the original master data have become from the database, how also can
This document is based on MongoDB version 3.6.2:Recommended use of the latest versionHttps://www.mongodb.com/download-center#communityinstallation filesCluster IP and port design scheme:
Service
192.168.141.
ConceptA Mongod service can have multiple databases, each database can have multiple tables, where the table is called collection, each collection can hold multiple documents (document), each document is Bson (binary JSON) in the form of a hard disk,
MongoDB Replica set skill target
Understanding the MongoDB replica set concept
Learn to deploy a MongoDB replica set
Understand the MongoDB election process
Learn MongoDB replica set management and maintenance replication sets
What is a shardHigh data volume and throughput of the database application will be more pressure on the performance of the single machine, large query volume will be a single CPU exhausted, large amount of data on the single-machine storage pressure,
IntroducedReplication set (Replica sets) is a master/slave replication mechanism for asynchronous synchronization of the same data, so that multiple machines have more than one copy of the same data, due to the automatic failover and recovery
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.