Mysql & Microsoft Windows Status Check and Field Experiences
Total Page:16
File Type:pdf, Size:1020Kb
Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Die folgenden Informationen sind zur Skizzierung der grundsätzlichen Produktausrichtung von Oracle bestimmt. Sie sind nur für reine Informationszwecke gedacht und dürfen nicht in einen Vertrag aufgenommen werden. Es besteht keine Verpflichtung Material, Code oder Funktionalitäten zu liefern und die Informationen dürfen nicht als Grundlage für Einkaufsentscheidungen herangezogen werden. Die Entwicklung, Produktplanung und die zeitliche Koordinierung von Produkteigenschaften oder Funktionalitäten bleibt in der alleinigen Verantwortung von Oracle. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. MySQL & Microsoft Windows Status check and field experiences Carsten Thalheimer Technical Sales Consultant ([email protected]) Linux - Virtualization - MySQL (LVM GBU - EMEA) Copyright © 2013, Oracle and/or its affiliates. All rights reserved. The MySQL DBA dilemma Often DBAs don’t influence the OS … . MS Windows is delegated by Management or a strategic decision . Application server are based on Windows anyhow (.net) . Our server are running in the Cloud (Azure) . Company has only Windows Administrators (RHCE are too expensive) . Access to other resources only on certified Windows tools . Existing hardware doesn’t support Linux/Unix, certification only for Windows . Virtualisation is focused on Windows (Hyper-V) . Client interface depends on Windows (Embedded devices) . Free resources on Windows farm only Copyright © 2013, Oracle and/or its affiliates. All rights reserved. The MySQL DBA dilemma 82% of all OSes accessing the Internet are Windows based Provided I have to use Windows for the OS layer… ... is MySQL still a good choice? Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda . Available MySQL components for MySQL . Windows Edition & MySQL database, the right choices . Installation of MySQL . Windows specific OS tuning . MySQL products for Windows . Summary Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda . Available MySQL components for MySQL . Windows Edition & MySQL database, the right choices . Installation of MySQL . Windows specific OS tuning . MySQL products for Windows . Summary Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Driving MySQL Innovation Red bullet points: Announced during MySQL Connect 2013 MySQL Enterprise Monitor 2.2 MySQL Cluster Manager 1.1 MySQL Enterprise Backup 3.7 MySQL Database 5.6 MySQL Utilities 1.3 MySQL Cluster 7.1 Oracle VM Template for MySQL MySQL Cluster 7.2 MySQL Cluster 7.3 Enterprise Edition MySQL Cluster Manager 1.0 MySQL Cluster Manager 1.2 MySQL Workbench 6.0 MySQL Workbench 5.2 MySQL Enterprise Oracle MySQL Enterprise Monitor 3.0 Certifications MySQL Utilities 1.0 MySQL Enterprise Backup 3.9 MySQL Database 5.5 MySQL yum Linux repository MySQL Windows Installer MySQL Migration Wizard MySQL Enterprise Backup 3.5 All GA! - 2013 MySQL Enterprise Security MySQL for Excel MySQL Enterprise Monitor 2.3 MySQL Proxy 0.8.3 MySQL Enterprise Scalability MySQL Enterprise Backup 3.8 MySQL Applier for Hadoop MySQL Enterprise Audit MySQL 5.7.2 DMR* MySQL Utilities Fabric Lab* MySQL Enterprise HA MySQL Multi Master Rep. Lab* with DRBD Lab and DMR* 2013 All GA! - 2010 All GA! - 2011 All GA! - 2012 *Development Milestone Release Plus Connector/ODBC, Connector/PHP, Connector/Net, Connector/J, Connector Python, Connector /C++, Connector/C, Ruby Driver Copyright © 2013, Oracle and/or its affiliates. All rights reserved. MySQL Products available for Windows Grey bullet points: Not (or not yet) availeable on Windows MySQL Enterprise Monitor 2.2 MySQL Cluster Manager 1.1 MySQL Enterprise Backup 3.7 MySQL Database 5.6 MySQL Utilities 1.3 MySQL Cluster 7.1 Oracle VM Template for MySQL MySQL Cluster 7.2 MySQL Cluster 7.3 Enterprise Edition MySQL Cluster Manager 1.0 MySQL Cluster Manager 1.2 MySQL Workbench 6.0 MySQL Workbench 5.2 MySQL Enterprise Oracle MySQL Enterprise Monitor 3.0 Certifications MySQL Utilities 1.0 MySQL Enterprise Backup 3.9 MySQL Database 5.5 MySQL yum Linux repository MySQL Windows Installer MySQL Migration Wizard MySQL Enterprise Backup 3.5 All GA! - 2013 MySQL Enterprise Security MySQL for Excel MySQL Enterprise Monitor 2.3 MySQL Proxy 0.8.3 MySQL Enterprise Backup 3.8 MySQL Enterprise Scalability MySQL Applier for Hadoop MySQL Enterprise Audit MySQL 5.7.2 DMR* MySQL Utilities Fabric Lab* MySQL Enterprise HA MySQL Multi Master Rep. Lab* with DRBD All GA! - 2010 All GA! - 2011 All GA! - 2012 Lab and DMR* 2013 *Development Milestone Release Plus Connector/ODBC, Connector/PHP, Connector/Net, Connector/J, Connector Python, Connector /C++, Connector/C, Ruby Driver Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Win specific MySQL 5.5+ optimizations Improved performance: • Replaced RW-locks in MySQL Server with Windows native RW-locks (Windows 7 & Windows 2008 R2 and onward). • Replaced condition variables in MySQL Server with Windows native condition variables. • Replaced statistical increments using mutexes to instead use Windows native atomic increments. • Made use of lightweight native condition variables on Windows Vista and onwards in InnoDB. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. MySQL Database (outdated numbers) SysBench Benchmarks - Windows MySQL 5.5.6 (Default InnoDB) MySQL 5.1.50 (InnoDB Plug-in) MySQL 5.1.50 (InnoDB built-in) Intel x86_64 4 CPU x 2 Cores/CPU 1560% performance gain 3.166 GHz, 8GB RAM for MySQL 5.5 over 5.1; at scale Copyright © 2013, Oracle and/or its affiliates. All rights reserved. MySQL Database downloads (not representative) MySQL on Windows? You’re not alone! . Windows is the #1 platform (by far)! . Windows download numbers are impressive . Are this just developers downloading? . Aren’t people also deploying on Windows more and more? . But: A lot of (often outdated) MySQLs are based on Linux Distributions Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Products and Tools for all of these Roles It’s even more than on other supported MySQL OSes . Systems administrator . DBA . Security administrator . User Management . Database Design . Application Development . Business User data access . DevOps Copyright © 2013, Oracle and/or its affiliates. All rights reserved. What does Oracle provide It’s even more than on other supported MySQL OSes . Installation . How To Blogs / Docs . Upgrade . Forum MySQL on Win . Configuration ~~~ . Development Tools . 24x7 Oracle Premier Support* . Libraries and Frameworks . Access to knowledge zone* . DBA Tools . Integrated Windows Authentication * . Database Migration . MySQL Audit* . Windows OS / Cluster . MySQL Thread Pools* . Notification . Enterprise Backup/Recovery * . ODBC . Enterprise Monitoring * . Excel Integration * Only available for MySQL subscribers Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda . Available MySQL components for MySQL . Windows Edition & MySQL database, the right choices . Installation of MySQL . Windows specific OS tuning . MySQL products for Windows . Summary Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Microsoft Windows Version (none complete list) Desktop Editions Server Editions Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Microsoft versioning Rough differentiation and relevance for MySQL . Use case (Server preferred): Desktop or Server e.g. - Windows XP / Windows Vista vs. Windows 2003 Server* . Architecture & Revision (Windows 2008 R2+, 64 Bit preferred): 32 Bit or 64 Bit e.g. - Windows 2008 (32 Bit) vs. Windows 2008 (64 Bit) vs. Windows 2008 R2* . Edition (it should address MySQL Memory & CPU needs) Memory & CPU e.g. - Windows 2008 R2 Std. (32 GB, 4 Sockets) vs. Windows 2008 R2 Ent.* (2 TB, 8 Sockets) vs. Windows 2008 R2 DC.* (2 TB, 64 Sockets) Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Selection of Windows Versions: DB size ? Make sure to provide enough memory for MySQL! CPU Memory 32 / 64 Bit Windows XP Prof. 2 CPUs 4 GB / 128 GB Windows 2003 R2 SE 4 CPUs 4 GB / 32 GB Windows 7 Prof. 2 CPUs 4 GB / 192 GB Windows 2008 R2 Std. 4 CPUs x / 32 GB Windows 2008 R2 Ent. 8 CPUs x / 2 TB Windows 8 Prof. 2 CPUs 4 GB / 512 GB Windows 2012 ESS. 2 CPUs x / 64 GB Windows 2012 Std. 64 CPUs x / 4 TB Copyright © 2013, Oracle and/or its affiliates. All rights reserved. The perfect MySQL Server Memory / Disk / CPU (in order) . Prio 1: Memory – Only limited from OS, not from MySQL . The more the better, ideally whole database fits into memory (InnoDB) . Prio 2: Disk – Only limited from OS (file size Fat32 vs. NTFS), not from MySQL . The faster the better, Raid 10 and SSD are preferred . Prio 3: CPU – 32 / 64 Bit MySQL releases are available, MySQL license for up to 4 Sockets . 64 Bit is recommended (MySQL scales up to ~ 48 Cores) Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda . Available MySQL components for MySQL . Windows Edition & MySQL database, the right choices . Installation of MySQL . Windows specific OS tuning . MySQL