how to achieve lower tco and better scalability with mariadb and linux on power

28
Achieve lower TCO and be3er scalability with MariaDB and Linux on Power Anders Karlsson Principal Sales Engineer, MariaDB Kenneth Albinsson CTO and Co-Owner, Conoa

Upload: mariadb

Post on 26-Jan-2017

340 views

Category:

Software


2 download

TRANSCRIPT

Page 1: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

AchievelowerTCOandbe3erscalabilitywithMariaDBand

LinuxonPowerAndersKarlsson

PrincipalSalesEngineer,MariaDBKennethAlbinsson

CTOandCo-Owner,Conoa

Page 2: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

Agenda

• IntroducFontoAndersKarlssonandKennethAlbinsson

• WhatisMariaDB• MariaDBArchitecture• MigraFngtoMariaDB• MariaDBonPower• Anotherviewfromapartner• ConclusionandQ&A

27.11.15 2

Page 3: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

IntroducFons

• AndersKarlsson•  Hasbeeninthedatabasebusinessformorethen30years•  Hasworkedasasupportengineer,porFngengineer,performanceconsultant,trainerbutmainlyasaSalesEngineer

•  HasworkedforOracle,Informix,MySQLetc.•  JoinedMySQLin2004andMariaDBin2012

• KennethAlbinsson•  HasbeenintheUNIXbusinessformorethan20years•  HasworkedasanUNIX&Linuxconsultant,performanceconsultant.Frequentlyengagedasainstructor

•  HasworkedforIBM•  JoinedConoain2012asaco-owner

Page 4: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

WhatisMariaDB?

• MariaDBisaSQL-basedrelaFonaldatabasesystemreleasedasOpenSourceundertheGPLv2License

• MariaDBwascreatedanddevelopedbythefoundersofMySQL,Michael“Monty”WideniusandDavidAxmark

• Technically,MariaDBisaforkofMySQL,butishasmanyaddiFonsandchangestoit

• MariaDBCorpora+onisthenameofthebusinessenFtybehindMariaDB

• MariaDBFounda+onistheOpenSourceenFtythatensureslongevityanddevelopmentoftheproduct

Page 5: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDB–IntheLAMPStack

•  Linux–operaFngsystem•  Apache–webserver•  MySQL/MariaDB-database•  PHP/Python–scripFnglanguage

Page 6: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBArchitecture

• MariaDBisatheartaclassicClient/Serverdatabasesystem

• MariaDBiswri3eninC(andsomeC++)usingabisonbasedSQLparser

• MariaDBSupportsSQL-92withsomeSQL-99extensionssuchasSQL/PSM

• MySQLApplicaFoncompaFble• ManyConnectors/Driversavailable

•  PHP,C,JAVA,ODBCetc.

Page 7: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDB Server

MariaDBArchitectureMariaDB Applications

MariaDB Connectors

Connection (Thread) pool

SQL Interface SQL Parser Optimizer Caching

Storage Engines

MyISAM InnoDB MEMORY ARIA

Filesystem / Storage

Plugins

Auditing

Password validation

Daemons

Authentication

Page 8: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBArchitecture

• ClientsconnecttoMariaDBthroughtheconnecFonpool

•  ThreadscanbesharedbyconnecFons•  1ExecuFngconnecFon=1thread•  SSLconnecFonsaresupported

• SQLstatementsareparsedandsecuritychecked

• OpFmizercreatesanopFmalquerypath

Page 9: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBArchitecture–StorageEngines

• MariaDBStorageEnginesaretheplugincomponentsthatdoestheactualdatamanagement

•  TransacFonhandling•  Diskstorage/retrieval•  LockingandConcurrencycontrol•  Datacaching

• ThemostcommonStorageEngineisInnoDB/XtraDB

Page 10: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

InnoDB Buffers

Disk storage

InnoDBArchitecture

Tablespace Transaction log

System Tablespace

User Tablespace

Undo log

Logfile1 Logfile2

Buffer pool Transaction log buffer

Transaction COMMIT Checkpoint

Page 11: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBArchitecture-ReplicaFon

• MariaDBhasbuiltinasynchronousreplicaFonsupport

• AMariaDBslaveandmasterusethesamesoiware,it’sjustama3erofconfiguraFon

• MariaDBalsosupport• MulFplemastersonasingleslave• MulFthreadedslaves

Page 12: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBonPOWER8

• Builtfromthesamesoiwarebaseasotherplanorms

• ManyperformanceimprovementstotakeadvantageofPOWER88

•  UsingAdvanceToolChain(ATC)forimprovedperformanceandcompaFbility

• WorksjustlikeMariaDBalwaysdoes,but•  Be3er!•  Faster!

Page 13: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBonPOWER8-Performance

•  MariaDBopFmizedforPOWER8

•  POWER8-Big+Li3leEndianarchitectureshavebeenmadepartofthebuildsystemofMariaDB

