launch_cluster

command
v0.0.0-rc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Launching MongoDB sharded cluster from code

This is just simple example how to launch your custom cluster locally.

Note, that this code only launches MongoDB cluster on succes, but does not stop it anyway. You should stop it manually right now with this tricky hacks:

ps aux | grep mongo | awk '{print $2}' | xargs -L1 kill

And don't forget to cleanup folders that holds shard data and logs: IMPORTANT NOTE be careful where you invoke this command

rm -rf logs workspace

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL