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/