•  PreliminarybenchmarkingresultsshowsthatMariaDBperformanceonPOWER8percorenearly4xmorethanonx86!

Page 14: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MigraFngtoMariaDBonPOWER8• MariaDBonPOWER8looksandworksjustlikeMariaDBonanyotherplanorm,butbe3er

• MigraFngfromMySQLissimple•  AsMariaDBatit’scoreiscompaFblewithMySQL,mostlyonecanjustupgradethesoiware

•  Insomecasesexport/importmightbenecessary’

• MigraFngfromotherplanormsisalsosimple•  Export/Importistherecommendedway•  Simplefilecopyworksinmanycases

• MariaDBisapplicaFoncompaFblewithMySQLandacrossplanorms

Page 15: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

Kenneth Albinsson from Conoa will now give his view on MariaDB on IBM Power

Page 16: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

AboutConoa

• EnterpriseOpenSourceExperts• Foundedin2010• Typicalcustomer:Largecompanieswithinbank/finance,manufacturing,gaming,mediaandgovernment

• CompaniespartneringwithConoa

Page 17: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

EnterprisevsCommunity

• CommunityversionsisallaboutinnovaFon• Enterpriseversionsfocusonsecurity,stability&performance

• RedHatEnterpriseLinuxvsFedora• MariaDBEnterprisesubscripFon• OpenPOWERvsx86

Page 18: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

ThePowerofperformanceandscalability

• IBMtalksaboutBigData• Wetalkabouttwodifferentloads• JavaandDatabases• PowerSystemsisdesignedforBigData• x86isachip,notasystemdesign• Ourowntestsconfirms2-4Xperformancegainscomparedtox86

Page 19: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

Thebigsecret

• WhyisPOWER8sogreat?•  (nopunintended)

• SMT=8vsSMT=2(x86)• TheOSsees8logicalcoresinsteadofjust1• TheOScanschedulemorethreadsoneachphysicalcore

• ButitisnotjustabouttheCPU•  Be3ermemory&IObandwith,RAS,FGPA,CAPIetc.

Page 20: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

OpenPOWERFoundaFon

• LinuxonPower• OpenPOWERFoundaFon2013• Altera,IBM,Google,Mellanox,NVIDIA,SamsungElectronics,SuzhouPowerCoreTechnologyandTyan

• Today150+members• GrowingtheEcosystemaroundPower

Page 21: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBonOpenPOWER

• Trueopennesswithregardstobothsoiwareandhardware

• RedHatEnterpriseLinux• RedHatEnterpriseVirtualizaFon• MariaDB• OpenPOWERisanopenalternaFvetox86• Openisallaboutchoice

Page 22: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

IBMPowerSystemsLCServerfamily

• BuiltforLinuxbigdataworkloads,opFmizedforcloudandclusterdeployments

• PowerSystemsavailableaslowas$6,595• S812LC• S822LCh3p://www-03.ibm.com/systems/power/hardware/linux-lc.html

Page 23: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

Tryityourself

• Daytrader3(JavastocktraderapplicaFon)www-01.ibm.com/soiware/webservers/appserv/was/performance.html

• MariaDBsysbenchh3ps://www-304.ibm.com/partnerworld/wps/servlet/ContentHandler/stg_ast_sys_wp_primer-run-sysbench-mariadb

• HammerDB2.18www.hammerdb.com

Page 24: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

Links

• OpenPOWERFoundaFonopenpowerfoundaFon.org

• IBMPowerandMariaDBwww-304.ibm.com/partnerworld/wps/servlet/ContentHandler/stg_com_sys-ibm-power-systems-and-mariadb

•  Conoawww.conoa.se

Page 25: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

Back to Anders Karlsson, MariaDB

Page 26: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBonLinuxonPOWER8

• LinuxonPOWER8looksjustlikeLinuxonanyotherplanorm

• MariaDBonPOWER8looksandworksjustlikeMariaDBonanyotherplanorm

•  Justfaster,be3er,morescalableandevenmorereliable

• MariaDBonLinuxwithApacheandPHPonPOWER8worksandfeelsjustlikeLAMPonanyotherplanorm

Page 27: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

MariaDBonIBMPOWERreferences

• MariaDB10.1doing1millionqueriespersecond

•  h3ps://blog.mariadb.org/10-1-mio-qps/

• PerformanceoverviewonMariaDBonPOWER8vsMariaDBonIntelx86

•  h3ps://mariadb.com/sites/default/files/mariaDB_performance_on_linux_on_power.pdf

• MariaDBPOWER8Landingpage•  h3ps://mariadb.com/products/mariadb-ibm-power8

Page 28: How to achieve lower TCO and better scalability with MariaDB and Linux on Power

©MariaDBCorporaFonAb.

QuesFonsandAnswers

AndersKarlsson:[email protected]:[email protected]