SlideShare une entreprise Scribd logo
1  sur  35
Confidential
MongoDB/TokuMX
Automation & Management
Jon Tobin
Tokutek
jon@tokutek.com
April 24, 2014
Vinay Joosery
Severalnines
vinay@severalnines.com
Confidential
Webinar Housekeeping
 This webinar is being recorded
 A link to the recording and to a copy of the slides
will be posted on tokutek.com
 We welcome questions: enter questions into the
chat box and we will respond at the end of the
presentation
 Think of something later?
 Email Tokutek at contact@tokutek.com
 Email Severalnines at info@severalnines.com
2
Confidential
Agenda
 MongoDB & Automation
 What is operational management ?
 MongoDB Management caveats
 Automation & Management by ClusterControl
 Demo
3
Copyright Severalnines AB
Confidential
Database TCO
4
Copyright Severalnines AB
Source: IDC, Maximizing the Business Value of Enterprise Database Applications
Confidential
Developer’s view of the world
5
Copyright Severalnines AB
App
DB
Confidential
DBA’s view of the world
6
Copyright Severalnines AB
DB
App
Confidential
MongoDB and Automation
 MongoDB is great for developers
 MongoDB not as great for ops folks
 Lack of operational tools
 MMS Management: mainly a monitoring tool
 MMS Automation: in alpha
 Perhaps not surprising for a 5-yr old product
 General-purpose tools can help some
 E.g., Puppet, Chef
 However…
7
Copyright Severalnines AB
Confidential
Drawback with Puppet or Chef
 Puppet/Chef are appropriate for a group of single-node
components
 E.g. webservers can be clones of each other..
 Deploy 10 webservers, they all look the same..
 Distributed databases are more complex
 Different node types
 Different roles and responsibilities
 Specific order for procedures
 Using e.g. Chef for deploying a distributed database
 Yes, it is possible
 How much Chef functionality is actually leveraged vs How
much code is written by user?
8
Copyright Severalnines AB
Confidential
What do Ops folks do?
- Deployment
 Optimal hardware (CPU/RAM/Disk)
 What topology to start with?
 Virtualized or barebone? Cloud?
 Multi-region or multi-AZ
 Good initial configuration settings for DB
 OS tuning (high dependency)
 Monitoring the DB + underlying OS
 Logging
