万本电子书0元读

万本电子书0元读

顶部广告

MongoDB Administrator’s Guide电子书

售       价:¥

9人正在读 | 0人评论 9.8

作       者:Cyrus Dasadia

出  版  社:Packt Publishing

出版时间:2017-10-25

字       数:25.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Manage, fine-tune, secure and deploy your MongoDB solution with ease with the help of practical recipes About This Book ? Configure and deploy your MongoDB instance securely, without any hassle ? Optimize your database's query performance, perform scale-out operations, and make your database highly available ? Practical guide with a recipe-based approach to help you tackle any problem in the application and database administration aspects of MongoDB Who This Book Is For Database administrators with a basic understanding of the features of MongoDB and who want to professionally configure, deploy, and administer a MongoDB database, will find this book essential. If you are a MongoDB developer and want to get into MongoDB administration, this book will also help you. What You Will Learn ? Install and deploy MongoDB in production ? Manage and implement optimal indexes ? Optimize monitoring in MongoDB ? Fine-tune the performance of your queries ? Debug and diagnose your database's performance ? Optimize database backups and recovery and ensure high availability ? Make your MongoDB instance scalable ? Implement security and user authentication features in MongoDB ? Master optimal cloud deployment strategies In Detail MongoDB is a high-performance and feature-rich NoSQL database that forms the backbone of the systems that power many different organizations. Packed with many features that have become essential for many different types of software professional and incredibly easy to use, this cookbook contains more than 100 recipes to address the everyday challenges of working with MongoDB. Starting with database configuration, you will understand the indexing aspects of MongoDB. The book also includes practical recipes on how you can optimize your database query performance, perform diagnostics, and query debugging. You will also learn how to implement the core administration tasks required for high-availability and scalability, achieved through replica sets and sharding, respectively. You will also implement server security concepts such as authentication, user management, role-based access models, and TLS configuration. You will also learn how to back up and recover your database efficiently and monitor server performance. By the end of this book, you will have all the information you need—along with tips, tricks, and best practices—to implement a high-performance MongoDB solution. Style and approach This practical book follows a problem-solution approach to help you tackle any issues encountered while performing MongoDB administrative tasks. Each recipe is detailed, and explained in a very easy to understand manner
目录展开

Title Page

Copyright

MongoDB Administrator's Guide

Credits

About the Author

About the Reviewers

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

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..

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...

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...

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...

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

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...

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...

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

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...

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部