
MongoDB Administrator???s Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
All prices
More details
Person
Cyrus Dasadia has enjoyed tinkering with open source projects since 1996. He has been working as a Linux system administrator and part-time programmer for over a decade. He works at InMobi, where he loves designing tools and platforms. His love for MongoDB blossomed in 2013, when he was amazed by its ease of use and stability. Since then, almost all of his projects have been written with MongoDB as the primary backend. Cyrus is also the creator of an open source alert management system called CitoEngine. His spare time is devoted to trying to reverse-engineer software, playing computer games, or increasing his silliness quotient by watching reruns of Monty Python.
Content
- Cover
- Copyright
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: Installation and Configuration
- Introduction
- Installing and starting MongoDB on Linux
- Getting ready
- How to do it.
- How it works.
- There's more.
- Installing and starting MongoDB on macOS
- Getting ready
- How to do it...
- How it works.
- Binding MongoDB process to a specific network interface and port
- Getting ready
- How to do it...
- How it works...
- Enabling SSL for MongodDB
- Getting ready
- How to do it..
- How it works...
- There's more.
- Choosing the right MongoDB storage engine
- WiredTiger
- MMAPv1
- The verdict
- Changing storage engine
- Getting ready
- How to do it...
- How it works...
- Separating directories per database
- Getting ready
- How to do it...
- How it works...
- Customizing the MongoDB configuration file
- Getting ready
- How to do it..
- How it works...
- There's more...
- Running MongoDB as a Docker container
- Getting ready
- How to do it...
- How it works...
- There's more..
- Chapter 2: Understanding and Managing Indexes
- Introduction
- Creating an index
- Getting ready
- How it works...
- There's more...
- Managing existing indexes
- Getting ready
- How to do it...
- How it works...
- How to use compound indexes
- Getting ready
- How to do it...
- How it works.
- There's more...
- Creating background indexes
- Getting ready
- How to do it...
- How it works...
- Creating TTL-based indexes
- Getting ready
- How to do it...
- How it works...
- There's more...
- Creating a sparse index
- Getting ready
- How to do it...
- How it works...
- Creating a partial index
- Getting ready
- How to do it...
- How it works...
- Creating a unique index
- Getting ready
- How to do it...
- How it works...
- Chapter 3: Performance Tuning
- Introduction
- Configuring disks for better I/O
- Reading and writing from disks
- Few considerations while selecting storage devices
- Measuring disk I/O performance with mongoperf
- Getting ready
- How to do it...
- How it works...
- Finding slow running queries and operations
- Getting ready
- How to do it...
- How it works...
- There's more...
- Storage considerations when using Amazon EC2
- Figuring out the size of a working set
- There's more...
- Chapter 4: High Availability with Replication
- Introduction
- Initializing a new replica set
- Getting ready
- How to do it...
- How it works...
- Adding a node to the replica set
- Getting ready
- How to do it...
- How it works...
- Removing a node from the replica set
- Getting ready
- How to do it...
- How it works...
- Working with an arbiter
- Getting ready
- How to do it...
- How it works...
- Switching between primary and secondary nodes
- Getting ready
- How to do it...
- How it works...
- Changing replica set configuration
- Getting ready
- How to do it...
- How it works..
- Changing priority to replica set nodes
- Getting ready
- How to do it...
- How it works...
- There's more...
- Chapter 5: High Scalability with Sharding
- Understanding sharding and its components
- Components of MongoDB sharding infrastructure
- Config server
- The mongos query router
- The shard server
- Choosing the shard key
- Setting up and configuring a sharded cluster
- Getting ready
- How to do it...
- How it works...
- Managing chunks
- Getting ready
- How to do it...
- How it works...
- Moving non-sharded collection data from one shard to another
- Getting ready
- How to do it...
- How it works...
- Removing a shard from the cluster
- Getting ready
- How to do it...
- How it works...
- Understanding tag aware sharding - zones
- Getting ready
- How to do it...
- How it works...
- See also
- Chapter 6: Managing MongoDB Backups
- Introduction
- Taking backup using mongodump tool
- Getting ready
- How to do it...
- How it works...
- There's more...
- Taking backup of a specific mongodb database or collection
- Getting ready
- How to do it...
- How it works...
- Taking backup of a small subset of documents in a collection
- Getting ready
- How to do it...
- How it works...
- Using bsondump tool to view mongodump output in human readable form
- Getting ready
- How to do it...
- How it works...
- Creating a point in time backup of replica sets
- Getting ready
- How to do it...
- How it works...
- Using the mongoexport tool
- Getting ready
- How to do it...
- How it works...
- Creating a backup of a sharded cluster
- Getting ready
- How to do it...
- How it works...
- Chapter 7: Restoring MongoDB from Backups
- Introduction
- Restoring standalone MongoDB using the mongorestore tool
- Getting ready
- How to do it...
- How it works...
- Restoring specific database or specific collection
- Getting ready
- How to do it...
- How it works...
- Restoring data from one collection or database to another
- Getting ready
- How to do it...
- How it works...
- Creating a new MongoDB replica set node using backups
- Getting ready
- How to do it...
- How it works...
- Restoring a MongoDB sharded cluster from backup
- Getting ready
- How to do it...
- How it works...
- Chapter 8: Monitoring MongoDB
- Introduction
- Monitoring MongoDB performance with mongostat
- Getting ready
- How to do it...
- How it works...
- See also
- Checking replication lag of nodes in a replica set
- Getting ready
- How to do it...
- How it works...
- Monitoring and killing long running operations on MongoDB
- Getting ready
- How to do it...
- How it works...
- See also
- Checking disk I/O usage
- Getting ready
- How to do it...
- How it works...
- Collecting MongoDB metrics using Diamond and Graphite
- Getting ready
- How to do it...
- How it works...
- See also
- Chapter 9 : Authentication and Security in MongoDB
- Introduction
- Setting up authentication in MongoDB and creating a superuser account
- Getting ready
- How to do it...
- How it works...
- Creating normal users and assigning built-in roles
- Getting ready
- How to do it...
- How it works...
- See also...
- Creating and assigning custom roles
- Getting ready
- How to do it...
- How it works...
- Restoring access if you are locked out
- Getting ready
- How to do it...
- How it works...
- Using key files to authenticate servers in a replica set
- Getting ready
- How to do it...
- How it works...
- There's more...
- Chapter 10: Deploying MongoDB in Production
- Introduction
- Configuring MongoDB for a production deployment
- Getting ready
- How to do it...
- Upgrading production MongoDB to a newer version
- Getting ready
- How to do it...
- There's more...
- Setting up and configuring TLS (SSL)
- Getting ready
- How to do it...
- How it works...
- There's more...
- Restricting network access using firewalls
- Getting ready
- How to do it...
- How it works...
- See also
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.