1 MONGODB: CH 16-23 ADMIN CSSE 533 Week 4, Spring, 2015.

Slides:



Advertisements
Similar presentations
Copyright line. Maintaining an Active Directory Environment Exam Objectives Backup and Recovery Backup and Recovery Offline Maintenance Offline Maintenance.
Advertisements

Refeng Wu CQ5 WCM System Administrator
Storing Data: Disks and Files: Chapter 9
VMWare to Hyper-V FOR SERVER What we looked at before migration  Performance – Hyper-V performs at near native speeds.  OS Compatibility – Hyper-V.
Objectives Overview Define an operating system
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Introduction to MySQL Administration.  Server startup and shutdown ◦ How to manually start and stop it from the command line ◦ How to arrange an automated.
Operating System Support Focus on Architecture
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
1.1 Installing Windows Server 2008 Windows Server 2008 Editions Windows Server 2008 Installation Requirements X64 Installation Considerations Preparing.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
MIS 431 Chapter 71 Ch. 7: Advanced File Management System MIS 431 Created Spring 2006.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Chapter 11: Maintaining and Optimizing Windows Vista
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
Backup and Recovery Part 1.
Module 8 Implementing Backup and Recovery. Module Overview Planning Backup and Recovery Backing Up Exchange Server 2010 Restoring Exchange Server 2010.
Installing and Setting up mongoDB replica set PREPARED BY SUDHEER KONDLA SOLUTIONS ARCHITECT.
Google AppEngine. Google App Engine enables you to build and host web apps on the same systems that power Google applications. App Engine offers fast.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW Understand the difference between service.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Course 6425A Module 9: Implementing an Active Directory Domain Services Maintenance Plan Presentation: 55 minutes Lab: 75 minutes This module helps students.
Windows Server MIS 424 Professor Sandvig. Overview Role of servers Performance Requirements Server Hardware Software Windows Server IIS.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Deploying and Managing Windows Server 2012
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Chocolate Bar! luqili. Milestone 3 Speed 11% of final mark 7%: path quality and speed –Some cleverness required for full marks –Implement some A* techniques.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
DONE-10: Adminserver Survival Tips Brian Bowman Product Manager, Data Management Group.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
1 MONGODB: CH 9-15 REPLICATION AND SHARDING CSSE 533 Week 3, Spring, 2015 Side order of Hadoop.
Explain the purpose of an operating system
Module 7: Fundamentals of Administering Windows Server 2008.
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Introduction to HP Availability Manager.
Module 1: Installing and Configuring Servers. Module Overview Installing Windows Server 2008 Managing Server Roles and Features Overview of the Server.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
WEEK 1, DAY 2 STEVE CHENOWETH CSSE DEPT CSSE 533 –INTRO TO MONGODB.
11 MANAGING PERFORMANCE Chapter 16. Chapter 16: MANAGING PERFORMANCE2 OVERVIEW  Optimize memory, disk, and CPU performance  Monitor system performance.
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory, Enhanced Chapter 13: Monitoring and Optimizing Active Directory.
A Brief Documentation.  Provides basic information about connection, server, and client.
Module 14 Monitoring and Optimizing SharePoint Performance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Fast Crash Recovery in RAMCloud. Motivation The role of DRAM has been increasing – Facebook used 150TB of DRAM For 200TB of disk storage However, there.
1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS
Module 4 Planning for Group Policy. Module Overview Planning Group Policy Application Planning Group Policy Processing Planning the Management of Group.
Windows monitoring Unit objectives: Monitor the operating system Monitor system performance Backup and restore operating system files and data.
System Center Lesson 4: Overview of System Center 2012 Components System Center 2012 Private Cloud Components VMM Overview App Controller Overview.
Chapter 9 Operating Systems Discovering Computers Technology in a World of Computers, Mobile Devices, and the Internet.
G046 Lecture 04 Task C Briefing Notes Mr C Johnston ICT Teacher
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
Page 1 Monitoring, Optimization, and Troubleshooting Lecture 10 Hassan Shuja 11/30/2004.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Cofax Scalability Document Version Scaling Cofax in General The scalability of Cofax is directly related to the system software, hardware and network.
The Ultimate SharePoint Admin Tool
SQL Database Management
Jonathan Walpole Computer Science Portland State University
SQL Replication for RCSQL 4.5
The Life of a MongoDB GitHub Commit
MongoDB Distributed Write and Read
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Introduction of Week 3 Assignment Discussion
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
Presentation transcript:

1 MONGODB: CH ADMIN CSSE 533 Week 4, Spring, 2015

