Learn more about MongoDB

Source: Internet
Author: User

 

Learn more about MongoDB

Basic Information
  • Original Title:Scaling MongoDB
  • Original Press: o'reilly
  • Author:(US) Kristina chodorow[Introduction to translators]
  • Translator: Cheng Xianfeng
  • Series Name:Turing programming Series
  • Press: People's post and telecommunications Press
  • ISBN:9787115272119
  • Mounting time:
  • Published on: February 1, March 2012

Http://product.china-pub.com/199004

 

 

IntroductionDeep Learning MongoDB is divided into two parts, which correspond to the scaling MongoDB and 50 tips and tricks formongodb developers published by o'reilly. The first part comprehensively explains how to create and use clusters. It not only explains how to use MongoDB from the perspective of application developers, but also introduces cluster management from the aspect of O & M. The content includes how to configure a MongoDB cluster through sharding, how the sharding works, querying and updating data, operating, monitoring and backup clusters, and error handling. The second part describes how to use MongoDB to build an application from the aspects of Application Design, Implementation, optimization, data security and management. The content includes the advantages and disadvantages of normalization and anti-normalization, fault recovery of the replication group.
Deep Learning MongoDB is a reference for all MongoDB users. DirectoryDeep Learning MongoDB
MongoDB Extension Technology
Chapter 1 Welcome to the world of distributed computing 1
Chapter 5 understanding Parts 5
2.1 split data 7
2.1.1 data allocation 8
2.1.2 how to create Block 11
2.2 balance 14
2.3 mongos 17
2.4 configure Server 18
2.5 cluster construction 18
Chapter 21 cluster creation 21
3.1 select the chip key 23
3.1.1 small base partition key 23
3.1.2 uporder key 25
3.1.3 random chip key 26
3.1.4 good chip key 27
3.2 New and Old Sets partition 29
3.2.1 Quick Start 29
3.2.2 configure Server 29. 3.2.3 mongos 30
3.2.4 fragment 31
3.2.5 database and set 32
3.3 increase or decrease capacity 33
3.3.1 remove part 34
3.3.2 modify server 35 in the shard
Chapter 4 CLUSTER 37
4.1 query 39
4.2 Why? 39
4.2.1 Count 39
4.2.2 unique index 40
4.2.3 update 41
4.3 mapreduce 42
Chapter 4 Management 43
5.1 use command line 45
5.1.1 overview 45
5.1.2 configuration set 46
5.1.3 what to connect 47
5.2 Monitoring 47
5.2.1 restart stat 48
5.2.2 web management interface 48
5.3 backup 49
5.4 architecture recommendations 50
5.4.1 create an emergency site 50
5.4.2 moat digging 50
5.5 error handling 51
5.5.1 multipart shutdown 51
5.5.2 stop most parts 51
5.5.3 configure server downtime 52
5.5.4 mongos process dead 52
5.5.5 other considerations 53
Chapter 5 learning resources 55
50 MongoDB development skills
Chapter 5 application design skills 65
1.1 tip 1: a compromise between speed and integrity 67
1.1.1 example: online shopping cart 68
1.1.2 consideration 69
1.2 Tip 2: to adapt to the future, data needs to be normalized. 70
1.3 Tip 3: retrieve data from a single query as much as possible 71
1.3.1 example: blog 71
1.3.2 example: album 72
1.4 Tip 4: Embed associated data 72
1.5 Tip 5: Embed Time Point Data 73
1.6 Tip 6: Do not embed the increasing data 73
1.7 Tip 7: pre-filled Data 73
1.8 tip 8: Pre-allocate as much space as possible 74
1.9 Tip 9: Use arrays to store embedded data for anonymous access 75
1.10 tip 10: Document self-sufficiency 77
1.11 tip 11: give priority to the $ operator 79
1.11.1 learn more 79
1.11.2 Performance Improvement 79
1.12 tip 12: Aggregate 80 at any time
1.13 tip 13: write code to handle data integrity issues 80
Chapter 4 implementation skills 83
2.1 tip 14: use the correct type 85
2.2 tip 15: replace _ id 85 with a simple and unique ID
2.3 Tip 16: Do not use documents as _ id 86
2.4 tip 17: Do not use a database reference 86
2.5 tip 18: Do not use gridfs to process small binary data 87
2.6 tip 19: handling "seamless" failover 88
2.7 tip 20: handling replication group failures and fault recovery 88
Chapter 1 optimization techniques 89
3.1 tip 21: Minimize disk access 91
3.2 tip 22: Using indexes to reduce memory usage 92
3.3 tip 23: Do not use indexes everywhere 94
3.4 tip 24: Index overwrite query 95
3.5 tip 25: using composite indexes to speed up multiple queries 95
3.6 tip 26: 96 accelerated scans by establishing hierarchical documents
3.7 tip 27: And-type query highlights 98
3.8 tips 28: or type query highlights 98
Chapter 1 data security and consistency 4th
4.1 tip 29: logs are generated on a single machine, and 103 are copied on multiple machines.
4.2 TIP 30: Stick to replication or log, or use both 104
4.3 tip 31: Do not trust repair to recover 105 of data
4.4 tip 32: getlasterror 105
4.5 tip 33: Secure write 106 must be used during development
4.6 tip 34: Use W parameter 106
4.7 tip 35: Be sure to set a timeout value of 107 for W.
4.8 tip 36: Do not call fsync 108 every time you write data.
4.9 tip 37: boot normally after crash 108
4.10 tip 38: instant backup of persistent servers 108
Chapter 4 management skills 5th
5.1 tip 39: manual cleaning block set 111
5.2 tip 40: use repair to compress the database 111
5.3 tip 41: do not change the voting weight of the members of the copy group by 112
5.4 tip 42: when no active node exists, You can reset the replication group 113.
5.5 tip 43: do not specify the -- shardsvr and -- configsvr parameters 115
5.6 tip 44: used only during development -- notablescan 115
5.7 tip 45: Learn JavaScript 116
5.8 tip 46: managing all servers and databases in Shell 116
5.9 tip 47: Get help 117
5.10 tip 48: Create a Startup File 118
5.11 tip 49: UDF 119
5.12 TIP 50: Use a single connection to read 120 of data written by itself

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.