Zabbix Monitoring MongoDB
Environment
Linux Server
Configuration
MongoDB monitoring is also the use of script monitoring, mainly with the MONGO command. Monitoring Script mongodb.sh
#!/bin/bash
index=$ (echo $@ | tr "".)
Status=$ (echo
MongoDB and MySQL, each update of MySQL will be directly written to the hard disk, but MONGO will not, as a memory database, data operations will be written to the memory, and then to persist to the hard drive, then MONGO how to persist it?
At
Db.createuser (
{
User: "Admin",
PWD: "Admin",
Roles: [{role: "root", DB: "admin"}]
}
);
The role can be changed to root, __system should be more.
Db.serverstatus (). connections
MongoDB role Database User role built in database role : Read,
MongoDB Storage Engine
When it comes to MongoDB's metadata information, first introduce the storage category of MongoDB. mongoDB3.2.4 Support 5 kinds: Wiredtiger (default) MMAPv1 inmomery Encrypted 3rd party Engine metadata Information
From the
Reprint: http://hi.baidu.com/i1see1you/blog/item/a8038399d9a777286e068c8a.html
1.Mongodb Bson Document database, the entire data exists on disk, HBase is a column database, each familycolumn is saved in a separate HDFs file when the cluster is
How to create a Full-text index:
Db.ensureindex ({key: "text"})
Db.ensureindex ({key1: "text", Key2: "Text"})
Db.ensureindex ({"$**": "Text", Key2: "Text"})
MongoDB the use of Full-text indexing queries:
Db.article.find ({$text: {$search:
I. INTRODUCTION
With the rise of internet web2.0 website, the traditional relational database in dealing with web2.0 website, especially the super large-scale and high concurrent SNS type web2.0 pure dynamic website already appeared to be powerless,
These two days a simple study of the MongoDB database, belong to the NoSQL type database, a simple macroscopic look at NoSQL knowledge and MongoDB basic knowledge.
NoSQL is not just SQL abbreviation, it refers to the relational database, which is
Connection: http://blog.csdn.net/puncha/article/details/12974777
MONGDB Free management tools very few, finally found 2, the first is based on the web, the operation is also more convenient:
Address: https://code.google.com/p/mongo-vision/
I
To configure the problems encountered by the MongoDB service:
1.32-bit servers don ' t have journaling enabled Bydefault.
WORKAROUND: Please use the--journal if you want durability. Add Parameters--journal
Mongod.exe--blid_ip 0.0.0.0--logpath
Steps:One. Installing MongoDBTwo. 2 copies of MongoDB to be installedThree. Modifying a configuration filedbpath=c:\mongofuben\zhu\datalogpath=c:\mongofuben\zhu\logs\mongodb.loglogappend=truejournal=truequiet=
Download the relevant installation files for MONGODB based on the operating system firstDownload and upload to Linux, unzipRename the extracted folder to the monggodb4.0.1 command MVConfigure the necessary folder Mgdata store the running data, mglog
The delete operation uses remove, the data is deleted and the query is similar, accept a parameter, and the query is different, in order to prevent misoperation, the delete operation does not allow the parameter is not passedLike
When the amount of data is low, the query is fast, but when the data is large, the query becomes very slow, in MongoDBView Index> db.test_collection.getIndexes ()[ { "V": 2, "key" : { "_id": 1 }, " Name ":"
When you need bulk operations, you can save network connection interactions and use Bulk_write.Set Ordered=false because there is no dependency in the bulk operation, and if there is an interdependence after the cyanide, it needs to be set to
Eg: there is a data for name = Lisi,age = 12, now, you want to modify the age of this data = 20The code is as follows:Db.admin.update ({name:'Lisi'},{$set: {age:Ten}})///The first parameter means finding the data, The second parameter indicates that
1. Restrict access from specific IP addresses. You only need to add the -- bind_ip parameter at startup, and add the -- Host parameter at client connection./APP/Mongo/MongoDB/bin/mongod -- dbpath =/APP/Mongo/MongoDB/data/test -- logpath
This document describes how to install MongoDB on 64-bit centos. MongoDB is a document-oriented database developed in C ++, which is designed in an anti-traditional database paradigm and records related objects in one document, each document
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.