com presentations: Added the sharding talk for Big Data Con.: mongo-geo-mongostockholm13.xml mongo-geo-stockholm13.xml mongo-sharding-bigdatacon13.xml
slides/mongodb/acquire-lock.png slides/mongodb/add-shard.png slides/mongodb/balancing.png slides/mongodb/chunk-is-range.png
slides/mongodb/chunk-splitting.png slides/mongodb/commit-migration.png slides/mongodb/config-server.png slides/mongodb/example-setup.png
slides/mongodb/manages.png slides/mong

From: Date: Thu, 18 Apr 2013 12:45:17 +0000
Subject: com presentations: Added the sharding talk for Big Data Con.: mongo-geo-mongostockholm13.xml mongo-geo-stockholm13.xml mongo-sharding-bigdatacon13.xml
slides/mongodb/acquire-lock.png slides/mongodb/add-shard.png slides/mongodb/balancing.png slides/mongodb/chunk-is-range.png
slides/mongodb/chunk-splitting.png slides/mongodb/commit-migration.png slides/mongodb/config-server.png slides/mongodb/example-setup.png
slides/mongodb/manages.png slides/mong
Groups: php.pres 
Request: Send a blank email to pres+get-1881@lists.php.net to get a copy of this message
Commit: ecc9520f73455d480356135b74c77e30e3cbe5e1 Author: Derick Rethans <github@derickrethans.nl> Thu, 18 Apr 2013 13:45:17 +0100 Parents: 58f4148ca2ae96e4b187784cbb8e5e9e9fb2d5f3 Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=ecc9520f73455d480356135b74c77e30e3cbe5e1 Log: Added the sharding talk for Big Data Con. Changed paths: D mongo-geo-mongostockholm13.xml A mongo-geo-stockholm13.xml A mongo-sharding-bigdatacon13.xml A slides/mongodb/acquire-lock.png A slides/mongodb/add-shard.png A slides/mongodb/balancing.png A slides/mongodb/chunk-is-range.png A slides/mongodb/chunk-splitting.png A slides/mongodb/commit-migration.png A slides/mongodb/config-server.png A slides/mongodb/example-setup.png A slides/mongodb/manages.png A slides/mongodb/mongos-es.png A slides/mongodb/move-chunk.png A slides/mongodb/move-cleanup.png A slides/mongodb/nontargetted-sort.png A slides/mongodb/nontargetted-sort1.png A slides/mongodb/nontargetted-sort2.png A slides/mongodb/nontargetted-sort3.png A slides/mongodb/nontargetted-sort4.png A slides/mongodb/nontargetted-sort5.png A slides/mongodb/nontargetted-sort6.png A slides/mongodb/nontargetted.png A slides/mongodb/nontargetted1.png A slides/mongodb/nontargetted2.png A slides/mongodb/nontargetted3.png A slides/mongodb/nontargetted4.png A slides/mongodb/partition.png A slides/mongodb/shard-types.png A slides/mongodb/sharding-acquire-lock.xml A slides/mongodb/sharding-add-shard.xml A slides/mongodb/sharding-agenda.xml A slides/mongodb/sharding-architecture.xml A slides/mongodb/sharding-auto-shard..xml A slides/mongodb/sharding-balancing.xml A slides/mongodb/sharding-chunk-is-range.xml A slides/mongodb/sharding-chunk-splitting.xml A slides/mongodb/sharding-chunks.xml A slides/mongodb/sharding-cleanup.xml A slides/mongodb/sharding-commit-migration.xml A slides/mongodb/sharding-config-server.xml A slides/mongodb/sharding-configuration.xml A slides/mongodb/sharding-data-store-now.xml A slides/mongodb/sharding-data-store-old.xml A slides/mongodb/sharding-enable.xml A slides/mongodb/sharding-example-setup.xml A slides/mongodb/sharding-horizontal-scale.xml A slides/mongodb/sharding-horizontal.png A slides/mongodb/sharding-infrastructure.png A slides/mongodb/sharding-infrastructure.xml A slides/mongodb/sharding-key-considerations..xml A slides/mongodb/sharding-key-title.xml A slides/mongodb/sharding-manages.xml A slides/mongodb/sharding-mechanics.xml A slides/mongodb/sharding-mongo-approach.xml A slides/mongodb/sharding-mongos-manages.xml A slides/mongodb/sharding-move-chunk.xml A slides/mongodb/sharding-non-targeted-query.xml A slides/mongodb/sharding-non-targeted-query1.xml A slides/mongodb/sharding-non-targeted-query2.xml A slides/mongodb/sharding-non-targeted-query3.xml A slides/mongodb/sharding-non-targeted-query4.xml A slides/mongodb/sharding-non-targeted-with-sort-query.xml A slides/mongodb/sharding-non-targeted-with-sort-query1.xml A slides/mongodb/sharding-non-targeted-with-sort-query2.xml A slides/mongodb/sharding-non-targeted-with-sort-query3.xml A slides/mongodb/sharding-non-targeted-with-sort-query4.xml A slides/mongodb/sharding-non-targeted-with-sort-query5.xml A slides/mongodb/sharding-non-targeted-with-sort-query6.xml A slides/mongodb/sharding-partition.xml A slides/mongodb/sharding-partitioning.xml A slides/mongodb/sharding-routing-types.xml A slides/mongodb/sharding-routing.xml A slides/mongodb/sharding-shard-key.xml A slides/mongodb/sharding-shard.xml A slides/mongodb/sharding-start-config.xml A slides/mongodb/sharding-start-db.xml A slides/mongodb/sharding-start-mongos.xml A slides/mongodb/sharding-targeted-query.xml A slides/mongodb/sharding-targeted-query1.xml A slides/mongodb/sharding-targeted-query2.xml A slides/mongodb/sharding-targeted-query3.xml A slides/mongodb/sharding-targeted-query4.xml A slides/mongodb/sharding-the-story.xml A slides/mongodb/sharding-throughput.xml A slides/mongodb/sharding-verify-added.xml A slides/mongodb/sharding-vertical-scale.xml A slides/mongodb/sharding-vertical.png A slides/mongodb/sharding-why.xml A slides/mongodb/sharding-working-set.xml A slides/mongodb/start-database.png A slides/mongodb/start-mongos.png A slides/mongodb/start-server.png A slides/mongodb/targetted.png A slides/mongodb/targetted1.png A slides/mongodb/targetted2.png A slides/mongodb/targetted3.png A slides/mongodb/targetted4.png A slides/mongodb/throughput.png A slides/mongodb/verify-added.png A slides/mongodb/working-set.png

