Sharding Setup
Start config server(s)
mongod --configsvr --dbpath /data/cfg
Start mongos process(es)
mongos --configdb server-c:27019
Start server (or replica set) for each shard
mongod --dbpath /data/sh1
21
Convert pdf to powerpoint presentation - control software platform:C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF in C#.net, ASP.NET MVC, WinForms, WPF
Online C# Tutorial for Creating PDF from Microsoft PowerPoint Presentation
www.rasteredge.com
Convert pdf to powerpoint presentation - control software platform:VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to PDF in vb.net, ASP.NET MVC, WinForms, WPF
VB.NET Tutorial for Export PDF file from Microsoft Office PowerPoint
www.rasteredge.com
Sharding Setup
Add each shard to configuration
sh.addShard("server-s:27100")
Enable sharding for the database
sh.enableSharding("mydb")
Enable sharding for a collection
sh.shardCollection("mydb.coll",{thekey:1})
22
control software platform:VB.NET PowerPoint: Use PowerPoint SDK to Create, Load and Save PPT
About This SDK. Specifically speaking, this VB.NET PowerPoint presentation document control of RasterEdge .NET Imaging SDK has been developed and provided to
www.rasteredge.com
control software platform:VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
you can choose to show your PPT presentation in inverted clip art or screenshot to PowerPoint document slide & profession imaging controls, PDF document, image
www.rasteredge.com
Sharding In Use
Connect to the mongos server (or cluster)
Interact with the database as usual
Data automatically moved between shards
Reads automatically routed based on key
23
control software platform:VB.NET PowerPoint: Merge and Split PowerPoint Document(s) with PPT
individual slide is with the virtual presentation of PPTXPage in VB.NET to finish PowerPoint document splitting If you want to see more PDF processing functions
www.rasteredge.com
control software platform:C# Create PDF from OpenOffice to convert odt, odp files to PDF in
using RasterEdge.XDoc.Excel; using RasterEdge.XDoc.PowerPoint; How to Use C#.NET Demo Code to Convert ODT to PDF in C#.NET Project.
www.rasteredge.com
Sharding In Use
If a query includes the shard key, it will be 
routed directly to the appropriate server
If a query does not include the shard key 
(or uses a range), the query will be sent to 
multiple servers and the results merged in 
the mongos process
24
control software platform:C# PDF Text Extract Library: extract text content from PDF file in
But sometimes, we need to extract or fetch text content from source PDF document file for word processing, presentation and desktop publishing applications.
www.rasteredge.com
control software platform:VB.NET PowerPoint: VB Codes to Create Linear and 2D Barcodes on
2d barcodes of different types on PowerPoint presentation when you Here is a market-leading PowerPoint barcode add 2d barcodes QR Code, Data Matrix, PDF-417,
www.rasteredge.com
Sharding Demo
Let's see it running!
25
control software platform:VB.NET Create PDF from OpenOffice to convert odt, odp files to PDF
using RasterEdge.XDoc.Word; using RasterEdge.XDoc.Excel; using RasterEdge.XDoc.PowerPoint; How to VB.NET: Convert ODT to PDF.
www.rasteredge.com
control software platform:VB.NET PowerPoint: Add Image to PowerPoint Document Slide/Page
image or clip art to your PowerPoint presentation in VB insert or delete any certain PowerPoint slide without & profession imaging controls, PDF document, tiff
www.rasteredge.com
Agenda
Scaling MongoDB - Concepts
Replica Sets & Sharding
Read Preference, Write Concern, Etc
Map/Reduce
Aggregation
26
Read Preference
Normally all reads go to the primary
Just like writes
As we saw, you cannot normally read from 
a secondary unless you explicitly allow it
Sometimes you want to spread the read 
load or read from nearby servers (in a 
geographically distributed cluster)
27
Read Preference
Available options:
primary - default
primaryPreferred
secondary
secondaryPreferred
nearest
28
Read Preference
Secondaries can return stale data!
Can specify preference
Per connection
Per collection
Per operation
Not currently supported by cfmongodb
29
Write Concern
By default, receipt of a write command is 
acknowledged by the server (but may not 
yet have been written to disk)
You can control what operations you wait 
for before a write command returns
30
Documents you may be interested
Documents you may be interested