Tornado + ansible + twisted + automatic system development for mongodb O & M (1), ansiblemongodb

Source: Internet
Author: User

Tornado + ansible + twisted + automatic system development for mongodb O & M (1), ansiblemongodb

Some time ago I learned about ansible Configuration Management (http://blog.csdn.net/column/details/ansible.html anisble Configuration tool translation column), I feel very powerful, I want to recently read tornado and twisted and it together to do a webUI

Today, I made a demo. The general function is to add an ansible host and then record a single running script (playbook and batch run will be added later.

Use freemind to summarize the following ideas

Below is the demo

Add hosts and add the List Directory and ssh Login-free functions in the background

Run scripts

Ignore my rough UI

Analyze the implementation code every day. Leave a message for the source code ~


How can I configure a MongoDB database on Linux as the master database? In Windows, MongoDB is a slave database?

Use the master parameter when starting mongodb on Linux, and use the slave parameter when starting on windows.
However, we recommend that you use the replica set later than 2.4 in the official documentation. Do not use master-slave replication any more.
Using replica set requires more than three nodes. You can set two or more data nodes and multiple election nodes. If the number of nodes is a base node, the system determines which node should be primary.
I have not tried to enable mongodb on both Linux and windows.
For the parameters for enabling mongodb, refer to here:
Docs.mongodb.org/..tions/
For master-slave replication information, refer to here:

Docs.mongodb.org/manual/core/master-slave/


Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.