MongoDB High Availability
eBook - ePub

MongoDB High Availability

  1. 164 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

MongoDB High Availability

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

MongoDB is one of the pioneers in implementing the NoSQL concept by using "Document" as the infrastructure to save and restore data from a database. Using MongoDB in high pressure situations needs a predefined plan, and this book with its step-by-step approach can help you to make a highly available MongoDB server using the latest features.

Starting with the basic concepts and their implementation, you will study real-world use cases which will help you understand the practical aspects of MongoDB. Each step contains an in-depth presentation and several screenshots. This book teaches you all the tips and tricks to make a highly available MongoDB server using different clustering solutions. This book has a perfect balance of concepts and their practical implementation along with solutions to make a highly available MongoDB server in a production environment and under high throughput with clear instructions and guidance.

Approach

This book has a perfect balance of concepts and their practical implementation along with solutions to make a highly available MongoDB server with clear instructions and guidance.

Who this book is for

If you are using MongoDB in a production environment and need a solution to make a highly available MongoDB server, this book is ideal for you. Familiarity with MongoDB is expected so that you understand the content of this book.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access MongoDB High Availability by Afshin Mehrabani in PDF and/or ePUB format, as well as other popular books in Computer Science & Databases. We have over one million books available in our catalogue for you to explore.

Information

Year
2014
ISBN
9781783986729
Edition
1

MongoDB High Availability


Table of Contents

MongoDB High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Understanding the MongoDB Architecture and Processes
Utilizing MongoDB components
Understanding the core components
Understanding mongod
Utilizing mongo
Learning about mongos
Import and export tools
Using import and export tools
Understanding mongodump
Utilizing mongorestore
Learning about bsondump
Understanding mongooplog
Using data tools
Understanding mongoexport
Utilizing mongoimport
Diagnostic tools
Learning about mongostat
Utilizing mongotop
Understanding mongosniff
Utilizing mongoperf
File storage (GridFS) tools
Understanding mongofiles
Summary
2. Understanding MongoDB's Failures and Limitations
Understanding the limitation of a 32-bit version of MongoDB
The Unix limitation
Failover in replica set
Sharding the configuration server failure
Understanding database locks
Summary
3. Clustering in MongoDB
Sharding in MongoDB
Understanding replication
Learning about a replica set
Vertical and horizontal scaling
Utilizing sharding
Implementing clustering in MongoDB
Learning about shards
Understanding the configuration server
Utilizing the mongos or query router
Summary
4. Utilizing a Replica Set
The purpose of replication
Understanding replication
Understanding asynchronous replication
Architecture of replica sets
Understanding oplog
Learning about replication and oplog changes
Understanding nodes' failover
Understanding the replica set election process
Different forms of secondary members
Using the priority 0 member
Utilizing hidden members
The delayed member
Understanding the arbiter node's role
Summary
5. Replica Set in Action
Overview of replica sets
Before deploying a replica set
Configurations of a replica set
Deploying a replica set
Adding a new member
Removing a member
Adding an arbiter
Failover testing
Summary
6. Understanding the Concept of Sharding
Understanding scaling
Learning about sharding
Understanding sharding modules
Utilizing a sharding key
Understanding range-based keys
Understanding hash-based keys
Understanding the splitting and balancing processes
Summary
7. Sharding in Action
Preparing the environment
Implementing configuration servers
Configuring a mongos instance
Managing a mongos instance
Adding shards to mongos
Enable sharding
Summary
8. Analyzing and Improving Database Performance
Understanding profiling
Utilizing profiling
Enabling and configuring the profiler
Using the profiler log
Introducing other analytics methods
Introducing indexes
Using projection
Limiting the number of records returned
Reviewing the hardware considerations
Summary
9. Migrating Instances and Reducing Downtime
Understanding the migration process
Migrating a replica set in action
Explaining the migration process
Adding a new machine
Understanding replica set election problems
Removing the existing machine
Migrating a standalone mongod instance
Converting an existing instance to a replica set
Moving dbpath to the new server
Summary
10. Monitoring and Troubleshooting the Database
Understanding monitoring strategies
Utilizing the profiling feature
Utilizing the built-in reporting tools
mongotop
mongostat
Enabling the web-based console
Understanding the reporting commands
Executing a command
Utilizing the dbStats command
Utilizing the collStats command
Understanding the serverStatus command
Utilizing the replSetGetStatus command
Using database logs
Introducing web-based utilities
Utilizing the MMS monitoring service
Understanding Scout
Utilizing server density
Utilizing LogicMonitor
Introducing FusionReactor
Introducing self-hosted utilities
Summary
Index

MongoDB High Availability

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damage...

Table of contents

  1. MongoDB High Availability