migrations with minimum downtime
play

migrations with minimum downtime Shuhao Wu Shopify April 24, 2018 - PowerPoint PPT Presentation

Ghostferry: the swiss army knife of live data migrations with minimum downtime Shuhao Wu Shopify April 24, 2018 Problems with Existing Tools Cloud limitations No access to the filesystem. No direct access to commands like CHANGE


  1. Ghostferry: the swiss army knife of live data migrations with minimum downtime Shuhao Wu Shopify April 24, 2018

  2. Problems with Existing Tools Cloud limitations   No access to the filesystem.  No direct access to commands like CHANGE MASTER. Performance impact of mysqldump.  Must copy a whole table at a time.  CHANGE MASTER …? mysqldump --what? 

  3. Ghostferry: The Solution Easy: single binary solution to moving data.  Customizable: a library to implement arbitrary migration flows.  Proven: used to migrate 70 TiBs of data at Shopify.  Confident: algorithm modeled and understood with formal methods (TLA+)  Open source: MIT, https://github.com/Shopify/ghostferry 

  4. Ghostferry: the Swiss Army Knife of Live Data Migrations with Minimum Downtime General Session  Tuesday ▪ 4:50 – 5:15 PM ▪ Room G ▪

  5. Vitess High performance, scalable, and available MySQL clustering system for the Cloud Sugu Sougoumarane CTO, PlanetScale @ssougou

  6. Database trends ● Transactional data explosion ● Move to the cloud ● DBAs transitioning to DBEs

  7. Vitess capabilities ● Leverage MySQL ● Take away the pain of sharding ● Make resharding robust and easy ● Pluggable sharding schemes ● Cloud-ready ● Observability

  8. The Community In production Evaluating Quiz of Kings

  9. In conclusion ● Scale out MySQL ● Run in the cloud ● Vitess sessions Migrating to Vitess at (Slack) Scale ○ ○ Designing and launching the next-generation database system @ Slack: from whiteboard to production Observability features of Vitess ○

  10. Automated DBA Nikolay Samokhvalov twitter: @postgresmen email: ru@postgresql.org

  11. Hacker News “Who is hiring” – April 2018 https://news.ycombinator.com/item?id=16735011 List of job postings, popular among startups. 1068 messages (as of Apr 17 2018) 2

  12. Already automated: Little to zero automatization: ● Setup/tune hardware, OS, FS ● Postgres parameters tuning ● Provision Postgres instances ● Query analysis and optimization ● Create replicas Index set optimization ● High Availability: ● ● Detailed monitoring detect failures and switch to replicas ● Verify optimization ideas ● Create backups Basic monitoring ● 3

  13. Meet postgres_dba postgres_dba – The missing set of useful tools for Postgres https://github.com/NikolayS/postgres_dba 4

  14. Back to full-fledged automation ● Detect performance bottlenecks ● Predict performance bottlenecks ● Prevent performance bottlenecks The ultimate goal of automatization 5

  15. DIY automated pipeline for DB optimization How to automate database optimization using ecosystem tools and AWS? Analyze: ● pg_stat_statements auto_explan ● ● pgBadger to parse logs, use JSON output ● pg_query to group queries better Configuration: ● annotated.conf ● pgtune, pgconfigurator, postgresqlco.nf (wip) ● ottertune Suggested indexes ● (useful: pgHero, POWA, HypoPG, dexter, plantuner) Conduct experiments: ● pgreplay to replay logs (different log_line_prefix, you need to handle it) ● EC2 spot instances Machine learning 6 ● MADlib

  16. Meet PostgreSQL.support AI-based cloud-friendly platform to automate database administration Steve AI-based expert in database tuning Sign up for early access: Max AI-based expert in query optimization and http://PostgreSQL.support Postgres indexes Nancy AI-based expert in resource planning. Conducts experiments with benchmarks 7

  17. Thanks ! Come hear more: Wednesday, 11:00 a.m. Nikolay Samokhvalov ru@postgresql.org twitter: @postgresmen http://PostgreSQL.support 8

  18. Andy's Guide on How to Get Tenure in Databases @andy_pavlo

  19. 2 Research Papers Classes Taught Grants Funded

  20. 3 # of Crazy Emails! →Physics: E≠mc 2 →Math: Fermat's Thm →ComSci: P=NP

  21. 4 Crazy Emails Received Emails Per Month

  22. 5 1970s: Self-Adaptive 1990s: Self-Tuning 2010s: Self-Driving

  23. 6 Self-Driving DBMS →What to change? →When to change it? →Was it helpful?

  24. 7 Today @ 11:30am Room 203 @andy_pavlo

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend