Mariadb Maxscale 2.0, Basis for a “Two-Speed IT Architecture“
Total Page:16
File Type:pdf, Size:1020Kb
MariaDB MaxScale 2.0, basis for a “Two-speed IT architecture“ Harry Timm, Business Development Manager [email protected] Telef: +49-176-2177 0497 MariaDB FASTEST GROWING OPEN SOURCE DATABASE* ▪ Innovation by the community for the community ▪ Ubiquitous distribution and accessibility ▪ 12 Million users ▪ Led by the founders of MySQL Application of the Year MariaDB MaxScale *Jan 2015 – April 2016, DB-Engines.com 2 Industry Leaders in 45 Countries Trust Critical Business Data to MariaDB Financial Services Travel Retail & eCommerce Gvmt & Education Telecom Technology & Internet Media & Social 3 Innovation by Users, For Users Multisource Galera XtraDB Storage MaxScale MaxScale WebScaleSQL Replication Cluster Engine Binlog Schema patches Sharding Encryption Atomic TokuDB Storage InnoDB Storage CONNECT Spiral Arms – Security Key Writes Engine Engine storage engine Spider Management Sharding Plugin OLIVIER BERTRAND 4 MariaDB Architecture Application Extensible Architecture CONNECTORS C/C++, Java, PHP JDBC ODBC Drive community innovation NoSQL ▪ SQL CRUD API ▪ Increase flexibility ▪ Easy to customize MariaDB Multi-Master Cluster MariaDB MaxScale KERNEL EXTENSIBILITY Replication Production Plug- Replication Kernel ins STORAGE EXTENSIBILITY Transac In- Graph & NoSQL Scalability Analytics tional memory Search OPERATING SYSTEM / FILE SYSTEM / SAN / CLOUD 5 Importance of Custom Applications in a corporation over time Online shop generates Corporation: Mission-Critical more and more business. Automated product ordering Web site is important added. source to generate additional revenue, DataMart and backend integration added. Used daily by entire organization. Retail company Inflection point when generates Web site with Online shop “nice to have” becomes mission- critical Importance / No. /of users Importance “departmental: nice to have” day 1 6 months 1 year MariaDB Enterprise Subscription MariaDB Enterprise Subscription ▪ Production ready MariaDB open source project ▪ Includes MariaDB MaxScale ▪ Productivity tools ▪ Upgrades, patches, and notifications ▪ Customer Portal ▪ Consultative help ▪ World’s best open source database technical services and support MariaDB Enterprise Cluster ▪ Advanced, multi-master clustering for distributed database deployments 7 MariaDB MaxScale 2.0 The basis for a “Two-speed IT architecture“ Digital Business Model Digital Business Model ▪ Faster delivery of digital products and services ▪ Understand customers behavior ▪ Digitize business process Challenges for IT ▪ Time to market agility ▪ System integration Weak systems integration and slow database-access times can prevent optimal customer experience ▪ Real-time insights Difficult to integrate operational process flow to analytics 9 Reference: McKinsey Digital Business Model - A Two-speed IT architecture for the digital enterprise Two speed IT architecture Customer Centric ▪ Continuous Delivery Front-end ▪ Microservices ▪ Modular deployment Application Database ▪ Security Transaction Focused ▪ Scalability ▪ High quality data management Back-end 10 Two speed IT architecture Customer Centric ▪ Continuous Delivery Front-end ▪ Microservices ▪ Modular deployment Application MaxScale Database ▪ Security Transaction Focused ▪ Scalability ▪ High quality data management Back-end 11 MariaDB MaxScale MaxScale is a database proxy allows databases and apps to be fully decoupled, enabling admin processes to run without affecting apps and for apps to evolve without hampering underlying databases. High Security Scalability Availability Data Streaming Secure database Manage your Ensure uptime Stream firewall to prevent scaled-out with no single point transactional data cyber attacks like infrastructure of failure and to data lake for SQL injection and without changing minimize real-time analytics DDos application code downtime during upgrade 12 Security Protect against security threats such as SQL injection, DDoS attack and unauthorized data access Client Data in Motion SQL ▪ End to end data encryption Query Error Select from customer Query failed: 1141 Where id = 5:SELECT * FROM 1 3 Error: Required WHERE/HAVING Data in Use CUSTOMERS; clause is missing ▪ MaxAdmin Security enhancement (local only access) 2 Firewall Filter Data at Rest ▪ Firewall: Whitelisting/Blacklisting MaxScale ▪ Connection rate limitation to prevent DDoS attack 13 Manage your scale out environment Manage your scale out environment without impacting user experience Content Aware ▪ aware of the content of the request ▪ aware of the configuration and state of the server Query Routing ▪ Load balancing: Monitor and balance transaction load Write ▪ Read/Write splitting Read Replication ▪ Replicate data from master to large number of slaves 14 Multi-tenant Database Scaling Load Segregation across applications • Galera cluster or Master-Slave cluster Online Reporting Application Application • Connection based or Statement based • One service per workload configured to • Route on weighted bias of server • Monitors the cluster and elect the master • Online Application Service: MaxScale • Weight by online property of servers RoutingRo • Reporting Application Service: • Weight by reporting property of servers OnlineWeight=1000 OnlineWeight=1000 OnlineWeight=1 ReportingWeight=1 ReportingWeight=1 ReportingWeight=1000 ● Traffic profile based segregated routing ● No application change required ● Send write intensive traffic to write optimized servers Server1 Server3 Server2 © 2015, MariaDB Corp. Upgrade from one version to another version Tee-filter to duplicate queries to current version in production new version in staging QLA filter logs query performance Queries sent to new version Validate Performance QLA filter logs query syntax Queries sent to new version Validate functionality ● Validate functionality and performance on new version before moving to production ● Minimize risk © 2015, MariaDB Corp. High Availability Ensure High Availability with no single point of 4 CHANGE MASTER to new_master; failure 1 START SLAVE Master Ensure database uptime 3 STOP SLAVE ▪ Automatic failover Failover Script ▪ No impact on read transaction when master script fails 2 master_down event Minimize database downtime binlog cache ▪ Database upgrade without impacting user experience 4 Promote as master Slaves 17 Data Streaming Provide real time transactional data to data lake environment for machine learning or real-time analytics. ▪ Capture change data in the binary log events and replicate the events from MariaDB to Kafka producer in real-time from Master to slave to offload the replication load from master Binary log Master events Avro or JSON events MaxScale Binlog, Avro, Binlog, Avro, JSON JSON Slaves Slaves Data Warehouse 18 MariaDB Galera Cluster Improve developer productivity with simplified applications Client Client Client Write Scaling • MariaDB Enterprise Cluster • Multi-master replication for write MaxScale Scalability • MaxScale for load balancing 19 Customer Success Story Company Overview Business Challenge With over four million calls and 100,000 orders Existing environment could not match the data handled each week on its platform, LeadDesk has growth LeadDesk was experiencing. The company become one of Europe’s leading providers of could not afford any latency greater than ten contact centre technology. milliseconds for its customers or any unplanned downtime. Why MariaDB MaxScale “With MariaDB MaxScale, there is no technical ▪ Easy sharding without application level changes limit for scalability through sharding, and we were able to deploy quickly without having to ▪ Quick deployment modify our applications. MariaDB is the best ▪ Flexible, pluggable architecture made further in town for cloud database solutions and customization possible this is why we chose MaxScale over others.” - Olli Nokso-Koivisto CEO of LeadDesk 20 • A three-node MariaDB Enterprise Cluster with advanced multimaster, synchronous clustering technology designed for high availability • One node MaxScale intelligent database gateway that gives you minimum downtime, as well as added security, scalability and interoperability • Everything in a pre-configured solution for easy deployment on Microsoft Azure • Simple interface to enable you to be up and running in minutes • Comprehensive 24/7 support and consultative services from the experts at MariaDB Get Started with MariaDB Enterprise Cluster and MaxScale for Microsoft Azure: https://azure.microsoft.com/enus/marketplace/partners/mariadb/cluster-maxscale MariaDB for YOU! Harry Timm, Business Development Manager [email protected] Telef: +49-176-2177 0497 Weitere Informationen: www.mariadb.com.