选择适宜的innodblogfilesizeMySQL综合电脑资料
Choosingproperinnodblogfilesize
选择适宜的innodblogfilesize
Ifyou’redoingsignificantamountofwritestoInnodb
tablesdecentsizeofinnodblogfilesizeisimportantfor
MySQLPerformance.Howeversettingittoolargewi
increaserecoverytime,soincaseofMySQLcrashorpower
failureitmaytakelongtimebeforeMySQLServeris
operationalagain.
如果对Innodb数据表有大量的写入操作,那么选择适宜的
innodblogfilesize值对提升MySQL性能很重要,
Sohowtofindtheoptimalbination?
那么,怎么才能找到最正确的配置组合呢?
Firstletmeexplainwhathappensonrecoveryandwhylarge
innodblogfilesizeslowsdownrecovery.Duringstartupafter
crashInnodbscanslogfilestofindlogrecordswhichonly
havebeenappliedinmemoryanddonotexistintablespace.
Logrecordsformodificationswhichdidnotmakeittothe
tablespacearethenapplied.Thisiscaedredophaseof
recovery.Itcantakeprettylongtimeandthistime
dependsonnumberofvariables-howlargearerows?
(smaerlogrecordsmeanmorerecordsforsamesizedlogs),
howrandomweredatamodifications(randomupdateswi
needrandomIOtocheckifpagesareuptodate),numberof
unflushedpagesininnodbbufferpoolanditssizeaswe
asperformanceofIOsubsystem.Astherearesomany
factors,itishardtoeupwithanygeneralguidelines,
somethinglike1GBper10minutesofrecoverytime-
insteadyouwouldneedtoapplyloadwhichistypicalfor
yourapplication,crashMySQLinthemiddleandwatchitto
recover.Doingthisseveraltimesyoushouldbeableto
estimatehowlongrecoverytimetakeandadjustyourlogs
apropriately.Thegoodthingis-redophaseisclosetobe
proportionaltosizeoflogfiles,soexpect1GBlogsto
taketwicetimetoapplyparedto512MBlogs.
首先,让我先来解释一下恢复时都发生了什么事情以及为什么设置
innodblogfilesize的值太大了会让恢复过程变慢
关键字:MYSQL
您可能关注的文档
最近下载
- 高考英语单词3500乱序版 ..pdf VIP
- 2025-2026学年广东省深圳市龙岗区七年级(上)期末语文试卷.docx VIP
- 教科版一年级下册科学教学计划.docx VIP
- 船舶X波段雷达说明书FAR-2827.pdf VIP
- 古野液晶雷达型号 1623中文说明书.docx VIP
- UX3320-应用笔记V1.2近年原文.pdf VIP
- 长春理工大学2024-2025学年第1学期《高等数学(上)》期末考试试卷(B卷)附参考答案.pdf
- 早产儿脑室内出血预防专家共识(2025).pptx VIP
- 2019年河南专升本考试公共英语(真题).pdf VIP
- 2025年房地产经纪人经纪人职业道德失范投诉处理专题试卷及解析.pdf VIP
原创力文档

文档评论(0)