Skip to content

peterj/mongodb-sharding-article

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Horizontal partitioning in MongoDB

This repository can be used as part of the "Horizontal partitioning in MongoDB" article.

What's in this repo?

  • docker-compose.yml = 3 MongoDB shards, a configuration server and a router
  • books.json = sample data
  • init-config.js = config file for the configuration server
  • init-router.js = config file for the router
  • init-shard1.js = config file for shard1
  • init-shard2.js = config file for shard2
  • init-shard3.js = config file for shard3

How to get started?

Run docker-compose up -d, then configure all services. See the "Horizontal partitioning in MongoDB" article.

About

Example of sharding in MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published