2 Overview This week – Ch 16 – 23 Admin Internals – See MongoDB lecture at Sharding admin Ch 16 – Sharding administration Application admin Ch 17 – Seeing what your application is doing Ch 18 – Data administration Ch 19 – Durability Server admin Ch 20 – Starting and stopping MongoDB Ch 21 – Monitoring MongoDB Ch 22 – Making backups Ch 23 – Deploying MongoDB

3 Internals See MongoDB lecture at His slides are at matters.org/bcn/wp- content/uploads/2013/12/storage-talk- mongodb.pdf. matters.org/bcn/wp- content/uploads/2013/12/storage-talk- mongodb.pdf Some highlights  More info available at the MongoDB site. E.g., chitecture. chitecture See also Appendix B – p 389

4 Lots of tips from Mr MongoDB, like: When to expect things to get swapped in and out of RAM, leading to “Why you should never have two databases on the same machine.”

5 Or, How data can be lost!

6 Or, How data can get fragmented:

7 Ch 16 – Sharding administration Sharded clusters are difficult to administer! Typical tasks: Inspecting the state – what’s doing what How to add, remove, and change members Administering data movement If we did the “one minute setup” then we could: Get a summary with sh.status – p 275 See config information from the config database – p 277 Look at sharded collections, chunks, and changelog – pp Tracking network connections & limiting the number of connections – pp Not all that helpful! Server admin – pp 285+ Jumbo chunks – p 292 – unsplittable and unmovable!

8 Ch 17 – Seeing what your application is doing How to find slow operations and kill them Getting and interpreting statistics Using command-line tools Seeing current operations – db.currentOp – p 299 Can filter to find slow operations App servers running “old and buggy versions”? A few operations are supposed to run long! – p 302 System profiler can be used similarly – p 302 Disk space provisioning – p 305 mongotop and mongostat – p 307

9 Ch 18 – Data administration Non-daily tasks for an admin, like: Setting up authentication and user accounts – p 311 How it works – p 314 Creating indexes on a running system – p 315 Unix “Out-of-memory” killer can kill a MongoDB index creation – p 317 “Preheating” a new server to allow it to come online quickly – p 317 Use Unix dd to load a db into RAM before starting mongod. – p 317 Defragmenting data files – p 320 Can use the “compact” command – very resource-intensive. P 320 Preallocating new data files manually – p 322

10 Ch 19 – Durability Meaning: The guarantee that an operation that is committed will survive permanently. How MongoDB does it – p 323: Journal contains disk location and bytes changed. Data files are flushed to disk every 60 seconds. After a crash, MongoDB replays journal files on startup. To test this, run kill -9 (!) MongoDB writes to the journal every 100 ms, committing writes in batches. How to configure your app and server – pp The implications of not journaling! – p 325 What MongoDB does not guarantee – p 327

11 Ch 20 – Starting and stopping MongoDB Commonly used options – p 333 Starting up and shutting down MongoDB – pp Security-related options – p 337 MongoDB should only be reachable on internal network addresses. Shutting down back doors, etc. Logging considerations – p 338 Can direct to places other than stdout.

12 Ch 21 – Monitoring MongoDB Alert you if something goes wrong / be able to go get the info to analyze. How to track MongoDB’s memory usage – p 341 Like all DB’s, MongoDB is a memory hog. MongoDB Management Service (MMS) graphs – p 343  How to track application performance metrics Memory usage – p 342 Page faults – p 343 And many more! How to diagnose replication issues p 353

13 MMS graphs Show the different levels of memory usage by MongoDB:

14 Ch 22 – Making backups Single-server backups – p 357 db.fsynchLock to keep a restorable version while copying. – p 358 Special considerations for replica sets – p 361 Take backups from a secondary. Restoring looks messy! Special considerations for sharded clusters – p 362 You can’t get a “snapshot” of the entire cluster at one time. But, maybe you’ll never have to restore it all at once? Incremental backups – p 363

15 Ch 23 – Deploying MongoDB Hardware & architecture – Optimize for data safety and fast access. For example, can plan to put parts of the DB on RAM, SSD, and spinning disk. Advantages of SSD – p 366 RAID configurations – p 369 Buy memory vs CPU speed – p 370 Use 64-bit Linux – p 370 Filesystem – ext4 or XFS – p 371 Virtualization issues – p 372 Configuring system settings – p 374 Network configuring – p 382 System housekeeping – p 383 See also Installing MongoDB – Appendix A, p 385 The classic disk: R for reason? W for worry?