Mongo Meetup 12/11/12: Mongoctl Configuration driven system management for mongo Agenda o Features o Installation o Demo • • • • • Setup Admin Commands Building a repository server Server Commands / Client Commands.

Download Report

Transcript Mongo Meetup 12/11/12: Mongoctl Configuration driven system management for mongo Agenda o Features o Installation o Demo • • • • • Setup Admin Commands Building a repository server Server Commands / Client Commands.

Mongo Meetup 12/11/12:
Mongoctl
Configuration driven system management for mongo
Agenda
o Features
o Installation
o Demo
•
•
•
•
•
Setup
Admin Commands
Building a repository server
Server Commands / Client Commands / Info commands
Building a Replica set
 Upgrade Replica set
 Resync Cluster
Poll
o
o
o
o
o
Linux / Windows
Versions
Sharded / Non Sharded
Total number of machines
Members in replica sets
Mongoctl
o install MongoDB and get a server or replica set cluster
up in minutes
o use declarative, JSON-based configurations to define
servers and clusters
o enjoy easy-to-use convenience wrappers around
mongod, mongo, mongodump, etc.
o Resources:
• http://mongolab.org/
• https://github.com/mongolab/mongoctl
• https://github.com/mongolab/mongoctl/tree/master/docs
Overview
o file / database / webservice based storage of configuration
data
o Admin Commands
• Install/uninstall
o Server Commands
•
•
•
•
Start/Stop/Restart
List configuration (server / Server List)
Tail Log
Resync secondary server
o Client Commands
• Connect to server / primary in repl set
• Backup/restore
o Cluster Commands
• Cluster configuration
• List configuration (cluster / Cluster List)
Installation
o Requirements
• Linux
• Python 2.6
o Installation steps:
• install pip (python package installer)
 Easy_install pip (centOS)
 Apt-get install pip-python (Ubuntu)
• pip install mongoctl
Configuration
o Default location
• $(home)/.mongoctl/mongoctl.config
Demo
o Installing Mongo
• mongoctl install <version>
o Deinstall Mongo
• mongoctl uninstall <version>
o Info Commands
• Mongoctl list-versions
Configure Repository
o Parameters
• Use small files / Security / Initial users
• mongoctl –config-root $HOME/repository server
Configure Repository
o Parameters
• mongoctl –config-root $HOME/repository print-uri
Next Steps: Remote Administration
o
o
o
o
o
o
Start / Stop of remote Mongo Instances
Install / De-Install of mongo on remote installations
Index Build on replica sets
Defragmentation of replica sets
Add Member to replica set
Add Shard to cluster