Recall your own process of learning MongoDB1 installation2 Adding and deleting changes3 Data type Conversions4GridFS5 Rights Management--set up a super User (Admin library) before opening permissions, open permissions, login with the user, enter the
Original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://suifu.blog.51cto.com/9167728/1853478
In MongoDB (version 3.2.9), the distribution of data refers to splitting the collection data into chunks (chunk) and distributing them on different shards (shard). There are 2 main ways to distribute data: Balanced distribution based on blocks
# vi/etc/security/limits.confAdd the following to file: (note red for added)#ftp Hard Nproc 0# @student-maxlogins 4* Soft Nofile 64000* Hard Nofile 64000* Soft Nproc 64000* Hard Nproc 64000* Soft Fsize Unlimited* Hard Fsize Unlimited* Soft CPU
The script covers two ways to monitor the MONGO: using the Mongostat tool that comes with it, the location of each monitoring item may be adjusted to the actual mongostat output, and access to the Admin library to view the specific status
This paper mainly introduces the configuration of Zabbix monitoring MongoDB.Zabbix monitoring MongoDB requires a custom script to monitor, and the script can pass in multiple parameters.principle: Through the MongoDB Client Connection command,
Official website:Https://www.mongodb.com/download-centerExecutes the MSI file.Environment configurationYou can follow my steps to configure the directory according to the individual needs set.Unpack the installation package to D:\Tools\mongodbSet up
The installation of Mongod in RS cluster is the same as a single machine, but the configuration file is slightly different,Standalone installation path Linux under MongoDB 3.2.5 installationThe following is the RS cluster configuration
Demand:A colleague from the off-duty operation sent a requirement to count the number of occurrences of a field (_ID) in all document in a collection in the database. The range of the _id field is 0-4000.Suppose collection is like this:{ 123},{
Before referring to MongoDB in the $where query time, MONGO in the where query is not indexed, so the efficiency of the query is very low, so can not $where as much as possible without $where, and in aggregate () there is no where query, so $ Where
Definitions and principles of indexesThe index of database is a kind of data structure that sorts specific data in database to improve the efficiency of query and change of database. An implementation of an index typically uses a B-tree or a + +
The index in MongoDB is similar to relational database, it is to improve the efficiency of query and sorting, and the principle of implementation is basically consistent. Because the key (field) in the collection can be a normal data type, it can
RAID (Redundant array of independent disk, redundant array of independent disks, formerly known as Redundant Array of inexpensivedisk, redundant array of inexpensive disks) is a technique that allows us to use multiple disks as a single piece of
Explain and IndexExplain there are three modes, namely: Queryplanner, Executionstats, Allplansexecution. In the reality development, the common executionstats pattern, this example analyzes this mode.> db.createcollection ("Person"){"OK": 1}> for
A few recent blog is about MongoDB, although the personal feel also not much knowledge point, but unexpectedly have reproduced my blog, regardless of whether I agree or not through my consent, the description should still be valuable, this is one of
The previous blog wrote a collection of management, the collection is stored in the document, so smart you should be able to think of this is learning document management. To say the title should be document management, but the management of the
In the local library, there is not only a collection of master and slave log oplog, but also a collection for recording master-slave configuration information System.replset:> Use Local> Show Collections> Db.system.replset.find ()rs1:primary> Use
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service