diff --git a/mongo-geo-mongostockholm13.xml b/mongo-geo-mongostockholm13.xml deleted file mode 100644 index 1b39434..0000000 --- a/mongo-geo-mongostockholm13.xml +++ /dev/null @@ -1,217 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<presentation css="10gen-strict.css"> -<topic>MongoDB</topic> -<title>Finding a Pub with MongoDB 2.4 Geo Features</title> -<event>MongoDB Stockholm</event> -<location>Stockholm, Sweden</location> -<date>May 3rd, 2013</date> -<speaker>Derick Rethans</speaker> -<email>derick@10gen.com</email> -<twitter>derickr</twitter> -<joindin>http://derickrethans.nl/talks/mongo-geo-stockholm13</joindin> - -<slide>slides/mongodb/title.xml</slide> - -<slide>slides/mongodb/closed-pub.xml</slide> -<!-- A few words about our dataset --> -<slide>slides/mongodb/few-words-about-osm.xml</slide> -<!-- Introduction, what is geo --> - -<!-- GEO in 2.2 - Planar with occasional spherical distance - $nearSphere, $centerSphere - Limited spherical behavior (wrapping) - Indexes only points - $near(Sphere) finds Points near a point - $geoWithin finds points within a circle or a polygon - Index required for everything - - Index type: 2d ---> -<slide>slides/mongodb/geo-2.2.xml</slide> - -<!-- - Lines and Polygons and points can be indexed. - - Multiple geo fields can be indexed. - Find me air routes where the start is within 50mi of NYC and the end points is within 50mi of Miami - Geo fields fully indexed in 2dsphere, only one indexed in 2d - Geo field doesn't have to be first indexed field. - Speeds up certain queries a lot. - No driver changes needed, since only added new queries. ---> -<slide>slides/mongodb/introducing-2dsphere.xml</slide> -<slide>slides/mongodb/flat-vs-sphere.xml</slide> - -<!-- DATA STORAGE --> -<!-- - No more [ lon, lat ], but geojson instead - -SAY WHERE ELSE GeoJson is used ---> -<slide>slides/mongodb/geojson.xml</slide> - -<!-- - POINT: - show an image, and the GeoJson under ---> -<slide>slides/mongodb/geojson-point.xml</slide> -<!-- - LINESTRING: - show an image, and the GeoJson under ---> -<slide>slides/mongodb/geojson-linestring.xml</slide> -<!-- - POLYGON: - show an image, and the GeoJson under ---> -<slide>slides/mongodb/geojson-polygon.xml</slide> - -<!-- - CELLS, - We divide the surface of the earth into cells - A library called S2 from Google does the hard work - Cells have a level which define the size of the cell. - S2 provides 31 levels - The higher the level, the smaller the cell, and therefore the more needed to cover the earth - By default, we use all levels between 500m on a side and 100km on a side ---> -<slide>slides/mongodb/cells.xml</slide> -<!-- - Show grid over the UK - Explain coverings - highlight scotland ---> -<slide>slides/mongodb/cells-level3-example-uk-1.xml</slide> -<!-- - Coverings are a set of cells that cover a geometry - The last slide had a very coarse covering of North America - Coverings are the basis of the 2dsphere index. ---> -<slide>slides/mongodb/cells-coverings.xml</slide> -<slide>slides/mongodb/cells-level3-example-uk-2.xml</slide> -<slide>slides/mongodb/cells-level3-example-uk-3.xml</slide> -<slide>slides/mongodb/cells-level3-example-uk-4.xml</slide> - -<!-- - Show grid of (part of) London: - - Point, Westminster palace - - Line, Oxford Street - - Polygon, Hyde Park ---> -<slide>slides/mongodb/cells-level10-example-london-1.xml</slide> -<slide>slides/mongodb/cells-level10-example-london-2.xml</slide> -<slide>slides/mongodb/cells-level10-example-london-3.xml</slide> - - -<!-- operators - $near - find stuff near a point - index required - $geoWithin - find stuff within a polygon/circle - index NOT required - $geoIntersects - find stuff that intersects with other stuff - index NOT required - ---> -<slide>slides/mongodb/geo-in-2.4.xml</slide> - -<!-- near - - Example with road and park - - slide with index/no index, and comparsion with 2.2? ---> -<!-- geoWithin - - Example with road and park - - slide with index/no index, and comparsion with 2.2? ---> -<!-- geoIntersects - - Example with road and park - - slide with index/no index, and comparsion with 2.2? ---> -<slide>slides/mongodb/geo-near.xml</slide> - -<!-- - NEAR - - Starts from a point - Looks at concentric donuts from that point - Want to look at documents within the donut - If distance from query point to document is within the donut, output - Adapts size of the donut as needed ---> -<slide>slides/mongodb/geo-near-explanation-0.xml</slide> -<slide>slides/mongodb/geo-near-explanation-1.xml</slide> -<slide>slides/mongodb/geo-near-explanation-2.xml</slide> -<slide>slides/mongodb/geo-near-explanation-3.xml</slide> -<slide>slides/mongodb/geo-near-explanation-4.xml</slide> -<slide>slides/mongodb/geo-near-explanation-5.xml</slide> -<slide>slides/mongodb/geo-near-explanation-6.xml</slide> -<slide>slides/mongodb/geo-near-explanation-7.xml</slide> - -<!-- - GeoWithin/GeoIntersecs - - Generate a covering for geometry in query - Look at all points in all overlapping cells - Cells may be larger or smaller than our covering - Must look at cells that contain our covering - Must look at cells that we contain - See if documents are within or intersect our query geometry - - Show examples of: - - within: The Palace of Westminster (point) in "City of Westminster" (polygon) - - intersect: thames (line) crossing London (polygon) ---> -<slide>slides/mongodb/geo-within.xml</slide> -<slide>slides/mongodb/geo-within-intersects-explanation.xml</slide> -<slide>slides/mongodb/geo-within-1.xml</slide> -<slide>slides/mongodb/geo-within-2.xml</slide> - -<slide>slides/mongodb/geo-intersects.xml</slide> -<slide>slides/mongodb/geo-intersects-1.xml</slide> - - -<!-- -Without index: - $near - Look at every point - Sort by distance - Very slow, so requires an index. - $geoWithin - Look at every document - Is it within the query polygon? - Order is arbitrary - $geoIntersects - Look at every document - Does it intersect with the query geometry? - Order is arbitrary ---> -<!-- AGGREGATION: - - - show tube stations per borough - - show pubs by borough - -http://docs.mongodb.org/manual/reference/aggregation/#stage._S_geoNear - -- distance is important -- $geoNear in aggregation can't deal with more than one 2dsphere index -- spherical option is *required* when using a 2dsphere index ---> -<slide>slides/mongodb/geo-aggregation.xml</slide> -<slide>slides/mongodb/geo-aggregation2.xml</slide> - -<!-- SHOW EXAMPLE OF: - - MULTIPLE GEO FIELDS - - compound keys with: - normal first, geo second - geo first, normal second ---> -<slide>slides/mongodb/geo-indexes.xml</slide> - -<slide>slides/mongodb/summary.xml</slide> - -<slide>slides/mongodb/resources.xml</slide> - -</presentation> diff --git a/mongo-geo-stockholm13.xml b/mongo-geo-stockholm13.xml new file mode 100644 index 0000000..1b39434 --- /dev/null +++ b/mongo-geo-stockholm13.xml @@ -0,0 +1,217 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Finding a Pub with MongoDB 2.4 Geo Features</title> +<event>MongoDB Stockholm</event> +<location>Stockholm, Sweden</location> +<date>May 3rd, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/mongo-geo-stockholm13</joindin> + +<slide>slides/mongodb/title.xml</slide> + +<slide>slides/mongodb/closed-pub.xml</slide> +<!-- A few words about our dataset --> +<slide>slides/mongodb/few-words-about-osm.xml</slide> +<!-- Introduction, what is geo --> + +<!-- GEO in 2.2 + Planar with occasional spherical distance + $nearSphere, $centerSphere + Limited spherical behavior (wrapping) + Indexes only points + $near(Sphere) finds Points near a point + $geoWithin finds points within a circle or a polygon + Index required for everything + + Index type: 2d +--> +<slide>slides/mongodb/geo-2.2.xml</slide> + +<!-- + Lines and Polygons and points can be indexed. + + Multiple geo fields can be indexed. + Find me air routes where the start is within 50mi of NYC and the end points is within 50mi of Miami + Geo fields fully indexed in 2dsphere, only one indexed in 2d + Geo field doesn't have to be first indexed field. + Speeds up certain queries a lot. + No driver changes needed, since only added new queries. +--> +<slide>slides/mongodb/introducing-2dsphere.xml</slide> +<slide>slides/mongodb/flat-vs-sphere.xml</slide> + +<!-- DATA STORAGE --> +<!-- + No more [ lon, lat ], but geojson instead + +SAY WHERE ELSE GeoJson is used +--> +<slide>slides/mongodb/geojson.xml</slide> + +<!-- + POINT: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-point.xml</slide> +<!-- + LINESTRING: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-linestring.xml</slide> +<!-- + POLYGON: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-polygon.xml</slide> + +<!-- + CELLS, + We divide the surface of the earth into cells + A library called S2 from Google does the hard work + Cells have a level which define the size of the cell. + S2 provides 31 levels + The higher the level, the smaller the cell, and therefore the more needed to cover the earth + By default, we use all levels between 500m on a side and 100km on a side +--> +<slide>slides/mongodb/cells.xml</slide> +<!-- + Show grid over the UK + Explain coverings + highlight scotland +--> +<slide>slides/mongodb/cells-level3-example-uk-1.xml</slide> +<!-- + Coverings are a set of cells that cover a geometry + The last slide had a very coarse covering of North America + Coverings are the basis of the 2dsphere index. +--> +<slide>slides/mongodb/cells-coverings.xml</slide> +<slide>slides/mongodb/cells-level3-example-uk-2.xml</slide> +<slide>slides/mongodb/cells-level3-example-uk-3.xml</slide> +<slide>slides/mongodb/cells-level3-example-uk-4.xml</slide> + +<!-- + Show grid of (part of) London: + - Point, Westminster palace + - Line, Oxford Street + - Polygon, Hyde Park +--> +<slide>slides/mongodb/cells-level10-example-london-1.xml</slide> +<slide>slides/mongodb/cells-level10-example-london-2.xml</slide> +<slide>slides/mongodb/cells-level10-example-london-3.xml</slide> + + +<!-- operators + $near + find stuff near a point + index required + $geoWithin + find stuff within a polygon/circle + index NOT required + $geoIntersects + find stuff that intersects with other stuff + index NOT required + +--> +<slide>slides/mongodb/geo-in-2.4.xml</slide> + +<!-- near + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<!-- geoWithin + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<!-- geoIntersects + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<slide>slides/mongodb/geo-near.xml</slide> + +<!-- + NEAR + + Starts from a point + Looks at concentric donuts from that point + Want to look at documents within the donut + If distance from query point to document is within the donut, output + Adapts size of the donut as needed +--> +<slide>slides/mongodb/geo-near-explanation-0.xml</slide> +<slide>slides/mongodb/geo-near-explanation-1.xml</slide> +<slide>slides/mongodb/geo-near-explanation-2.xml</slide> +<slide>slides/mongodb/geo-near-explanation-3.xml</slide> +<slide>slides/mongodb/geo-near-explanation-4.xml</slide> +<slide>slides/mongodb/geo-near-explanation-5.xml</slide> +<slide>slides/mongodb/geo-near-explanation-6.xml</slide> +<slide>slides/mongodb/geo-near-explanation-7.xml</slide> + +<!-- + GeoWithin/GeoIntersecs + + Generate a covering for geometry in query + Look at all points in all overlapping cells + Cells may be larger or smaller than our covering + Must look at cells that contain our covering + Must look at cells that we contain + See if documents are within or intersect our query geometry + + Show examples of: + - within: The Palace of Westminster (point) in "City of Westminster" (polygon) + - intersect: thames (line) crossing London (polygon) +--> +<slide>slides/mongodb/geo-within.xml</slide> +<slide>slides/mongodb/geo-within-intersects-explanation.xml</slide> +<slide>slides/mongodb/geo-within-1.xml</slide> +<slide>slides/mongodb/geo-within-2.xml</slide> + +<slide>slides/mongodb/geo-intersects.xml</slide> +<slide>slides/mongodb/geo-intersects-1.xml</slide> + + +<!-- +Without index: + $near + Look at every point + Sort by distance + Very slow, so requires an index. + $geoWithin + Look at every document + Is it within the query polygon? + Order is arbitrary + $geoIntersects + Look at every document + Does it intersect with the query geometry? + Order is arbitrary +--> +<!-- AGGREGATION: + + - show tube stations per borough + - show pubs by borough + +http://docs.mongodb.org/manual/reference/aggregation/#stage._S_geoNear + +- distance is important +- $geoNear in aggregation can't deal with more than one 2dsphere index +- spherical option is *required* when using a 2dsphere index +--> +<slide>slides/mongodb/geo-aggregation.xml</slide> +<slide>slides/mongodb/geo-aggregation2.xml</slide> + +<!-- SHOW EXAMPLE OF: + - MULTIPLE GEO FIELDS + - compound keys with: + normal first, geo second + geo first, normal second +--> +<slide>slides/mongodb/geo-indexes.xml</slide> + +<slide>slides/mongodb/summary.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/mongo-sharding-bigdatacon13.xml b/mongo-sharding-bigdatacon13.xml new file mode 100644 index 0000000..ae99d9d --- /dev/null +++ b/mongo-sharding-bigdatacon13.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Sharding with MongoDB</title> +<event>BigDataCon</event> +<location>Mainz, Germany</location> +<date>April 23rd, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/mongo-sharding-bigdatacon13</joindin> + +<slide>slides/mongodb/title.xml</slide> +<slide>slides/mongodb/sharding-agenda.xml</slide> +<slide>slides/mongodb/sharding-the-story.xml</slide> +<slide>slides/mongodb/sharding-vertical-scale.xml</slide> +<slide>slides/mongodb/sharding-horizontal-scale.xml</slide> +<slide>slides/mongodb/sharding-data-store-old.xml</slide> +<slide>slides/mongodb/sharding-data-store-now.xml</slide> +<slide>slides/mongodb/sharding-why.xml</slide> +<slide>slides/mongodb/sharding-working-set.xml</slide> +<slide>slides/mongodb/sharding-throughput.xml</slide> +<slide>slides/mongodb/sharding-mongo-approach.xml</slide> +<slide>slides/mongodb/sharding-partition.xml</slide> +<slide>slides/mongodb/sharding-chunks.xml</slide> +<slide>slides/mongodb/sharding-manages.xml</slide> +<slide>slides/mongodb/sharding-auto-shard.xml</slide> +<slide>slides/mongodb/sharding-architecture.xml</slide> +<slide>slides/mongodb/sharding-shard.xml</slide> +<slide>slides/mongodb/sharding-config-server.xml</slide> +<slide>slides/mongodb/sharding-mongos-manages.xml</slide> +<slide>slides/mongodb/sharding-infrastructure.xml</slide> +<slide>slides/mongodb/sharding-configuration.xml</slide> +<slide>slides/mongodb/sharding-example-setup.xml</slide> +<slide>slides/mongodb/sharding-start-config.xml</slide> +<slide>slides/mongodb/sharding-start-mongos.xml</slide> +<slide>slides/mongodb/sharding-start-db.xml</slide> +<slide>slides/mongodb/sharding-add-shard.xml</slide> +<slide>slides/mongodb/sharding-verify-added.xml</slide> +<slide>slides/mongodb/sharding-enable.xml</slide> +<slide>slides/mongodb/sharding-key-title.xml</slide> +<slide>slides/mongodb/sharding-shard-key.xml</slide> +<slide>slides/mongodb/sharding-key-considerations.xml</slide> +<slide>slides/mongodb/sharding-mechanics.xml</slide> +<slide>slides/mongodb/sharding-partitioning.xml</slide> +<slide>slides/mongodb/sharding-chunk-is-range.xml</slide> +<slide>slides/mongodb/sharding-chunk-splitting.xml</slide> +<slide>slides/mongodb/sharding-balancing.xml</slide> +<slide>slides/mongodb/sharding-acquire-lock.xml</slide> +<slide>slides/mongodb/sharding-move-chunk.xml</slide> +<slide>slides/mongodb/sharding-commit-migration.xml</slide> +<slide>slides/mongodb/sharding-cleanup.xml</slide> +<slide>slides/mongodb/sharding-routing.xml</slide> +<slide>slides/mongodb/sharding-routing-types.xml</slide> +<slide>slides/mongodb/sharding-targeted-query.xml</slide> +<slide>slides/mongodb/sharding-targeted-query1.xml</slide> +<slide>slides/mongodb/sharding-targeted-query2.xml</slide> +<slide>slides/mongodb/sharding-targeted-query3.xml</slide> +<slide>slides/mongodb/sharding-targeted-query4.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-query.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-query1.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-query2.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-query3.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-query4.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-with-sort-query.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-with-sort-query1.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-with-sort-query2.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-with-sort-query3.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-with-sort-query4.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-with-sort-query5.xml</slide> +<slide>slides/mongodb/sharding-non-targeted-with-sort-query6.xml</slide> + + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/mongodb/acquire-lock.png b/slides/mongodb/acquire-lock.png new file mode 100644 index 0000000..7b6bc2b Binary files /dev/null and b/slides/mongodb/acquire-lock.png differ diff --git a/slides/mongodb/add-shard.png b/slides/mongodb/add-shard.png new file mode 100644 index 0000000..48681e7 Binary files /dev/null and b/slides/mongodb/add-shard.png differ diff --git a/slides/mongodb/balancing.png b/slides/mongodb/balancing.png new file mode 100644 index 0000000..5f8e292 Binary files /dev/null and b/slides/mongodb/balancing.png differ diff --git a/slides/mongodb/chunk-is-range.png b/slides/mongodb/chunk-is-range.png new file mode 100644 index 0000000..0debccb Binary files /dev/null and b/slides/mongodb/chunk-is-range.png differ diff --git a/slides/mongodb/chunk-splitting.png b/slides/mongodb/chunk-splitting.png new file mode 100644 index 0000000..433b487 Binary files /dev/null and b/slides/mongodb/chunk-splitting.png differ diff --git a/slides/mongodb/commit-migration.png b/slides/mongodb/commit-migration.png new file mode 100644 index 0000000..d69231f Binary files /dev/null and b/slides/mongodb/commit-migration.png differ diff --git a/slides/mongodb/config-server.png b/slides/mongodb/config-server.png new file mode 100644 index 0000000..9130e42 Binary files /dev/null and b/slides/mongodb/config-server.png differ diff --git a/slides/mongodb/example-setup.png b/slides/mongodb/example-setup.png new file mode 100644 index 0000000..c7c00dd Binary files /dev/null and b/slides/mongodb/example-setup.png differ diff --git a/slides/mongodb/manages.png b/slides/mongodb/manages.png new file mode 100644 index 0000000..2d0ec53 Binary files /dev/null and b/slides/mongodb/manages.png differ diff --git a/slides/mongodb/mongos-es.png b/slides/mongodb/mongos-es.png new file mode 100644 index 0000000..3c025cb Binary files /dev/null and b/slides/mongodb/mongos-es.png differ diff --git a/slides/mongodb/move-chunk.png b/slides/mongodb/move-chunk.png new file mode 100644 index 0000000..1811de6 Binary files /dev/null and b/slides/mongodb/move-chunk.png differ diff --git a/slides/mongodb/move-cleanup.png b/slides/mongodb/move-cleanup.png new file mode 100644 index 0000000..839af5f Binary files /dev/null and b/slides/mongodb/move-cleanup.png differ diff --git a/slides/mongodb/nontargetted-sort.png b/slides/mongodb/nontargetted-sort.png new file mode 100644 index 0000000..8adb816 Binary files /dev/null and b/slides/mongodb/nontargetted-sort.png differ diff --git a/slides/mongodb/nontargetted-sort1.png b/slides/mongodb/nontargetted-sort1.png new file mode 100644 index 0000000..927484b Binary files /dev/null and b/slides/mongodb/nontargetted-sort1.png differ diff --git a/slides/mongodb/nontargetted-sort2.png b/slides/mongodb/nontargetted-sort2.png new file mode 100644 index 0000000..d80d320 Binary files /dev/null and b/slides/mongodb/nontargetted-sort2.png differ diff --git a/slides/mongodb/nontargetted-sort3.png b/slides/mongodb/nontargetted-sort3.png new file mode 100644 index 0000000..4f59c99 Binary files /dev/null and b/slides/mongodb/nontargetted-sort3.png differ diff --git a/slides/mongodb/nontargetted-sort4.png b/slides/mongodb/nontargetted-sort4.png new file mode 100644 index 0000000..7d08237 Binary files /dev/null and b/slides/mongodb/nontargetted-sort4.png differ diff --git a/slides/mongodb/nontargetted-sort5.png b/slides/mongodb/nontargetted-sort5.png new file mode 100644 index 0000000..ff26982 Binary files /dev/null and b/slides/mongodb/nontargetted-sort5.png differ diff --git a/slides/mongodb/nontargetted-sort6.png b/slides/mongodb/nontargetted-sort6.png new file mode 100644 index 0000000..876832d Binary files /dev/null and b/slides/mongodb/nontargetted-sort6.png differ diff --git a/slides/mongodb/nontargetted.png b/slides/mongodb/nontargetted.png new file mode 100644 index 0000000..fc524ef Binary files /dev/null and b/slides/mongodb/nontargetted.png differ diff --git a/slides/mongodb/nontargetted1.png b/slides/mongodb/nontargetted1.png new file mode 100644 index 0000000..1d87f15 Binary files /dev/null and b/slides/mongodb/nontargetted1.png differ diff --git a/slides/mongodb/nontargetted2.png b/slides/mongodb/nontargetted2.png new file mode 100644 index 0000000..750d9c9 Binary files /dev/null and b/slides/mongodb/nontargetted2.png differ diff --git a/slides/mongodb/nontargetted3.png b/slides/mongodb/nontargetted3.png new file mode 100644 index 0000000..cb6f4a1 Binary files /dev/null and b/slides/mongodb/nontargetted3.png differ diff --git a/slides/mongodb/nontargetted4.png b/slides/mongodb/nontargetted4.png new file mode 100644 index 0000000..017b68c Binary files /dev/null and b/slides/mongodb/nontargetted4.png differ diff --git a/slides/mongodb/partition.png b/slides/mongodb/partition.png new file mode 100644 index 0000000..a63cda5 Binary files /dev/null and b/slides/mongodb/partition.png differ diff --git a/slides/mongodb/shard-types.png b/slides/mongodb/shard-types.png new file mode 100644 index 0000000..81ed194 Binary files /dev/null and b/slides/mongodb/shard-types.png differ diff --git a/slides/mongodb/sharding-acquire-lock.xml b/slides/mongodb/sharding-acquire-lock.xml new file mode 100644 index 0000000..b6cf4a3 --- /dev/null +++ b/slides/mongodb/sharding-acquire-lock.xml @@ -0,0 +1,16 @@ +<slide> +<title>Acquiring the Balancer lock</title> + +<image filename="acquire-lock.png"/> + +<list> + <bullet>The balancer on mongos takes out a "balancer" lock</bullet> + <bullet> + To see the status of these locks: + <list> + <bullet>%use config%</bullet> + <bullet>%db.locks.find({ _id: "balancer" })%</bullet> + </list> + </bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-add-shard.xml b/slides/mongodb/sharding-add-shard.xml new file mode 100644 index 0000000..061a234 --- /dev/null +++ b/slides/mongodb/sharding-add-shard.xml @@ -0,0 +1,11 @@ +<slide> +<title>Add the shard</title> + +<image filename="add-shard.png"/> + +<list> + <bullet>On mongos:<br/>%sh.addShard('&amp;lt;host&amp;gt;:27018')%</bullet> + <bullet>Adding a replica set:<br/>%sh.addShard('&amp;lt;rsname&amp;gt;/&amp;lt;seedlist&amp;gt;')%</bullet> + <bullet>In 2.2 and later can use:<br/>%sh.addShard('&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;')%</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-agenda.xml b/slides/mongodb/sharding-agenda.xml new file mode 100644 index 0000000..3a97298 --- /dev/null +++ b/slides/mongodb/sharding-agenda.xml @@ -0,0 +1,13 @@ +<slide type="agenda"> +<title>Agenda</title> + +<list> + <bullet>Short history of scaling data</bullet> + <bullet>Why shard</bullet> + <bullet>MongoDB's approach</bullet> + <bullet>Architecture</bullet> + <bullet>Configuration</bullet> + <bullet>Mechanics</bullet> + <bullet>Solutions</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-architecture.xml b/slides/mongodb/sharding-architecture.xml new file mode 100644 index 0000000..b42d6fc --- /dev/null +++ b/slides/mongodb/sharding-architecture.xml @@ -0,0 +1,3 @@ +<slide type="section"> +<blurb>Architecture</blurb> +</slide> diff --git a/slides/mongodb/sharding-auto-shard.xml b/slides/mongodb/sharding-auto-shard.xml new file mode 100644 index 0000000..808ceb5 --- /dev/null +++ b/slides/mongodb/sharding-auto-shard.xml @@ -0,0 +1,18 @@ +<slide> +<title>MongoDB Auto-Sharding</title> + +<list> + <bullet>Minimal effort required + <list> + <bullet>Same interface as single mongod</bullet> + </list> + </bullet> + <bullet> + Two steps + <list> + <bullet>Enable Sharding for a database</bullet> + <bullet>Shard collection within database</bullet> + </list> + </bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-balancing.xml b/slides/mongodb/sharding-balancing.xml new file mode 100644 index 0000000..00fc2f0 --- /dev/null +++ b/slides/mongodb/sharding-balancing.xml @@ -0,0 +1,10 @@ +<slide> +<title>Balancing</title> + +<image filename="balancing.png"/> + +<list> + <bullet>Balancer is running on mongos</bullet> + <bullet>Once the difference in chunks between the most dense shard and the least dense shard is above the migration threshold, a balancing round starts</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-chunk-is-range.xml b/slides/mongodb/sharding-chunk-is-range.xml new file mode 100644 index 0000000..1384448 --- /dev/null +++ b/slides/mongodb/sharding-chunk-is-range.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="chunk-is-range.png"/> +<break lines="3"/> +<blurb align="center">Chunk is a section of an entire range</blurb> +</slide> diff --git a/slides/mongodb/sharding-chunk-splitting.xml b/slides/mongodb/sharding-chunk-splitting.xml new file mode 100644 index 0000000..cbbc214 --- /dev/null +++ b/slides/mongodb/sharding-chunk-splitting.xml @@ -0,0 +1,13 @@ +<slide> +<title>Chunk splitting</title> + +<image filename="chunk-splitting.png"/> +<break/> + +<list> + <bullet>A chunk is split once it exceeds the maximum size</bullet> + <bullet>There is no split point if all documents have the same shard key</bullet> + <bullet>Chunk split is a logical operation (no data is moved)</bullet> + <bullet>If split creates too large of a discrepancy of chunk count across cluster a balancing round starts</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-chunks.xml b/slides/mongodb/sharding-chunks.xml new file mode 100644 index 0000000..c677b1e --- /dev/null +++ b/slides/mongodb/sharding-chunks.xml @@ -0,0 +1,11 @@ +<slide> +<title>Distribute data in chunks across nodes</title> + +<list> + <bullet>Initially 1 chunk</bullet> + <bullet>Default max chunk size: 64mb</bullet> + <bullet>MongoDB automatically splits &amp; migrates chunks when max reached</bullet> +</list> + +<image filename="chunks.png"/> +</slide> diff --git a/slides/mongodb/sharding-cleanup.xml b/slides/mongodb/sharding-cleanup.xml new file mode 100644 index 0000000..a1b057a --- /dev/null +++ b/slides/mongodb/sharding-cleanup.xml @@ -0,0 +1,15 @@ +<slide> +<title>Cleanup</title> + +<image filename="move-cleanup.png"/> + +<list> + <bullet> + Source shard deletes moved data + <list> + <bullet>Must wait for open cursors to either close or time out</bullet> + </list> + </bullet> + <bullet>Mongos releases balancer lock after old chunks are deleted</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-commit-migration.xml b/slides/mongodb/sharding-commit-migration.xml new file mode 100644 index 0000000..b9cd918 --- /dev/null +++ b/slides/mongodb/sharding-commit-migration.xml @@ -0,0 +1,10 @@ +<slide> +<title>Committing Migration</title> + +<image filename="commit-migration.png"/> + +<list> + <bullet>When complete, destination shard updates config server</bullet> + <bullet>Provides new locations of the chunks</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-config-server.xml b/slides/mongodb/sharding-config-server.xml new file mode 100644 index 0000000..4c48d0a --- /dev/null +++ b/slides/mongodb/sharding-config-server.xml @@ -0,0 +1,18 @@ +<slide> +<title>Config server stores meta data</title> + +<list> + <bullet> + Config Server + <list> + <bullet>Stores cluster chunk ranges and locations</bullet> + <bullet>Can have only 1 or 3 (production must have 3)</bullet> + <bullet>Two phase commit (not a replica set)</bullet> + </list> + </bullet> +</list> + +<break lines="2"/> + +<image filename="config-server.png"/> +</slide> diff --git a/slides/mongodb/sharding-configuration.xml b/slides/mongodb/sharding-configuration.xml new file mode 100644 index 0000000..589e26b --- /dev/null +++ b/slides/mongodb/sharding-configuration.xml @@ -0,0 +1,3 @@ +<slide type="section"> +<blurb>Configuration</blurb> +</slide> diff --git a/slides/mongodb/sharding-data-store-now.xml b/slides/mongodb/sharding-data-store-now.xml new file mode 100644 index 0000000..630b5a1 --- /dev/null +++ b/slides/mongodb/sharding-data-store-now.xml @@ -0,0 +1,19 @@ +<slide> +<title>Data Store Scalability Today</title> + +<list> + <bullet> + MongoDB auto-sharding available in 2009 + </bullet> + <bullet> + A data store that is + <list> + <bullet>Free</bullet> + <bullet>Publicly available</bullet> + <bullet>Open source (https://github.com/mongodb/mongo)</bullet> + <bullet>Horizontally scalable</bullet> + <bullet>Application independent</bullet> + </list> + </bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-data-store-old.xml b/slides/mongodb/sharding-data-store-old.xml new file mode 100644 index 0000000..0835142 --- /dev/null +++ b/slides/mongodb/sharding-data-store-old.xml @@ -0,0 +1,18 @@ +<slide> +<title>Data Store Scalability in 2005</title> + +<list> + <bullet> + Custom Hardware + <list> + <bullet>Oracle</bullet> + </list> + </bullet> + <bullet> + Custom Software + <list> + <bullet>Facebook + MySQL</bullet> + </list> + </bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-enable.xml b/slides/mongodb/sharding-enable.xml new file mode 100644 index 0000000..8530027 --- /dev/null +++ b/slides/mongodb/sharding-enable.xml @@ -0,0 +1,15 @@ +<slide> +<title>Enabling Sharding</title> + +<list> + <bullet>Enable sharding on a database:<br/> + %sh.enableSharding("&amp;lt;dbname&amp;gt;")%</bullet> + + <bullet>Shard a collection with the given key:<br/> + %sh.shardCollection("&amp;lt;dbname&amp;gt;.people", {"country":1})%</bullet> + + <bullet>Use a compound shard key to prevent duplicates:<br/> + %sh.shardCollection("&amp;lt;dbname&amp;gt;.cars", {"year":1, "uniqueid":1})%</bullet> + +</list> +</slide> diff --git a/slides/mongodb/sharding-example-setup.xml b/slides/mongodb/sharding-example-setup.xml new file mode 100644 index 0000000..b7cf1df --- /dev/null +++ b/slides/mongodb/sharding-example-setup.xml @@ -0,0 +1,16 @@ +<slide> +<title>Example cluster setup</title> + +<image filename="example-setup.png"/> + +<list> + <bullet>*Don’t use this setup in production!* + <list> + <bullet>Only one Config server (No Fault Tolerance)</bullet> + <bullet>Shard not in a replica set (Low Availability)</bullet> + <bullet>Only one Mongos and shard (No Performance Improvement)</bullet> + <bullet>Useful for development or demonstrating configuration mechanics</bullet> + </list> + </bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-horizontal-scale.xml b/slides/mongodb/sharding-horizontal-scale.xml new file mode 100644 index 0000000..54a4dad --- /dev/null +++ b/slides/mongodb/sharding-horizontal-scale.xml @@ -0,0 +1,6 @@ +<slide> +<title>&#160;</title> +<image filename="sharding-horizontal.png"/> + +<blurb align="center">Google, ~2000: Horizontal Scalability (scale out)</blurb> +</slide> diff --git a/slides/mongodb/sharding-horizontal.png b/slides/mongodb/sharding-horizontal.png new file mode 100644 index 0000000..208085b Binary files /dev/null and b/slides/mongodb/sharding-horizontal.png differ diff --git a/slides/mongodb/sharding-infrastructure.png b/slides/mongodb/sharding-infrastructure.png new file mode 100644 index 0000000..b40ecfc Binary files /dev/null and b/slides/mongodb/sharding-infrastructure.png differ diff --git a/slides/mongodb/sharding-infrastructure.xml b/slides/mongodb/sharding-infrastructure.xml new file mode 100644 index 0000000..b736ad1 --- /dev/null +++ b/slides/mongodb/sharding-infrastructure.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="sharding-infrastructure.png"/> + +<blurb align="center">Sharding infrastructure</blurb> +</slide> diff --git a/slides/mongodb/sharding-key-considerations.xml b/slides/mongodb/sharding-key-considerations.xml new file mode 100644 index 0000000..977165f --- /dev/null +++ b/slides/mongodb/sharding-key-considerations.xml @@ -0,0 +1,10 @@ +<slide> +<title>Shard Key Considerations</title> + +<list> + <bullet>Cardinality</bullet> + <bullet>Write distribution</bullet> + <bullet>Query isolation</bullet> + <bullet>Data Distribution</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-key-title.xml b/slides/mongodb/sharding-key-title.xml new file mode 100644 index 0000000..a1c62d5 --- /dev/null +++ b/slides/mongodb/sharding-key-title.xml @@ -0,0 +1,3 @@ +<slide type="section"> +<blurb>Shard Key</blurb> +</slide> diff --git a/slides/mongodb/sharding-manages.xml b/slides/mongodb/sharding-manages.xml new file mode 100644 index 0000000..d7ffaa3 --- /dev/null +++ b/slides/mongodb/sharding-manages.xml @@ -0,0 +1,11 @@ +<slide> +<title>MongoDB manages data</title> + +<image filename="manages.png" align="right"/> + +<list> + <bullet>Queries routed to specific shards</bullet> + <bullet>MongoDB balances cluster</bullet> + <bullet>MongoDB migrates data to new nodes</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-mechanics.xml b/slides/mongodb/sharding-mechanics.xml new file mode 100644 index 0000000..22872f7 --- /dev/null +++ b/slides/mongodb/sharding-mechanics.xml @@ -0,0 +1,3 @@ +<slide type="section"> +<blurb>Mechanics</blurb> +</slide> diff --git a/slides/mongodb/sharding-mongo-approach.xml b/slides/mongodb/sharding-mongo-approach.xml new file mode 100644 index 0000000..d834287 --- /dev/null +++ b/slides/mongodb/sharding-mongo-approach.xml @@ -0,0 +1,3 @@ +<slide type="section"> +<blurb>MongoDB's approach to sharding</blurb> +</slide> diff --git a/slides/mongodb/sharding-mongos-manages.xml b/slides/mongodb/sharding-mongos-manages.xml new file mode 100644 index 0000000..3be36d8 --- /dev/null +++ b/slides/mongodb/sharding-mongos-manages.xml @@ -0,0 +1,18 @@ +<slide> +<title>MongoS manages the data</title> + +<list> + <blurb> + Mongos + <list> + <bullet>Acts as a router / balancer</bullet> + <bullet>No local data (persists to config database)</bullet> + <bullet>Can have 1 or many</bullet> + </list> + </blurb> +</list> + +<break lines="2"/> + +<image filename="mongos-es.png"/> +</slide> diff --git a/slides/mongodb/sharding-move-chunk.xml b/slides/mongodb/sharding-move-chunk.xml new file mode 100644 index 0000000..9f78749 --- /dev/null +++ b/slides/mongodb/sharding-move-chunk.xml @@ -0,0 +1,11 @@ +<slide> +<title>Moving the chunk</title> + +<image filename="move-chunk.png"/> + +<list> + <bullet>The mongos sends a "moveChunk" command to source shard</bullet> + <bullet>The source shard then notifies destination shard</bullet> + <bullet>The destination claims the chunk shard-key range</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-query.xml b/slides/mongodb/sharding-non-targeted-query.xml new file mode 100644 index 0000000..7043dc1 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-query.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted.png"/> + +<blurb align="center">Cluster Request Routing: Non Targeted Query</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-query1.xml b/slides/mongodb/sharding-non-targeted-query1.xml new file mode 100644 index 0000000..5486101 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-query1.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted1.png"/> + +<blurb align="center">Non-Targetted Request Received</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-query2.xml b/slides/mongodb/sharding-non-targeted-query2.xml new file mode 100644 index 0000000..9d95889 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-query2.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted2.png"/> + +<blurb align="center">Request sent to all shards</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-query3.xml b/slides/mongodb/sharding-non-targeted-query3.xml new file mode 100644 index 0000000..a29688c --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-query3.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted3.png"/> + +<blurb align="center">Shards return results to mongos</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-query4.xml b/slides/mongodb/sharding-non-targeted-query4.xml new file mode 100644 index 0000000..059a928 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-query4.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted4.png"/> + +<blurb align="center">Mongos returns results to client</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-with-sort-query.xml b/slides/mongodb/sharding-non-targeted-with-sort-query.xml new file mode 100644 index 0000000..fc25e8a --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-with-sort-query.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted-sort.png"/> + +<blurb align="center">Cluster Request Routing: Non Targeted Query with Sort</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-with-sort-query1.xml b/slides/mongodb/sharding-non-targeted-with-sort-query1.xml new file mode 100644 index 0000000..b230a49 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-with-sort-query1.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted-sort1.png"/> + +<blurb align="center">Non-Targetted Request with Sort Received</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-with-sort-query2.xml b/slides/mongodb/sharding-non-targeted-with-sort-query2.xml new file mode 100644 index 0000000..bd166b7 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-with-sort-query2.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted-sort2.png"/> + +<blurb align="center">Request sent to all shards</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-with-sort-query3.xml b/slides/mongodb/sharding-non-targeted-with-sort-query3.xml new file mode 100644 index 0000000..26d3f54 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-with-sort-query3.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted-sort3.png"/> + +<blurb align="center">Query and sort performed locally</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-with-sort-query4.xml b/slides/mongodb/sharding-non-targeted-with-sort-query4.xml new file mode 100644 index 0000000..2b61a61 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-with-sort-query4.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted-sort4.png"/> + +<blurb align="center">Shards return results to mongos</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-with-sort-query5.xml b/slides/mongodb/sharding-non-targeted-with-sort-query5.xml new file mode 100644 index 0000000..b29db30 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-with-sort-query5.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted-sort5.png"/> + +<blurb align="center">Mongos merges sorted results</blurb> +</slide> diff --git a/slides/mongodb/sharding-non-targeted-with-sort-query6.xml b/slides/mongodb/sharding-non-targeted-with-sort-query6.xml new file mode 100644 index 0000000..2dbea06 --- /dev/null +++ b/slides/mongodb/sharding-non-targeted-with-sort-query6.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="nontargetted-sort6.png"/> + +<blurb align="center">Mongos returns results to client</blurb> +</slide> diff --git a/slides/mongodb/sharding-partition.xml b/slides/mongodb/sharding-partition.xml new file mode 100644 index 0000000..163d792 --- /dev/null +++ b/slides/mongodb/sharding-partition.xml @@ -0,0 +1,13 @@ +<slide> +<title>Partition data based on ranges</title> + +<list> + <bullet>User defines shard key</bullet> + <bullet>Shard key defines range of data</bullet> + <bullet>Key space is like points on a line</bullet> + <bullet>Range is a segment of that line</bullet> +</list> + +<break lines="3"/> +<image filename="partition.png"/> +</slide> diff --git a/slides/mongodb/sharding-partitioning.xml b/slides/mongodb/sharding-partitioning.xml new file mode 100644 index 0000000..2a660eb --- /dev/null +++ b/slides/mongodb/sharding-partitioning.xml @@ -0,0 +1,12 @@ +<slide> +<title>Partitioning</title> + +<list> + <bullet>Remember it's based on ranges</bullet> +</list> + + +<break lines="2"/> + +<image filename="partition.png"/> +</slide> diff --git a/slides/mongodb/sharding-routing-types.xml b/slides/mongodb/sharding-routing-types.xml new file mode 100644 index 0000000..620bec5 --- /dev/null +++ b/slides/mongodb/sharding-routing-types.xml @@ -0,0 +1,9 @@ +<slide> +<title>Cluster Request Routing</title> + +<list> + <bullet>Targeted Queries</bullet> + <bullet>Scatter Gather Queries</bullet> + <bullet>Scatter Gather Queries with Sort</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-routing.xml b/slides/mongodb/sharding-routing.xml new file mode 100644 index 0000000..811852c --- /dev/null +++ b/slides/mongodb/sharding-routing.xml @@ -0,0 +1,3 @@ +<slide type="section"> +<blurb>Routing</blurb> +</slide> diff --git a/slides/mongodb/sharding-shard-key.xml b/slides/mongodb/sharding-shard-key.xml new file mode 100644 index 0000000..53a65fe --- /dev/null +++ b/slides/mongodb/sharding-shard-key.xml @@ -0,0 +1,12 @@ +<slide> +<title>Shard Key</title> + +<list> + <bullet>Choose a field common used in queries</bullet> + <bullet>Shard key is *immutable*</bullet> + <bullet>Shard key values are *immutable*</bullet> + <bullet>Shard key requires index on fields contained in key</bullet> + <bullet>Uniqueness of %_id% field is only guaranteed within individual shard</bullet> + <bullet>Shard key limited to 512 bytes in size</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-shard.xml b/slides/mongodb/sharding-shard.xml new file mode 100644 index 0000000..46029c2 --- /dev/null +++ b/slides/mongodb/sharding-shard.xml @@ -0,0 +1,12 @@ +<slide> +<title>Data stored in a shard</title> + +<list> + <bullet>Shard is a node of the cluster</bullet> + <bullet>Shard can be a single mongod or a replica set</bullet> +</list> + +<break lines="3"/> + +<image filename="shard-types.png"/> +</slide> diff --git a/slides/mongodb/sharding-start-config.xml b/slides/mongodb/sharding-start-config.xml new file mode 100644 index 0000000..1d5389c --- /dev/null +++ b/slides/mongodb/sharding-start-config.xml @@ -0,0 +1,10 @@ +<slide> +<title>Start the config server</title> + +<image filename="start-server.png"/> + +<list> + <bullet>%mongod --configsvr%</bullet> + <bullet>Starts a config server on the default port (27019)</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-start-db.xml b/slides/mongodb/sharding-start-db.xml new file mode 100644 index 0000000..b6336c2 --- /dev/null +++ b/slides/mongodb/sharding-start-db.xml @@ -0,0 +1,12 @@ +<slide> +<title>Start the shard database</title> + +<image filename="start-database.png"/> + +<list> + <bullet>%mongod --shardsvr%</bullet> + <bullet>Starts a mongod with the default shard port (27018)</bullet> + <bullet>Shard is not yet connected to the rest of the cluster</bullet> + <bullet>Shard may have already been running in production</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-start-mongos.xml b/slides/mongodb/sharding-start-mongos.xml new file mode 100644 index 0000000..1c05c0c --- /dev/null +++ b/slides/mongodb/sharding-start-mongos.xml @@ -0,0 +1,11 @@ +<slide> +<title>Start the mongos router</title> + +<image filename="start-mongos.png"/> + +<list> + <bullet>%mongos --configdb &amp;lt;hostname&amp;gt;:27019%</bullet> + <bullet>For 3 config servers:<br/> %mongos --configdb &amp;lt;host1&amp;gt;:&amp;lt;port1&amp;gt;,&amp;lt;host2&amp;gt;:&amp;lt;port2&amp;gt;,&amp;lt;host3&amp;gt;:&amp;lt;port3&amp;gt;%</bullet> + <bullet>This is always how to start a new mongos, even if the cluster is already running</bullet> +</list> +</slide> diff --git a/slides/mongodb/sharding-targeted-query.xml b/slides/mongodb/sharding-targeted-query.xml new file mode 100644 index 0000000..85956bc --- /dev/null +++ b/slides/mongodb/sharding-targeted-query.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="targetted.png"/> + +<blurb align="center">Cluster Request Routing: Targeted Query</blurb> +</slide> diff --git a/slides/mongodb/sharding-targeted-query1.xml b/slides/mongodb/sharding-targeted-query1.xml new file mode 100644 index 0000000..545858c --- /dev/null +++ b/slides/mongodb/sharding-targeted-query1.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="targetted1.png"/> + +<blurb align="center">Routable request received</blurb> +</slide> diff --git a/slides/mongodb/sharding-targeted-query2.xml b/slides/mongodb/sharding-targeted-query2.xml new file mode 100644 index 0000000..1b9ffb2 --- /dev/null +++ b/slides/mongodb/sharding-targeted-query2.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="targetted2.png"/> + +<blurb align="center">Request routed to appropriate shard</blurb> +</slide> diff --git a/slides/mongodb/sharding-targeted-query3.xml b/slides/mongodb/sharding-targeted-query3.xml new file mode 100644 index 0000000..4e9abdf --- /dev/null +++ b/slides/mongodb/sharding-targeted-query3.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="targetted3.png"/> + +<blurb align="center">Shard returns results</blurb> +</slide> diff --git a/slides/mongodb/sharding-targeted-query4.xml b/slides/mongodb/sharding-targeted-query4.xml new file mode 100644 index 0000000..fb8b56e --- /dev/null +++ b/slides/mongodb/sharding-targeted-query4.xml @@ -0,0 +1,7 @@ +<slide> +<title>&#160;</title> + +<image filename="targetted4.png"/> + +<blurb align="center">Mongos returns results to client</blurb> +</slide> diff --git a/slides/mongodb/sharding-the-story.xml b/slides/mongodb/sharding-the-story.xml new file mode 100644 index 0000000..a48ff39 --- /dev/null +++ b/slides/mongodb/sharding-the-story.xml @@ -0,0 +1,5 @@ +<slide type="section"> +<blurb> +The story of scaling data +</blurb> +</slide> diff --git a/slides/mongodb/sharding-throughput.xml b/slides/mongodb/sharding-throughput.xml new file mode 100644 index 0000000..658d827 --- /dev/null +++ b/slides/mongodb/sharding-throughput.xml @@ -0,0 +1,6 @@ +<slide> +<title>&#160;</title> + +<image filename="throughput.png"/> +<blurb align="center">Read/Write Throughput Exceeds I/O</blurb> +</slide> diff --git a/slides/mongodb/sharding-verify-added.xml b/slides/mongodb/sharding-verify-added.xml new file mode 100644 index 0000000..861443b --- /dev/null +++ b/slides/mongodb/sharding-verify-added.xml @@ -0,0 +1,19 @@ +<slide> +<title>Verify that the shard was added</title> + +<image filename="verify-added.png"/> + +<break lines="2"/> +<list> + <bullet>%db.runCommand({ listshards:1 })%</bullet> +</list> +<example> +{ + "shards" : [ + { "_id": "shard0000", "host": "&lt;hostname&gt;:27018" } + ], + "ok" : 1 +} +</example> + +</slide> diff --git a/slides/mongodb/sharding-vertical-scale.xml b/slides/mongodb/sharding-vertical-scale.xml new file mode 100644 index 0000000..94aa16d --- /dev/null +++ b/slides/mongodb/sharding-vertical-scale.xml @@ -0,0 +1,6 @@ +<slide> +<title>&#160;</title> +<image filename="sharding-vertical.png"/> + +<blurb align="center">1970 - 2000: Vertical Scalability (scale up)</blurb> +</slide> diff --git a/slides/mongodb/sharding-vertical.png b/slides/mongodb/sharding-vertical.png new file mode 100644 index 0000000..49c39d6 Binary files /dev/null and b/slides/mongodb/sharding-vertical.png differ diff --git a/slides/mongodb/sharding-why.xml b/slides/mongodb/sharding-why.xml new file mode 100644 index 0000000..26263a9 --- /dev/null +++ b/slides/mongodb/sharding-why.xml @@ -0,0 +1,3 @@ +<slide type="section"> +<blurb>Why shard?</blurb> +</slide> diff --git a/slides/mongodb/sharding-working-set.xml b/slides/mongodb/sharding-working-set.xml new file mode 100644 index 0000000..61dcd3c --- /dev/null +++ b/slides/mongodb/sharding-working-set.xml @@ -0,0 +1,6 @@ +<slide> +<title>&#160;</title> + +<image filename="working-set.png"/> +<blurb align="center">Working Set Exceeds Physical Memory </blurb> +</slide> diff --git a/slides/mongodb/start-database.png b/slides/mongodb/start-database.png new file mode 100644 index 0000000..72fa19b Binary files /dev/null and b/slides/mongodb/start-database.png differ diff --git a/slides/mongodb/start-mongos.png b/slides/mongodb/start-mongos.png new file mode 100644 index 0000000..e28e514 Binary files /dev/null and b/slides/mongodb/start-mongos.png differ diff --git a/slides/mongodb/start-server.png b/slides/mongodb/start-server.png new file mode 100644 index 0000000..aaf6c11 Binary files /dev/null and b/slides/mongodb/start-server.png differ diff --git a/slides/mongodb/targetted.png b/slides/mongodb/targetted.png new file mode 100644 index 0000000..7124d6a Binary files /dev/null and b/slides/mongodb/targetted.png differ diff --git a/slides/mongodb/targetted1.png b/slides/mongodb/targetted1.png new file mode 100644 index 0000000..8ca2e78 Binary files /dev/null and b/slides/mongodb/targetted1.png differ diff --git a/slides/mongodb/targetted2.png b/slides/mongodb/targetted2.png new file mode 100644 index 0000000..6ce47bb Binary files /dev/null and b/slides/mongodb/targetted2.png differ diff --git a/slides/mongodb/targetted3.png b/slides/mongodb/targetted3.png new file mode 100644 index 0000000..08f2bcf Binary files /dev/null and b/slides/mongodb/targetted3.png differ diff --git a/slides/mongodb/targetted4.png b/slides/mongodb/targetted4.png new file mode 100644 index 0000000..b4d8e2c Binary files /dev/null and b/slides/mongodb/targetted4.png differ diff --git a/slides/mongodb/throughput.png b/slides/mongodb/throughput.png new file mode 100644 index 0000000..4b6dbf1 Binary files /dev/null and b/slides/mongodb/throughput.png differ diff --git a/slides/mongodb/verify-added.png b/slides/mongodb/verify-added.png new file mode 100644 index 0000000..dfc7fc7 Binary files /dev/null and b/slides/mongodb/verify-added.png differ diff --git a/slides/mongodb/working-set.png b/slides/mongodb/working-set.png new file mode 100644 index 0000000..4806aba Binary files /dev/null and b/slides/mongodb/working-set.png differ
« previous php.pres (#1881) next »