MongoDB High Availability


MongoDB High Availability
eBook: $19.99
Formats: PDF, PacktLib, ePub and Mobi formats
$9.99
save 50%!
Print + free eBook + free PacktLib access to the book: $52.98    Print cover: $32.99
$32.99
save 38%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Improve response time by profiling and indexing on large databases
  • Configure a Replica set network from scratch using a real-world example
  • Step-by-step guide to setting up and learning about the latest MongoDB components and features to perform clustering and sharding

Book Details

Language : English
Paperback : 164 pages [ 235mm x 191mm ]
Release Date : July 2014
ISBN : 1783986727
ISBN 13 : 9781783986729
Author(s) : Afshin Mehrabani
Topics and Technologies : All Books, Big Data and Business Intelligence, Open Source


Table of Contents

Preface
Chapter 1: Understanding the MongoDB Architecture and Processes
Chapter 2: Understanding MongoDB's Failures and Limitations
Chapter 3: Clustering in MongoDB
Chapter 4: Utilizing a Replica Set
Chapter 5: Replica Set in Action
Chapter 6: Understanding the Concept of Sharding
Chapter 7: Sharding in Action
Chapter 8: Analyzing and Improving Database Performance
Chapter 9: Migrating Instances and Reducing Downtime
Chapter 10: Monitoring and Troubleshooting the Database
Index
  • Chapter 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
  • Chapter 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
  • Chapter 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
  • Chapter 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
  • Chapter 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
  • Chapter 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
  • Chapter 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
  • Chapter 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
  • Chapter 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
      • 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

Afshin Mehrabani

Afshin Mehrabani is an open source programmer. He is studying to be a computer software engineer. He started programming and web development when he was 12 years old, as well as starting with PHP. Later, he joined the Iran Technical and Vocational Training Organization. He secured the first place and received a gold medal in a competition which was conducted across the entire country in the area of web development. He became a member of the Iran National Foundation of Elite after producing a variety of new programming ideas.

He was a software engineer at the Tehran Stock Exchange and is now the head of the web development team in the Yara Company. He cofounded the Usablica team in early 2012 to develop and produce usable applications. He is the author of IntroJs, WideArea, flood.js and some other open source projects.

He has contributed to Socket.IO, Engine.IO, and some other open source projects. He is also interested in creating and contributing to open source applications, writing programming articles, and challenging himself with new programming technologies.

He has written different articles about JavaScript, Node.js, HTML5, and MongoDB that have been published on different academic websites. Afshin has 5 years of experience in PHP, Python, C#, JavaScript, HTML5, and Node.js in many financial and stock trading projects.

Sorry, we don't have any reviews for this title yet.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

MongoDB High Availability +    SketchUp 2014 for Architectural Visualization =
50% Off
the second eBook
Price for both: €26.20

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Understand MongoDB's server structure and processes
  • Get to grips with using MongoDB solutions to cluster your server
  • Utilize sharding and set up a sharding server architecture
  • Improve server response time using different solutions
  • Diagnose, monitor, and troubleshoot a MongoDB server
  • Discover the replica set and how it works
  • Grasp how to select a suitable sharding key

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software