©2017Percona1
PeterZaitsev
MigratingtoOpenSourceDatabasesBestPractices
CEOPerconaPerconaTechnicalWebinarsApril6,2017
©2017Percona2
AboutPresentation
ReasonstomigratetoOpenSourceDatabases
UnderstandingOpenSource
MigrationBestPractices
Issuestobeawareabout
©2017Percona3
TalkaboutHighLevelStrategy
WillnottalkaboutspecificchallengesconvertingStoredProcedureSyntaxfromMicrosoftSQLServertoMySQL
©2017Percona4
WhymovetoOpenSourceDatabase?
©2017Percona5
ItisaTrend
©2017Percona6
EspeciallyforNewGenerationTechnologies
©2017Percona7
OpenSourceDatabasesHaveWon
7
• 78%ofcompaniesrunonopensourcesoftware
• 66%consideropensourcesoftwarebeforeotheroptions
• 4outof5developersusesomeopensourcesoftware
• Gartnerpredictsby2018morethan70%ofin-houseapplicationswillbebuiltonopensourcedatabases
©2017Percona8
ItisPrudent
LowerTotalCostofOwnership(3x-10x)
SoftwareVendor-Lock-InRisks
©2017Percona9
OtherReasons
Easiertoattractandretaintalent
FasterInnovation
BetterCompatibility
©2017Percona10
WhatisOpenSource?SomeClarificationsareinOrder
©2017Percona11
OpenSourcevsFreeSoftware
NottheSamebutoftensameinpractice
OpenSourceInitiativehttps://opensource.org/osd-annotated
FreeSoftwareFoundationhttps://www.gnu.org/philosophy/free-sw.en.html
©2017Percona12
FreeSoftwareDefinition
Thefreedomtoruntheprogramasyouwish,foranypurpose
Thefreedomtostudyhowtheprogramworks,andchangeitsoitdoesyourcomputingasyouwish
Thefreedomtoredistributecopiessoyoucanhelpyourneighbor
Thefreedomtodistributecopiesofyourmodifiedversionstoothers
©2017Percona13
OpenSource
OpenSourceinSpiritorOpenSourceinMarketing?
©2017Percona14
NotQuiteOpenSource
OpenCore
EventuallyOpenSource
VisibleSourceCode(NoLicense)
OpenSourceCompatible
©2017Percona15
NotaCritiqueoftheBusinessModels!
Wehavealotmoregreatsoftwarechoicesdueto
these!
©2017Percona16
OpenCoreOpenSourceCommunityversionandProprietary“Enterprise”versionwithmorefeatures
Examples:MySQL,MongoDB
Good:TendtohaveHighQualitywellmaintained“Core”version
Bad:Somefeaturesget“reserved”forEnterpriseversiononly
©2017Percona17
EventuallyOpenSource
ProprietaryVersionwithexpirationtimertobecomeOpenSource
Examples:MariaDBMaxScale(BSLlicense)
Good:NoFeaturesareProprietaryforever
Bad:Olderversioncanbepoorlymaintained,unlicensedusagetrap
©2017Percona18
VisibleSourceCode(NoLicense)
Noteverysourcecodeyoucanfind(ieGitHub)hasalicense
Default– Youhavenousagerights
©2017Percona19
OpenSourceCompatible
SoftwareAdvertisedAsOpenSourceCompatiblewhilenotbeingone
SoftwareandCloudBasedServices
Benefits:ScalabilityandManagebility
Drawbacks:VendorLockIncanbeSerious
©2017Percona20
SubscriberonlyBuilds
DoesnotconflictwithOpenSourceLicense
Sourceonlyisimpracticaltouseformanyusers
Alternativethirdpartybuildscanbeavailable
©2017Percona21
SubscriberonlyTools
SameLicensedoesnothavetoapplytoallsoftware
MonitoringandManagementtoolsareoftenProprietary
Examples:MySQLEnterpriseMonitor,MongoDBOpsManager
ContributestoVendorLock-In
©2017Percona22
NotAllOpenSourceLicensesaretheSame
CopyleftandPermissive?
RelationshipstoPatents?
Restrictionsonuse?
GreatRecentArticlehttps://writing.kemitchell.com/2017/03/29/OSS-Business-Perception-Report.html
©2017Percona23
OpenSourceGovernance
Community/Foundation
•Linux,Apache,OpenStack,PostgreSQL
Corporation
•MySQL,MongoDB
©2017Percona24
MigrationBestPractices
©2017Percona25
RecognizeDifferences
OpenSourceDatabasewillnotbe100%thesameasyourfavoriteproprietarydatabase
©2017Percona26
LikeThis
VS
27
ChoseTechnologyorTechnologies
ManyOpenSourceTechnologiesareavailable
ThereisNoSilverBullet
©2017Percona28
PolyglotPersistence
UsingMultipleTechnologieswithin
sameDataInfrastructure
©2017Percona29
ChoosingRight
ChoseMinimalFeasibleSetofTechnologies
Choosethepathwelltraveled
©2017Percona30
ChooseRightApplication
NotAllApplicationsareEquallyFeasibleforMigration
FocusonGettingEarlyWinsnotLargestWins
©2017Percona31
RightTargetsRightWay
Easy
• Simple• DevelopmentTeamAvailable
• ApplicationSupportsOpenSourceDatabase
• EnthusiasticTeam
Hard
• Complex• UsesAdvancedFeatures• NoSourceAvailable• NoMoreMaintained• TeamAgainstMigration
31
©2017Percona32
RightTeam
CurrentEnthusiasticTeam
MigrationTeam
DonotDomigrationbytheteaminterestedintheProjectFailure
©2017Percona33
EnsureManagementCommitment
ClearManagementCommitmentandSupportisgreat
Changesalwaysimpactpeoplecareers
Areyougoodplayingpolitics?Issomeoneonyourteam?
©2017Percona34
TwoApproachestoMigration
MigrateExisting
Application
DoasPartofApplicationRewrite
34
©2017Percona35
HavePatience
OpportunitiestoDoMigrationwillpresentthemselves
TheProcessfromideato“live”maytakelongerthanyouexpect
©2017Percona36
PlanningMigration
FeasibilityStudy
ProofofConcept
ScopingandPlanning
Executing
©2017Percona37
DoingtheSwitch?
Isthisstop-switch-startcutoff?
Isoldsystemremainsonthestandby?
Arebothsystemstooperateatthesametime?
DataSyncissues
©2017Percona38
ToolsforMigration
NoPerfectTools
Manageyourexpectationsforanythingbuttrivialapplications
MindOperationalBestPracticesDifferences
©2017Percona39
ToolstokeepinMind
MySQLWorkbench
InspirerMnMTK
AWSDatabaseMigrationService
SQLinesTools
Ora2PGtoolformigratingtoPostgreSQL
DBConvert
©2017Percona40
ChoseRightPartners
Migrationisaveryspecificskilldifferentfromgreenfielddevelopment
Isyourpartnermotivatedinprojectsuccessorfailure?
DifferenttasksinMigrationrequiredifferentskills
Join us at Percona LiveWhen: April 24-27, 2017Where: Santa Clara, CA, USAThe Percona Live Open Source Database Conference is a great event for users of any level using open source database technologies.
• Get briefed on the hottest topics• Learn about building and maintaining high-performing deployments • Listen to technical experts and top industry leadersUse promo code “WebinarPL” to save an extra 15% off.https://www.percona.com/live/17/registerSponsorship opportunities available as well: https://www.percona.com/live/17/be-a-sponsor Call for papers for Birds of a Feather open!Send your proposals to [email protected]
DATABASE PERFORMANCEMATTERS
DatabasePerformanceMattersDatabasePerformanceMattersDatabasePerformanceMattersDatabasePerformanceMattersDatabasePerformanceMatters