npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mongo-sharding-manager

v0.9.0

Published

Initiate and manage mongo sharding from one centralize terminal via SSH

Downloads

3

Readme

mongo-sharding-manager

Initiate and manage mongo sharding from one centralized terminal via SSH

System Requirement

###Software Requirement

  1. MongoDB

###Previlege Requirement

  1. All server should use the same username & key combination to operate
  2. All server must have root previlege

###Environment Requirement

  1. All running mongod and mongos instance must be stopped

###Warning:

  1. Existing Data may cause configuration failure
  2. You must not mix localhost together with remote server in configuration, use either one of them

##Task ###Initiate Mongo Shard This task will help you initiate a mongo shard from scratch through the following steps:

  • Configure replica set as shard for cluster storage
  • Configure configure servers serve cluster's metadata
  • Add shards to cluster through a temporary mongos instance

In this task, you must exactly obey the mongoDB official documentation for production environment using replica set as shard and configure exactly 3 configure server for failure tolerance. For the replica set, you can either use a currently running one, or you can create replica set on the fly through shard manager.

Production Cluster Architecture

The above structure is the cluster service distribution, which requires at least 10 servers/VMs in total.

  1. 3 servers for each replica set * 2 replica sets
  2. 3 configure servers
  3. 1 application server running mongos

However, if you are just intend to run a test, we can cleverly structure the service distribution using 3 servers in total.

  1. Running as rs0/primary, rs1/secondary, configsvr fallback
  2. Running as rs0/secondary, rs1/primary, configsvr fallback
  3. Running as rs0/secondary, rs1/secondary, configsvr primary

Then have either your local machine/above machine running application and link to cluster as mongos.

(Following task are still under construction, lol) ###Sharding Collection for exsting cluster ###Check cluster running status(status/performance) ###Adding new shard to cluster ###Restart member in cluster

Add-on Features Check input validity Add container support(docker) Loose the production requirement, so user can use single mongod instance and one configure server to build a dev environment