https://github.com/wpjunior/mongodb-serf-ctl
https://github.com/wpjunior/mongodb-serf-ctl
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wpjunior/mongodb-serf-ctl
- Owner: wpjunior
- Created: 2014-11-10T00:24:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-01T12:11:58.000Z (over 9 years ago)
- Last Synced: 2025-01-13T23:13:25.258Z (over 1 year ago)
- Language: Makefile
- Size: 2.93 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mongodb-serf-ctl
----------------
A controller for mongodb cluster with serf.
Requirements
------------
* Docker
Instalation
-----------
with root user:
```bash
cd /usr/bin/
wget https://raw.githubusercontent.com/wpjunior/mongodb-serf-ctl/master/mongodb-serf-ctl
chmod +x mongodb-serf-ctl
```
Getting started
---------------
1. Build the image (from: https://github.com/wpjunior/mongodb-serf)
```bash
mongodb-serf-ctl build
```
2. Start first cluster
```bash
mongodb-serf-ctl start
```
3. show cluster members
```bash
mongodb-serf-ctl status
```
4. add more one router (mongos)
```bash
mongodb-serf-ctl start_router02
```
4. add more one replicaset (mongod)
```bash
mongodb-serf-ctl start_rs3
```
5. connect to mongodb shell
```bash
mongodb-serf-ctl shell
```