9
Copyright Severalnines AB
Confidential
What do Ops folks do?
- performance monitoring
 What do you do when the application is slow?
 Is it Disk? CPU? RAM? Badly written queries?
 What are the symptoms? (Replication Lag, Page Faults,
locks, # connections, …)
 Do you need to scale?
 How do you scale?
 Capacity planning
10
Copyright Severalnines AB
Confidential
Vertical vs Horizontal scaling
11
Copyright Severalnines AB
Confidential
What do Ops folks do?
- Availability
 Keep the service running
 How do you detect something has failed?
 Drilling down to root cause
 Manual vs automatic failover
 How do you avoid failures?
12
Copyright 2012 Severalnines AB
Confidential
What do Ops folks do?
- Management
 Backup and Restore
 Software upgrades and rolling restarts
 Configuration changes
 Adding nodes or shards
 Rebalancing of shards
 Compaction
13
Copyright Severalnines AB
Confidential
Monitoring is not Management
14
Copyright Severalnines AB
Confidential
Management caveats (1/2)
 1 Config server instead of 3
 Starting 2 Config servers only not good enough
 Read-only config – no changes in cluster state
 No new shards can be added, no new users with userid/pwd, …
 > 2 Routing Servers
 1 router only is a SPOF
 ReplicaSet: odd number of replicas
 At least 3 to handle voting / network partitioning
 To build a ReplicaSet, start with a first node. Use init on it. Add other nodes in
the ReplicaSet to it.
 Sharding: pre-defined order for procedures
 Start config servers (start with 1 node, then add the rest to it)
 Start mongos (routers) (start with 1 router, then add more routers)
 Build a ReplicaSet and add it as a shard
15
Copyright Severalnines AB
Confidential
Management caveats (2/2)
 Backups
 Lock a node, flush, then take a snapshot
 For a sharded cluster, a bit more complicated
 Config server data need to be saved
 All shards backed up at same time for cluster-wide
snapshot
 Rolling upgrades
 Configuration change (e.g. moving a node to a more
powerful server), version upgrade/patch, …
 E.g. 3 node replicaset, do not shut down 2 nodes. 3rd node
will become secondary/read-only.
 Defragmentation, resharding, index rebuilds, etc.
16
Copyright Severalnines AB
Confidential
ClusterControl
Automation & Management
 Provisioning
 Auto deploy a Sharded Cluster in minutes
 On-premise or in the cloud
 Monitoring
 1sec resolution
 Both DB and OS stats
 Realtime and historical
 Management
 Manage multiple clusters
 Multi data-center
 Automate failover, upgrades, backups,…
 One-click scaling
17
Copyright Severalnines AB
Confidential 18
Copyright 2013 Severalnines AB
Confidential
Demo - Manage multiple clusters thru
one pane of glass
19
Copyright Severalnines AB
Internal DataCenter
East Coast US
Internal Data Center
West Coast US Public Cloud
Confidential
Severalnines Customers
20
Copyright Severalnines AB
Confidential
Agenda
 Common User Issues
 What’s TokuMX™
 What are the advantages
 What should I monitor
 How does Severalnines help
21
Confidential
Common Problems
 I can’t ingest sources fast enough
 My data is getting too big
 I’m spending too much money on infrastructure
 DB level locking is slowing me down
22
Confidential
What is TokuMX?
 A open-source fork of MongoDB
 Uses proprietary Fractal Trees
 Keeps MongoDB APIs (no code change)
 Replaces storage code
 Builds off of 8+ years of MySQL development
23
Confidential
What are the Advantages?
 Performance
 Concurrency (doc level vs DB level)
 Cache management (defined vs memory mapped)
 Efficient index maintenance (No IO req’d [Fractal Tree])
 Compression
 Large blocks (4MB)
 3 libraries (quicklz, zlib, lzma)
 Flash friendly (<reads/writes)
 Transactions
 MVCC consistent reads (consistent snapshot of data)
 Multistatement commit/rollback
24
Confidential
What Should I Monitor?
 Mongo Performance
 opcounters
 Cache Use
 Effectiveness of memory
 Space
 % full
 Compression
 Disk Utilization
 What’s utilizing my disk(s)
25
Confidential
Performance
 Opcounters let you know how your app is using the
database
 Establish a baseline for normal behavior
26
Confidential
Severalnines Performance
27
Confidential
Cache Use
 Want to know how effective your cache is
 When you need to expand cache
28
Confidential
Severalnines Cache Use
29
How
Much?
Are they clean?
Is it Effective?
Confidential
Space
30
Don’t run out
of space
Compression ratio
will help predict
future needs
Confidential
Disk Utilization
 Can be tricky
 No one thing causes IO
 Helps to troubleshoot if you can narrow it to reads or
writes
 Baselines can help decrease time to resolve
31
Confidential
Severalnines Measuring Utilization
32
miss = read
If fsync rises…
checkpoints COMING IN TokuMX 1.4.2!
Confidential
Everything Else
 TokuMX tends to trade IO utilization for CPU
 Compression and decompression
 FT maintenance
 Just monitor your CPUs like any other resource
 SeveralNines is exceptional at this…try it for yourself
 db.serverStatus() is your friend
 We’re moving interesting stats there to make it easier to monitor
33
***THIS IS ABNORMAL BEHAVIOR MEANT SPECIFICALLY FOR ILLUSTRATION!!
Confidential
Tokutek Customers
34
Confidential
Thank You!
 TokuMX
 http://www.tokutek.com/products/tokumx-for-mongodb/
 ClusterControl for MongoDB
 www.severalnines.com/clustercontrol
 Severalnines Blog (severalnines.com/blog)
 Tokutek Blog (tokutek.com/tokuview)
 More Questions? Contact us at:
 contact@tokutek.com
 info@severalnines.com
35

Contenu connexe

Tendances

Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControlWebinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Continuent
 

Tendances (20)

Using and Benchmarking Galera in different architectures (PLUK 2012)
Using and Benchmarking Galera in different architectures (PLUK 2012)Using and Benchmarking Galera in different architectures (PLUK 2012)
Using and Benchmarking Galera in different architectures (PLUK 2012)
 
Master master vs master-slave database
Master master vs master-slave databaseMaster master vs master-slave database
Master master vs master-slave database
 
Tips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloudTips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloud
 
PowerDNS with MySQL
PowerDNS with MySQLPowerDNS with MySQL
PowerDNS with MySQL
 
Ceph Community Talk on High-Performance Solid Sate Ceph
Ceph Community Talk on High-Performance Solid Sate Ceph Ceph Community Talk on High-Performance Solid Sate Ceph
Ceph Community Talk on High-Performance Solid Sate Ceph
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControlWebinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
 
Salt Cloud vmware-orchestration
Salt Cloud vmware-orchestrationSalt Cloud vmware-orchestration
Salt Cloud vmware-orchestration
 
Simplifying Ceph Management with Virtual Storage Manager (VSM)
Simplifying Ceph Management with Virtual Storage Manager (VSM)Simplifying Ceph Management with Virtual Storage Manager (VSM)
Simplifying Ceph Management with Virtual Storage Manager (VSM)
 
High Availability with MariaDB Enterprise
High Availability with MariaDB EnterpriseHigh Availability with MariaDB Enterprise
High Availability with MariaDB Enterprise
 
Galera Cluster for MySQL vs MySQL (NDB) Cluster: A High Level Comparison
Galera Cluster for MySQL vs MySQL (NDB) Cluster: A High Level Comparison Galera Cluster for MySQL vs MySQL (NDB) Cluster: A High Level Comparison
Galera Cluster for MySQL vs MySQL (NDB) Cluster: A High Level Comparison
 
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best PracticesVMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
 
Galera Cluster DDL and Schema Upgrades 220217
Galera Cluster DDL and Schema Upgrades 220217Galera Cluster DDL and Schema Upgrades 220217
Galera Cluster DDL and Schema Upgrades 220217
 
Running Galera Cluster on Microsoft Azure
Running Galera Cluster on Microsoft AzureRunning Galera Cluster on Microsoft Azure
Running Galera Cluster on Microsoft Azure
 
Maria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High AvailabilityMaria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High Availability
 
Accelerating Cassandra Workloads on Ceph with All-Flash PCIE SSDS
Accelerating Cassandra Workloads on Ceph with All-Flash PCIE SSDSAccelerating Cassandra Workloads on Ceph with All-Flash PCIE SSDS
Accelerating Cassandra Workloads on Ceph with All-Flash PCIE SSDS
 
Galera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction SlidesGalera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction Slides
 
MySQL Replication Alternative: Pros and Cons
MySQL Replication Alternative: Pros and ConsMySQL Replication Alternative: Pros and Cons
MySQL Replication Alternative: Pros and Cons
 
Running Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anyninesRunning Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anynines
 
Slides: Introducing the new ClusterControl 1.2.9 - with live demo
Slides: Introducing the new ClusterControl 1.2.9 - with live demo Slides: Introducing the new ClusterControl 1.2.9 - with live demo
Slides: Introducing the new ClusterControl 1.2.9 - with live demo
 
Whats new in Microsoft Windows Server 2016 Clustering and Storage
Whats new in Microsoft Windows Server 2016 Clustering and StorageWhats new in Microsoft Windows Server 2016 Clustering and Storage
Whats new in Microsoft Windows Server 2016 Clustering and Storage
 

En vedette

Webinar Slides: Migrating to Galera Cluster
Webinar Slides: Migrating to Galera ClusterWebinar Slides: Migrating to Galera Cluster
Webinar Slides: Migrating to Galera Cluster
Severalnines
 

En vedette (10)

How To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - SlidesHow To Set Up SQL Load Balancing with HAProxy - Slides
How To Set Up SQL Load Balancing with HAProxy - Slides
 
Repair & Recovery for your MySQL, MariaDB & MongoDB / TokuMX Clusters - Webin...
Repair & Recovery for your MySQL, MariaDB & MongoDB / TokuMX Clusters - Webin...Repair & Recovery for your MySQL, MariaDB & MongoDB / TokuMX Clusters - Webin...
Repair & Recovery for your MySQL, MariaDB & MongoDB / TokuMX Clusters - Webin...
 
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
 
Webinar Slides : Migrating to MySQL, MariaDB Galera and/or Percona XtraDB Clu...
Webinar Slides : Migrating to MySQL, MariaDB Galera and/or Percona XtraDB Clu...Webinar Slides : Migrating to MySQL, MariaDB Galera and/or Percona XtraDB Clu...
Webinar Slides : Migrating to MySQL, MariaDB Galera and/or Percona XtraDB Clu...
 
Webinar Slides: Migrating to Galera Cluster
Webinar Slides: Migrating to Galera ClusterWebinar Slides: Migrating to Galera Cluster
Webinar Slides: Migrating to Galera Cluster
 
Zero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best PracticesZero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best Practices
 
Galera Cluster - Node Recovery - Webinar slides
Galera Cluster - Node Recovery - Webinar slidesGalera Cluster - Node Recovery - Webinar slides
Galera Cluster - Node Recovery - Webinar slides
 
Civilization revision 1
Civilization revision 1Civilization revision 1
Civilization revision 1
 
Global Post, miércoles 7 de diciembre de 2016
Global Post, miércoles 7 de diciembre de 2016Global Post, miércoles 7 de diciembre de 2016
Global Post, miércoles 7 de diciembre de 2016
 
MySQL Cluster Performance Tuning - 2013 MySQL User Conference
MySQL Cluster Performance Tuning - 2013 MySQL User ConferenceMySQL Cluster Performance Tuning - 2013 MySQL User Conference
MySQL Cluster Performance Tuning - 2013 MySQL User Conference
 

Similaire à Management and Automation of MongoDB Clusters - Slides

Research Assignment For Active Directory
Research Assignment For Active DirectoryResearch Assignment For Active Directory
Research Assignment For Active Directory
Jessica Myers
 
Membase Meetup 2010
Membase Meetup 2010Membase Meetup 2010
Membase Meetup 2010
Membase
 

Similaire à Management and Automation of MongoDB Clusters - Slides (20)

MongoDB vs Mysql. A devops point of view
MongoDB vs Mysql. A devops point of viewMongoDB vs Mysql. A devops point of view
MongoDB vs Mysql. A devops point of view
 
Sql Server tips from the field
Sql Server tips from the fieldSql Server tips from the field
Sql Server tips from the field
 
Automation and Management of Database Clusters MariaDB Roadshow 2014
Automation and Management of Database Clusters MariaDB Roadshow 2014Automation and Management of Database Clusters MariaDB Roadshow 2014
Automation and Management of Database Clusters MariaDB Roadshow 2014
 
Handling Data in Mega Scale Systems
Handling Data in Mega Scale SystemsHandling Data in Mega Scale Systems
Handling Data in Mega Scale Systems
 
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
 
Hadoop and Voldemort @ LinkedIn
Hadoop and Voldemort @ LinkedInHadoop and Voldemort @ LinkedIn
Hadoop and Voldemort @ LinkedIn
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
A Front-Row Seat to Ticketmaster’s Use of MongoDB
A Front-Row Seat to Ticketmaster’s Use of MongoDBA Front-Row Seat to Ticketmaster’s Use of MongoDB
A Front-Row Seat to Ticketmaster’s Use of MongoDB
 
Running a Megasite on Microsoft Technologies
Running a Megasite on Microsoft TechnologiesRunning a Megasite on Microsoft Technologies
Running a Megasite on Microsoft Technologies
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
 
DB2 for z/O S Data Sharing
DB2 for z/O S  Data  SharingDB2 for z/O S  Data  Sharing
DB2 for z/O S Data Sharing
 
HPC DAY 2017 | HPE Storage and Data Management for Big Data
HPC DAY 2017 | HPE Storage and Data Management for Big DataHPC DAY 2017 | HPE Storage and Data Management for Big Data
HPC DAY 2017 | HPE Storage and Data Management for Big Data
 
Desktop interview qestions & answer
Desktop interview qestions & answerDesktop interview qestions & answer
Desktop interview qestions & answer
 
Continuent Tungsten - Scalable Saa S Data Management
Continuent Tungsten - Scalable Saa S Data ManagementContinuent Tungsten - Scalable Saa S Data Management
Continuent Tungsten - Scalable Saa S Data Management
 
Research Assignment For Active Directory
Research Assignment For Active DirectoryResearch Assignment For Active Directory
Research Assignment For Active Directory
 
MySQL HA Presentation
MySQL HA PresentationMySQL HA Presentation
MySQL HA Presentation
 
Sql server 2016 it just runs faster sql bits 2017 edition
Sql server 2016 it just runs faster   sql bits 2017 editionSql server 2016 it just runs faster   sql bits 2017 edition
Sql server 2016 it just runs faster sql bits 2017 edition
 
Web Speed And Scalability
Web Speed And ScalabilityWeb Speed And Scalability
Web Speed And Scalability
 
Membase Meetup 2010
Membase Meetup 2010Membase Meetup 2010
Membase Meetup 2010
 
Large Scale SQL Considerations for SharePoint Deployments
Large Scale SQL Considerations for SharePoint DeploymentsLarge Scale SQL Considerations for SharePoint Deployments
Large Scale SQL Considerations for SharePoint Deployments
 

Plus de Severalnines

Webinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDBWebinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDB
Severalnines
 
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControlWebinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Severalnines
 
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Severalnines
 
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Severalnines
 
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Severalnines
 
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQLWebinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Severalnines
 
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDBWebinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Severalnines
 
Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?
Severalnines
 
Webinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High AvailabilityWebinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High Availability
Severalnines
 
Webinar slides: How to Get Started with Open Source Database Management
Webinar slides: How to Get Started with Open Source Database ManagementWebinar slides: How to Get Started with Open Source Database Management
Webinar slides: How to Get Started with Open Source Database Management
Severalnines
 

Plus de Severalnines (20)

Cloud's future runs through Sovereign DBaaS
Cloud's future runs through Sovereign DBaaSCloud's future runs through Sovereign DBaaS
Cloud's future runs through Sovereign DBaaS
 
Working with the Moodle Database: The Basics
Working with the Moodle Database: The BasicsWorking with the Moodle Database: The Basics
Working with the Moodle Database: The Basics
 
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDBSysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
SysAdmin Working from Home? Tips to Automate MySQL, MariaDB, Postgres & MongoDB
 
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
(slides) Polyglot persistence: utilizing open source databases as a Swiss poc...
 
Webinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDBWebinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDB
 
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControlWebinar slides: How to Automate & Manage PostgreSQL with ClusterControl
Webinar slides: How to Automate & Manage PostgreSQL with ClusterControl
 
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
Webinar slides: How to Manage Replication Failover Processes for MySQL, Maria...
 
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
 
Disaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDBDisaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDB
 
MariaDB Performance Tuning Crash Course
MariaDB Performance Tuning Crash CourseMariaDB Performance Tuning Crash Course
MariaDB Performance Tuning Crash Course
 
Performance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDBPerformance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDB
 
Advanced MySql Data-at-Rest Encryption in Percona Server
Advanced MySql Data-at-Rest Encryption in Percona ServerAdvanced MySql Data-at-Rest Encryption in Percona Server
Advanced MySql Data-at-Rest Encryption in Percona Server
 
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket KnifePolyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
Polyglot Persistence Utilizing Open Source Databases as a Swiss Pocket Knife
 
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
Webinar slides: Free Monitoring (on Steroids) for MySQL, MariaDB, PostgreSQL ...
 
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQLWebinar slides: An Introduction to Performance Monitoring for PostgreSQL
Webinar slides: An Introduction to Performance Monitoring for PostgreSQL
 
Webinar slides: Our Guide to MySQL & MariaDB Performance Tuning
Webinar slides: Our Guide to MySQL & MariaDB Performance TuningWebinar slides: Our Guide to MySQL & MariaDB Performance Tuning
Webinar slides: Our Guide to MySQL & MariaDB Performance Tuning
 
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDBWebinar slides: Migrating to Galera Cluster for MySQL and MariaDB
Webinar slides: Migrating to Galera Cluster for MySQL and MariaDB
 
Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?Webinar slides: How to Measure Database Availability?
Webinar slides: How to Measure Database Availability?
 
Webinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High AvailabilityWebinar slides: Designing Open Source Databases for High Availability
Webinar slides: Designing Open Source Databases for High Availability
 
Webinar slides: How to Get Started with Open Source Database Management
Webinar slides: How to Get Started with Open Source Database ManagementWebinar slides: How to Get Started with Open Source Database Management
Webinar slides: How to Get Started with Open Source Database Management
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

Management and Automation of MongoDB Clusters - Slides

  • 1. Confidential MongoDB/TokuMX Automation & Management Jon Tobin Tokutek jon@tokutek.com April 24, 2014 Vinay Joosery Severalnines vinay@severalnines.com
  • 2. Confidential Webinar Housekeeping  This webinar is being recorded  A link to the recording and to a copy of the slides will be posted on tokutek.com  We welcome questions: enter questions into the chat box and we will respond at the end of the presentation  Think of something later?  Email Tokutek at contact@tokutek.com  Email Severalnines at info@severalnines.com 2
  • 3. Confidential Agenda  MongoDB & Automation  What is operational management ?  MongoDB Management caveats  Automation & Management by ClusterControl  Demo 3 Copyright Severalnines AB
  • 4. Confidential Database TCO 4 Copyright Severalnines AB Source: IDC, Maximizing the Business Value of Enterprise Database Applications
  • 5. Confidential Developer’s view of the world 5 Copyright Severalnines AB App DB
  • 6. Confidential DBA’s view of the world 6 Copyright Severalnines AB DB App
  • 7. Confidential MongoDB and Automation  MongoDB is great for developers  MongoDB not as great for ops folks  Lack of operational tools  MMS Management: mainly a monitoring tool  MMS Automation: in alpha  Perhaps not surprising for a 5-yr old product  General-purpose tools can help some  E.g., Puppet, Chef  However… 7 Copyright Severalnines AB
  • 8. Confidential Drawback with Puppet or Chef  Puppet/Chef are appropriate for a group of single-node components  E.g. webservers can be clones of each other..  Deploy 10 webservers, they all look the same..  Distributed databases are more complex  Different node types  Different roles and responsibilities  Specific order for procedures  Using e.g. Chef for deploying a distributed database  Yes, it is possible  How much Chef functionality is actually leveraged vs How much code is written by user? 8 Copyright Severalnines AB
  • 9. Confidential What do Ops folks do? - Deployment  Optimal hardware (CPU/RAM/Disk)  What topology to start with?  Virtualized or barebone? Cloud?  Multi-region or multi-AZ  Good initial configuration settings for DB  OS tuning (high dependency)  Monitoring the DB + underlying OS  Logging 9 Copyright Severalnines AB
  • 10. Confidential What do Ops folks do? - performance monitoring  What do you do when the application is slow?  Is it Disk? CPU? RAM? Badly written queries?  What are the symptoms? (Replication Lag, Page Faults, locks, # connections, …)  Do you need to scale?  How do you scale?  Capacity planning 10 Copyright Severalnines AB
  • 11. Confidential Vertical vs Horizontal scaling 11 Copyright Severalnines AB
  • 12. Confidential What do Ops folks do? - Availability  Keep the service running  How do you detect something has failed?  Drilling down to root cause  Manual vs automatic failover  How do you avoid failures? 12 Copyright 2012 Severalnines AB
  • 13. Confidential What do Ops folks do? - Management  Backup and Restore  Software upgrades and rolling restarts  Configuration changes  Adding nodes or shards  Rebalancing of shards  Compaction 13 Copyright Severalnines AB
  • 14. Confidential Monitoring is not Management 14 Copyright Severalnines AB
  • 15. Confidential Management caveats (1/2)  1 Config server instead of 3  Starting 2 Config servers only not good enough  Read-only config – no changes in cluster state  No new shards can be added, no new users with userid/pwd, …  > 2 Routing Servers  1 router only is a SPOF  ReplicaSet: odd number of replicas  At least 3 to handle voting / network partitioning  To build a ReplicaSet, start with a first node. Use init on it. Add other nodes in the ReplicaSet to it.  Sharding: pre-defined order for procedures  Start config servers (start with 1 node, then add the rest to it)  Start mongos (routers) (start with 1 router, then add more routers)  Build a ReplicaSet and add it as a shard 15 Copyright Severalnines AB
  • 16. Confidential Management caveats (2/2)  Backups  Lock a node, flush, then take a snapshot  For a sharded cluster, a bit more complicated  Config server data need to be saved  All shards backed up at same time for cluster-wide snapshot  Rolling upgrades  Configuration change (e.g. moving a node to a more powerful server), version upgrade/patch, …  E.g. 3 node replicaset, do not shut down 2 nodes. 3rd node will become secondary/read-only.  Defragmentation, resharding, index rebuilds, etc. 16 Copyright Severalnines AB
  • 17. Confidential ClusterControl Automation & Management  Provisioning  Auto deploy a Sharded Cluster in minutes  On-premise or in the cloud  Monitoring  1sec resolution  Both DB and OS stats  Realtime and historical  Management  Manage multiple clusters  Multi data-center  Automate failover, upgrades, backups,…  One-click scaling 17 Copyright Severalnines AB
  • 19. Confidential Demo - Manage multiple clusters thru one pane of glass 19 Copyright Severalnines AB Internal DataCenter East Coast US Internal Data Center West Coast US Public Cloud
  • 21. Confidential Agenda  Common User Issues  What’s TokuMX™  What are the advantages  What should I monitor  How does Severalnines help 21
  • 22. Confidential Common Problems  I can’t ingest sources fast enough  My data is getting too big  I’m spending too much money on infrastructure  DB level locking is slowing me down 22
  • 23. Confidential What is TokuMX?  A open-source fork of MongoDB  Uses proprietary Fractal Trees  Keeps MongoDB APIs (no code change)  Replaces storage code  Builds off of 8+ years of MySQL development 23
  • 24. Confidential What are the Advantages?  Performance  Concurrency (doc level vs DB level)  Cache management (defined vs memory mapped)  Efficient index maintenance (No IO req’d [Fractal Tree])  Compression  Large blocks (4MB)  3 libraries (quicklz, zlib, lzma)  Flash friendly (<reads/writes)  Transactions  MVCC consistent reads (consistent snapshot of data)  Multistatement commit/rollback 24
  • 25. Confidential What Should I Monitor?  Mongo Performance  opcounters  Cache Use  Effectiveness of memory  Space  % full  Compression  Disk Utilization  What’s utilizing my disk(s) 25
  • 26. Confidential Performance  Opcounters let you know how your app is using the database  Establish a baseline for normal behavior 26
  • 28. Confidential Cache Use  Want to know how effective your cache is  When you need to expand cache 28
  • 30. Confidential Space 30 Don’t run out of space Compression ratio will help predict future needs
  • 31. Confidential Disk Utilization  Can be tricky  No one thing causes IO  Helps to troubleshoot if you can narrow it to reads or writes  Baselines can help decrease time to resolve 31
  • 32. Confidential Severalnines Measuring Utilization 32 miss = read If fsync rises… checkpoints COMING IN TokuMX 1.4.2!
  • 33. Confidential Everything Else  TokuMX tends to trade IO utilization for CPU  Compression and decompression  FT maintenance  Just monitor your CPUs like any other resource  SeveralNines is exceptional at this…try it for yourself  db.serverStatus() is your friend  We’re moving interesting stats there to make it easier to monitor 33 ***THIS IS ABNORMAL BEHAVIOR MEANT SPECIFICALLY FOR ILLUSTRATION!!
  • 35. Confidential Thank You!  TokuMX  http://www.tokutek.com/products/tokumx-for-mongodb/  ClusterControl for MongoDB  www.severalnines.com/clustercontrol  Severalnines Blog (severalnines.com/blog)  Tokutek Blog (tokutek.com/tokuview)  More Questions? Contact us at:  contact@tokutek.com  info@severalnines.com 35

Notes de l'éditeur

  1. 5yr old MongoDB