Submit Search
Upload
MongoDB Shard Cluster
•
3 likes
•
1,735 views
Anuchit Chalothorn
Follow
MongoDB Shard Cluster
Read less
Read more
Technology
Entertainment & Humor
Report
Share
Report
Share
1 of 15
Download now
Download to read offline
Recommended
MongoDB Replication Cluster
MongoDB Replication Cluster
Anuchit Chalothorn
MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmark
Louis liu
My sql fabric ha and sharding solutions
My sql fabric ha and sharding solutions
Louis liu
Keeping your files safe in the post-Snowden era with SXFS
Keeping your files safe in the post-Snowden era with SXFS
Robert Wojciechowski
Nvmfs benchmark
Nvmfs benchmark
Louis liu
1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster
OlinData
Object Storage with Gluster
Object Storage with Gluster
Gluster.org
High Availabiltity & Replica Sets with mongoDB
High Availabiltity & Replica Sets with mongoDB
Gareth Davies
Recommended
MongoDB Replication Cluster
MongoDB Replication Cluster
Anuchit Chalothorn
MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmark
Louis liu
My sql fabric ha and sharding solutions
My sql fabric ha and sharding solutions
Louis liu
Keeping your files safe in the post-Snowden era with SXFS
Keeping your files safe in the post-Snowden era with SXFS
Robert Wojciechowski
Nvmfs benchmark
Nvmfs benchmark
Louis liu
1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster
OlinData
Object Storage with Gluster
Object Storage with Gluster
Gluster.org
High Availabiltity & Replica Sets with mongoDB
High Availabiltity & Replica Sets with mongoDB
Gareth Davies
MyAWR another mysql awr
MyAWR another mysql awr
Louis liu
GlusterFS As an Object Storage
GlusterFS As an Object Storage
Keisuke Takahashi
了解网络
了解网络
Feng Yu
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
DataStax Academy
Strategies for Backing Up MongoDB
Strategies for Backing Up MongoDB
MongoDB
Control your service resources with systemd
Control your service resources with systemd
Marian Marinov
Deploying And Scaling Rails
Deploying And Scaling Rails
Jonathan Weiss
Haproxy - zastosowania
Haproxy - zastosowania
Łukasz Jagiełło
Comparison of foss distributed storage
Comparison of foss distributed storage
Marian Marinov
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
Marian Marinov
MongoDB Backup & Disaster Recovery
MongoDB Backup & Disaster Recovery
Elankumaran Srinivasan
Exploiting Your File System to Build Robust & Efficient Workflows
Exploiting Your File System to Build Robust & Efficient Workflows
jasonajohnson
Improve your storage with bcachefs
Improve your storage with bcachefs
Marian Marinov
LizardFS-WhitePaper-Eng-v3.9.2-web
LizardFS-WhitePaper-Eng-v3.9.2-web
Szymon Haly
System Capa Planning_DBA oracle edu
System Capa Planning_DBA oracle edu
엑셈
PostgreSQL on EXT4, XFS, BTRFS and ZFS
PostgreSQL on EXT4, XFS, BTRFS and ZFS
Tomas Vondra
はじめてのGlusterFS
はじめてのGlusterFS
Takahiro Inoue
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storage
Marian Marinov
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Ontico
Arbiter volumes in gluster
Arbiter volumes in gluster
itisravi
MongoDB
MongoDB
Serdar Buyuktemiz
Setting up mongodb sharded cluster in 30 minutes
Setting up mongodb sharded cluster in 30 minutes
Sudheer Kondla
More Related Content
What's hot
MyAWR another mysql awr
MyAWR another mysql awr
Louis liu
GlusterFS As an Object Storage
GlusterFS As an Object Storage
Keisuke Takahashi
了解网络
了解网络
Feng Yu
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
DataStax Academy
Strategies for Backing Up MongoDB
Strategies for Backing Up MongoDB
MongoDB
Control your service resources with systemd
Control your service resources with systemd
Marian Marinov
Deploying And Scaling Rails
Deploying And Scaling Rails
Jonathan Weiss
Haproxy - zastosowania
Haproxy - zastosowania
Łukasz Jagiełło
Comparison of foss distributed storage
Comparison of foss distributed storage
Marian Marinov
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
Marian Marinov
MongoDB Backup & Disaster Recovery
MongoDB Backup & Disaster Recovery
Elankumaran Srinivasan
Exploiting Your File System to Build Robust & Efficient Workflows
Exploiting Your File System to Build Robust & Efficient Workflows
jasonajohnson
Improve your storage with bcachefs
Improve your storage with bcachefs
Marian Marinov
LizardFS-WhitePaper-Eng-v3.9.2-web
LizardFS-WhitePaper-Eng-v3.9.2-web
Szymon Haly
System Capa Planning_DBA oracle edu
System Capa Planning_DBA oracle edu
엑셈
PostgreSQL on EXT4, XFS, BTRFS and ZFS
PostgreSQL on EXT4, XFS, BTRFS and ZFS
Tomas Vondra
はじめてのGlusterFS
はじめてのGlusterFS
Takahiro Inoue
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storage
Marian Marinov
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Ontico
Arbiter volumes in gluster
Arbiter volumes in gluster
itisravi
What's hot
(20)
MyAWR another mysql awr
MyAWR another mysql awr
GlusterFS As an Object Storage
GlusterFS As an Object Storage
了解网络
了解网络
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Strategies for Backing Up MongoDB
Strategies for Backing Up MongoDB
Control your service resources with systemd
Control your service resources with systemd
Deploying And Scaling Rails
Deploying And Scaling Rails
Haproxy - zastosowania
Haproxy - zastosowania
Comparison of foss distributed storage
Comparison of foss distributed storage
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
MongoDB Backup & Disaster Recovery
MongoDB Backup & Disaster Recovery
Exploiting Your File System to Build Robust & Efficient Workflows
Exploiting Your File System to Build Robust & Efficient Workflows
Improve your storage with bcachefs
Improve your storage with bcachefs
LizardFS-WhitePaper-Eng-v3.9.2-web
LizardFS-WhitePaper-Eng-v3.9.2-web
System Capa Planning_DBA oracle edu
System Capa Planning_DBA oracle edu
PostgreSQL on EXT4, XFS, BTRFS and ZFS
PostgreSQL on EXT4, XFS, BTRFS and ZFS
はじめてのGlusterFS
はじめてのGlusterFS
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storage
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Arbiter volumes in gluster
Arbiter volumes in gluster
Viewers also liked
MongoDB
MongoDB
Serdar Buyuktemiz
Setting up mongodb sharded cluster in 30 minutes
Setting up mongodb sharded cluster in 30 minutes
Sudheer Kondla
Mongodb workshop
Mongodb workshop
Harun Yardımcı
Back to Basics: Build Something Big With MongoDB
Back to Basics: Build Something Big With MongoDB
MongoDB
MongoDB San Francisco 2013: Basic Sharding in MongoDB presented by Brandon Bl...
MongoDB San Francisco 2013: Basic Sharding in MongoDB presented by Brandon Bl...
MongoDB
Advanced Replication
Advanced Replication
MongoDB
Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB Clusters
Severalnines
MongoDB Replication (Dwight Merriman)
MongoDB Replication (Dwight Merriman)
MongoSF
รู้สิ่งใดไม่สู้...รู้งี้....
รู้สิ่งใดไม่สู้...รู้งี้....
Supasate Choochaisri
Sharding with MongoDB (Eliot Horowitz)
Sharding with MongoDB (Eliot Horowitz)
MongoSF
MongoDB Administration 101
MongoDB Administration 101
MongoDB
Building Universal Web Apps with React ForwardJS 2017
Building Universal Web Apps with React ForwardJS 2017
Elyse Kolker Gordon
Sharding Methods for MongoDB
Sharding Methods for MongoDB
MongoDB
TCP/IP Ağlarda İleri Seviye Paket Analizi – Tshark
TCP/IP Ağlarda İleri Seviye Paket Analizi – Tshark
BGA Cyber Security
Database Sharding At Netlog
Database Sharding At Netlog
Jurriaan Persyn
React JS and why it's awesome
React JS and why it's awesome
Andrew Hull
React Nativeはクロスプラットフォームモバイルアプリ開発の夢を見るか #DroidKaigi
React Nativeはクロスプラットフォームモバイルアプリ開発の夢を見るか #DroidKaigi
Yukiya Nakagawa
Viewers also liked
(17)
MongoDB
MongoDB
Setting up mongodb sharded cluster in 30 minutes
Setting up mongodb sharded cluster in 30 minutes
Mongodb workshop
Mongodb workshop
Back to Basics: Build Something Big With MongoDB
Back to Basics: Build Something Big With MongoDB
MongoDB San Francisco 2013: Basic Sharding in MongoDB presented by Brandon Bl...
MongoDB San Francisco 2013: Basic Sharding in MongoDB presented by Brandon Bl...
Advanced Replication
Advanced Replication
Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB Clusters
MongoDB Replication (Dwight Merriman)
MongoDB Replication (Dwight Merriman)
รู้สิ่งใดไม่สู้...รู้งี้....
รู้สิ่งใดไม่สู้...รู้งี้....
Sharding with MongoDB (Eliot Horowitz)
Sharding with MongoDB (Eliot Horowitz)
MongoDB Administration 101
MongoDB Administration 101
Building Universal Web Apps with React ForwardJS 2017
Building Universal Web Apps with React ForwardJS 2017
Sharding Methods for MongoDB
Sharding Methods for MongoDB
TCP/IP Ağlarda İleri Seviye Paket Analizi – Tshark
TCP/IP Ağlarda İleri Seviye Paket Analizi – Tshark
Database Sharding At Netlog
Database Sharding At Netlog
React JS and why it's awesome
React JS and why it's awesome
React Nativeはクロスプラットフォームモバイルアプリ開発の夢を見るか #DroidKaigi
React Nativeはクロスプラットフォームモバイルアプリ開発の夢を見るか #DroidKaigi
Similar to MongoDB Shard Cluster
Sharded cluster tutorial
Sharded cluster tutorial
Antonios Giannopoulos
MongoDB - Sharded Cluster Tutorial
MongoDB - Sharded Cluster Tutorial
Jason Terpko
MongoDB – Sharded cluster tutorial - Percona Europe 2017
MongoDB – Sharded cluster tutorial - Percona Europe 2017
Antonios Giannopoulos
Percona Live 2017 - Sharded cluster tutorial
Percona Live 2017 - Sharded cluster tutorial
Antonios Giannopoulos
Mongo db sharding_cluster_installation_guide
Mongo db sharding_cluster_installation_guide
Philip Zhong
Percona XtraDB 集群安装与配置
Percona XtraDB 集群安装与配置
YUCHENG HU
Mongo db roma replication and sharding
Mongo db roma replication and sharding
Guglielmo Incisa Di Camerana
Oracle cluster installation with grid and iscsi
Oracle cluster installation with grid and iscsi
Chanaka Lasantha
Oracle cluster installation with grid and nfs
Oracle cluster installation with grid and nfs
Chanaka Lasantha
Get expertise with mongo db
Get expertise with mongo db
Amit Thakkar
Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmaple
Chanaka Lasantha
Setting up mongo replica set
Setting up mongo replica set
Sudheer Kondla
MySQL Spider Architecture
MySQL Spider Architecture
I Goo Lee
Spider Setup with AWS/sandbox
Spider Setup with AWS/sandbox
I Goo Lee
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
Santosh Kangane
OTRS
OTRS
Muhammad Qazi
Postgres the hardway
Postgres the hardway
Dave Pitts
4. v sphere big data extensions hadoop
4. v sphere big data extensions hadoop
Chiou-Nan Chen
MariaDB10.7_install_Ubuntu.docx
MariaDB10.7_install_Ubuntu.docx
NeoClova
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 new
Yiwei Ma
Similar to MongoDB Shard Cluster
(20)
Sharded cluster tutorial
Sharded cluster tutorial
MongoDB - Sharded Cluster Tutorial
MongoDB - Sharded Cluster Tutorial
MongoDB – Sharded cluster tutorial - Percona Europe 2017
MongoDB – Sharded cluster tutorial - Percona Europe 2017
Percona Live 2017 - Sharded cluster tutorial
Percona Live 2017 - Sharded cluster tutorial
Mongo db sharding_cluster_installation_guide
Mongo db sharding_cluster_installation_guide
Percona XtraDB 集群安装与配置
Percona XtraDB 集群安装与配置
Mongo db roma replication and sharding
Mongo db roma replication and sharding
Oracle cluster installation with grid and iscsi
Oracle cluster installation with grid and iscsi
Oracle cluster installation with grid and nfs
Oracle cluster installation with grid and nfs
Get expertise with mongo db
Get expertise with mongo db
Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmaple
Setting up mongo replica set
Setting up mongo replica set
MySQL Spider Architecture
MySQL Spider Architecture
Spider Setup with AWS/sandbox
Spider Setup with AWS/sandbox
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
OTRS
OTRS
Postgres the hardway
Postgres the hardway
4. v sphere big data extensions hadoop
4. v sphere big data extensions hadoop
MariaDB10.7_install_Ubuntu.docx
MariaDB10.7_install_Ubuntu.docx
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 new
More from Anuchit Chalothorn
Flutter Workshop 2021 @ ARU
Flutter Workshop 2021 @ ARU
Anuchit Chalothorn
Flutter workshop @ bang saen 2020
Flutter workshop @ bang saen 2020
Anuchit Chalothorn
13 web service integration
13 web service integration
Anuchit Chalothorn
09 material design
09 material design
Anuchit Chalothorn
07 intent
07 intent
Anuchit Chalothorn
05 binding and action
05 binding and action
Anuchit Chalothorn
04 layout design and basic widget
04 layout design and basic widget
Anuchit Chalothorn
03 activity life cycle
03 activity life cycle
Anuchit Chalothorn
02 create your first app
02 create your first app
Anuchit Chalothorn
01 introduction
01 introduction
Anuchit Chalothorn
Material Theme
Material Theme
Anuchit Chalothorn
00 Android Wear Setup Emulator
00 Android Wear Setup Emulator
Anuchit Chalothorn
IT Automation with Chef
IT Automation with Chef
Anuchit Chalothorn
IT Automation with Puppet Enterprise
IT Automation with Puppet Enterprise
Anuchit Chalothorn
Using PhoneGap Command Line
Using PhoneGap Command Line
Anuchit Chalothorn
Collaborative development with Git | Workshop
Collaborative development with Git | Workshop
Anuchit Chalothorn
OpenStack Cheat Sheet V2
OpenStack Cheat Sheet V2
Anuchit Chalothorn
REST API with CakePHP
REST API with CakePHP
Anuchit Chalothorn
Open Stack Cheat Sheet V1
Open Stack Cheat Sheet V1
Anuchit Chalothorn
Btf2013 OpenShift Live Demo
Btf2013 OpenShift Live Demo
Anuchit Chalothorn
More from Anuchit Chalothorn
(20)
Flutter Workshop 2021 @ ARU
Flutter Workshop 2021 @ ARU
Flutter workshop @ bang saen 2020
Flutter workshop @ bang saen 2020
13 web service integration
13 web service integration
09 material design
09 material design
07 intent
07 intent
05 binding and action
05 binding and action
04 layout design and basic widget
04 layout design and basic widget
03 activity life cycle
03 activity life cycle
02 create your first app
02 create your first app
01 introduction
01 introduction
Material Theme
Material Theme
00 Android Wear Setup Emulator
00 Android Wear Setup Emulator
IT Automation with Chef
IT Automation with Chef
IT Automation with Puppet Enterprise
IT Automation with Puppet Enterprise
Using PhoneGap Command Line
Using PhoneGap Command Line
Collaborative development with Git | Workshop
Collaborative development with Git | Workshop
OpenStack Cheat Sheet V2
OpenStack Cheat Sheet V2
REST API with CakePHP
REST API with CakePHP
Open Stack Cheat Sheet V1
Open Stack Cheat Sheet V1
Btf2013 OpenShift Live Demo
Btf2013 OpenShift Live Demo
Recently uploaded
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
Boston Institute of Analytics
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
The Digital Insurer
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
lior mazor
Recently uploaded
(20)
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
MongoDB Shard Cluster
1.
MongDB Sharding Anuchit Chalothorn anuchit@redlinesoft.net
2.
● 2 or
more router servers ● 3 config server ● 2 or more shard server Architecture
3.
Sharded Cluster Architecture
4.
Setup All machine install
MongoDB wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.1.tgz tar zxvf mongodb-linux-x86_64-2.6.1.tgz -C /opt/ export PATH=$PATH:/opt/mongodb-linux-x86_64-2.6.1/bin mkdir -p /data/db
5.
Shard Server Start service
mongod on shard server mongod --dbpath /data/db
6.
Config Server Start service
mongod on config server mongod --configsvr --dbpath /data/db
7.
Router Server Start service
mongos on router server mongos --configdb ◌ํYOUR-CONFIG-SERVER:27019
8.
Add Shard to
Cluster Connect to router and add shard to cluster sh.addShard("YOUR-SHARD-SERVER:27017")
9.
Check your cluster
status Check your shard cluster status sh.status()
10.
Test your shard
cluster Select database ‘test’ to sharding sh.enableSharding("test")
11.
Test your shard
cluster Select database push some sample data use test for (var i = 1; i <= 10; i++) db.testSample.insert({ x : i })
12.
Test your shard
cluster Index your collection db.testSample.ensureIndex({ _id: "hashed" })
13.
Test your shard
cluster Select shard key (Hash Based) sh.shardCollection("test.testSample",{ "_id": "hashed" });
14.
Test your shard
cluster Add more shard server and push more sample data and see your shard status
Download now