相关文章推荐
重感情的水桶
·
如何在PowerShell中有效地修改HTM ...
·
1 年前
·
大鼻子的手术刀
·
JS ...
·
1 年前
·
坏坏的山羊
·
BorderLayout控件大小的设置_bo ...
·
1 年前
·
豪爽的冰淇淋
·
QT ...
·
1 年前
·
Code
›
TiKV 配置文件描述 | PingCAP 文档中心
https://docs.pingcap.com/zh/tidb/stable/tikv-configuration-file
无聊的豆浆
9 月前
</noscript><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TPX49SBK" height="0" width="0" style="display: none; visibility: hidden" aria-hidden="true"/></noscript><div id="___gatsby"><div style="outline:none" tabindex="-1" id="gatsby-focus-wrapper"><style data-emotion="css 6ko3zs">.css-6ko3zs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:fixed;z-index:1100;top:0;left:auto;right:0;background-color:#1976d2;color:#fff;background-color:#f9f9f9;border-bottom:1px solid #e5e5e5;box-shadow:0px 1px 6px rgba(0, 0, 0, 0.08);height:5rem;}@media print{.css-6ko3zs{}}</style><style data-emotion="css foju0o">.css-foju0o{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:fixed;z-index:1100;top:0;left:auto;right:0;background-color:#1976d2;color:#fff;background-color:#f9f9f9;border-bottom:1px solid #e5e5e5;box-shadow:0px 1px 6px rgba(0, 0, 0, 0.08);height:5rem;}@media print{.css-foju0o{}}</style><header class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation4 MuiAppBar-root MuiAppBar-colorPrimary MuiAppBar-positionFixed doc-site-header mui-fixed css-foju0o"><style data-emotion="css 1xw2ef0">.css-1xw2ef0{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:16px;padding-right:16px;min-height:56px;height:100%;}@media (min-width:600px){.css-1xw2ef0{padding-left:24px;padding-right:24px;}}@media (min-width:0px){@media (orientation: landscape){.css-1xw2ef0{min-height:48px;}}}@media (min-width:600px){.css-1xw2ef0{min-height:64px;}}@media (min-width:900px){.css-1xw2ef0{padding-left:2rem;padding-right:2rem;}}</style><div class="MuiToolbar-root MuiToolbar-gutters MuiToolbar-regular css-1xw2ef0"><style data-emotion="css 16bbyrv">.css-16bbyrv{text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-16bbyrv:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-16bbyrv:hover{background-color:transparent;}}.css-16bbyrv.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-16bbyrv{;}}</style><style data-emotion="css iuftj9">.css-iuftj9{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-iuftj9::-moz-focus-inner{border-style:none;}.css-iuftj9.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-iuftj9{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-iuftj9:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-iuftj9:hover{background-color:transparent;}}.css-iuftj9.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-iuftj9{;}}</style><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-iuftj9" tabindex="0" type="button" aria-label="menu"><style data-emotion="css vubbuv">.css-vubbuv{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="MenuIcon"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg></button><style data-emotion="css a3xyjy">.css-a3xyjy{z-index:1200;}</style><style data-emotion="css 13tqxrv">@media (min-width:0px){.css-13tqxrv{;}}@media (min-width:900px){.css-13tqxrv{display:block;}}</style><div class="MuiBox-root css-13tqxrv"><style data-emotion="css tx8jsd">.css-tx8jsd{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;}</style><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://cn.pingcap.com/" style="text-decoration:none"><style data-emotion="css uz5bjn">.css-uz5bjn{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:6.75rem;}@media (min-width:0px){.css-uz5bjn{;}}@media (min-width:600px){.css-uz5bjn{display:block;}}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-uz5bjn" focusable="false" aria-hidden="true" viewbox="0 0 769.89 203.08"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path fill="#082265" d="M100.11,47.34l-88-25.1A9.5,9.5,0,0,0,0,31.38v162.2a9.51,9.51,0,0,0,9.48,9.5,9.35,9.35,0,0,0,2.22-.26l88-21h0a9.48,9.48,0,0,0,7.3-9.25V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#00aeef" d="M160.05,41.57a9.55,9.55,0,0,0-6.88-9.11L41.16.37A9.5,9.5,0,0,0,29,9.51V132.59a9.47,9.47,0,0,0,11.72,9.23l112.14-27a9.47,9.47,0,0,0,7.28-9.26Z"/><path fill="#303eab" d="M100.11,47.34,29,27.07V132.59a9.47,9.47,0,0,0,11.72,9.23L107,125.88V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#082265" d="M576.1,126.26h0l-.23.37a40.12,40.12,0,0,1-13.72,13.09,36.62,36.62,0,0,1-18.78,5.43c-10.94,0-20.51-4.36-28.42-13a43.82,43.82,0,0,1-11.37-31,43.09,43.09,0,0,1,11.74-29.38c7.62-8.17,16.81-12.31,27.3-12.31,14.37-.13,25.2,5.8,33.13,18.13L576,78h.22l9.33-5.77a51.65,51.65,0,0,0-15.42-16.39,48.17,48.17,0,0,0-26.73-8.09A46.85,46.85,0,0,0,507.66,63c-9.94,10.23-15,23.28-15,38.77,0,15,5,28.08,14.84,38.9,9.81,10.64,21.69,16,35.33,16h.51c17.92-.37,32.69-9.06,42.11-24.6Z"/><polygon fill="#082265" points="645.84 49.09 633.16 49.09 586.01 154.63 601.05 154.63 615.63 119.55 615.65 119.55 620.8 108.59 620.78 108.59 639.76 64.05 658.36 108.59 631.66 108.59 626.79 119.55 662.69 119.55 677.4 154.63 690.66 154.63 645.84 49.09"/><path fill="#082265" d="M759.63,58.75c-7-6.32-15.81-9.52-26.18-9.52H699.3v105.4h12.44V113.34h0V102.25h0V60.59H734a24.73,24.73,0,0,1,16.22,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H721.77v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C770,72.89,766.58,64.87,759.63,58.75Z"/><rect fill="#082265" x="296.25" y="51.17" width="12.44" height="12.44"/><rect fill="#082265" x="296.25" y="79.04" width="12.44" height="75.74"/><path fill="#082265" d="M483.63,147.21V114.69a38.6,38.6,0,0,0-12.25-29.2c-8.22-8.22-18.1-12.27-29.35-12a39.17,39.17,0,0,0-27.82,12.54,40.08,40.08,0,0,0-11.29,28.49,41,41,0,0,0,12.24,29.59c8.19,8.18,18,12.12,29.22,11.71a38.78,38.78,0,0,0,27.48-12.33v5.17m0,0c0,6.88-2.73,12.89-8.11,17.88a27.1,27.1,0,0,1-19,7.73,27.83,27.83,0,0,1-16.93-5.64,25.92,25.92,0,0,1-9-10.54l-9.52,5.5a36.63,36.63,0,0,0,9.94,12c6.6,5.25,14.75,8.13,24.23,8.54.59,0,1.18,0,1.77,0a40.89,40.89,0,0,0,26-9.25c8.17-6.52,12.32-14.86,12.32-24.8v-2.95m-12-31.74a29.23,29.23,0,0,1-8.41,20.22,25.68,25.68,0,0,1-19.5,8.38,27.3,27.3,0,0,1-20.2-8.39,28.22,28.22,0,0,1-8.66-20.34,28.66,28.66,0,0,1,7.88-20.61,27.21,27.21,0,0,1,19.53-9.45c.51,0,1,0,1.5,0,7.61,0,14,2.85,19.45,8.69A28.51,28.51,0,0,1,471.59,115.47Z"/><path fill="#082265" d="M274.1,58.75c-7-6.32-15.81-9.52-26.19-9.52H213.76v105.4h12.45V113.34h0V102.25h0V60.59h22.24a24.73,24.73,0,0,1,16.23,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H236.24v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C284.5,72.89,281.05,64.87,274.1,58.75Z"/><path fill="#082265" d="M357.54,74.41c-9.92,0-18.3,3.43-24.94,10.2s-9.91,15.24-9.91,25.33v44.53h12V108.86a21.82,21.82,0,0,1,6.75-16.1A22.08,22.08,0,0,1,357.54,86a21.49,21.49,0,0,1,15.82,6.75,21.86,21.86,0,0,1,6.89,16.1v45.61h12V109.94c0-10.09-3.34-18.61-9.92-25.33A33.47,33.47,0,0,0,357.54,74.41Z"/></g></g></svg></a></div><style data-emotion="css 5qlh60">.css-5qlh60{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding-left:2rem;height:100%;}.css-5qlh60>:not(style)+:not(style){margin:0;margin-left:24px;}@media (min-width:0px){.css-5qlh60{;}}@media (min-width:900px){.css-5qlh60{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}</style><div class="css-5qlh60"><style data-emotion="css kiou0g">.css-kiou0g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="MuiBox-root css-kiou0g"><a style="text-decoration:none" hreflang="zh" href="/zh/"><style data-emotion="css 2jgwiy">.css-2jgwiy{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#282a36;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,"IBM Plex Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji";display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}</style><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">文档中心</div></a></div><div class="MuiBox-root css-kiou0g"><a style="text-decoration:none" hreflang="zh" href="/zh/tidb/stable"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">TiDB</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://asktug.com/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">社区</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://cn.pingcap.com/contact/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">联系我们</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://cn.pingcap.com/product/#SelectProduct" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy"><style data-emotion="css xnd31y">.css-xnd31y{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:inherit;padding-top:0.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-xnd31y" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="DownloadIcon"><path d="M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"/></svg></div></a></div></div><style data-emotion="css 1vn3uc0">.css-1vn3uc0{color:#282a36;}@media (min-width:900px){.css-1vn3uc0{;}}</style><div class="MuiBox-root css-1vn3uc0"><style data-emotion="css btg76o">.css-btg76o{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-btg76o:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-btg76o:hover{background-color:transparent;}}.css-btg76o.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-btg76o:hover{box-shadow:none;}.css-btg76o.Mui-focusVisible{box-shadow:none;}.css-btg76o:active{box-shadow:none;}.css-btg76o.Mui-disabled{box-shadow:none;}</style><style data-emotion="css 1ei260h">.css-1ei260h{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-1ei260h::-moz-focus-inner{border-style:none;}.css-1ei260h.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1ei260h{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1ei260h:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1ei260h:hover{background-color:transparent;}}.css-1ei260h.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-1ei260h:hover{box-shadow:none;}.css-1ei260h.Mui-focusVisible{box-shadow:none;}.css-1ei260h:active{box-shadow:none;}.css-1ei260h.Mui-disabled{box-shadow:none;}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorInherit MuiButton-disableElevation css-1ei260h" tabindex="0" type="button" id="header-nav-items" aria-haspopup="true"><style data-emotion="css 6xugel">.css-6xugel{display:inherit;margin-right:8px;margin-left:-4px;}.css-6xugel>*:nth-of-type(1){font-size:20px;}</style><span class="MuiButton-startIcon MuiButton-iconSizeMedium css-6xugel"><style data-emotion="css 1x9zct">.css-1x9zct{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:6.75rem;height:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1x9zct" focusable="false" aria-hidden="true" viewbox="0 0 769.89 203.08"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path fill="#082265" d="M100.11,47.34l-88-25.1A9.5,9.5,0,0,0,0,31.38v162.2a9.51,9.51,0,0,0,9.48,9.5,9.35,9.35,0,0,0,2.22-.26l88-21h0a9.48,9.48,0,0,0,7.3-9.25V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#00aeef" d="M160.05,41.57a9.55,9.55,0,0,0-6.88-9.11L41.16.37A9.5,9.5,0,0,0,29,9.51V132.59a9.47,9.47,0,0,0,11.72,9.23l112.14-27a9.47,9.47,0,0,0,7.28-9.26Z"/><path fill="#303eab" d="M100.11,47.34,29,27.07V132.59a9.47,9.47,0,0,0,11.72,9.23L107,125.88V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#082265" d="M576.1,126.26h0l-.23.37a40.12,40.12,0,0,1-13.72,13.09,36.62,36.62,0,0,1-18.78,5.43c-10.94,0-20.51-4.36-28.42-13a43.82,43.82,0,0,1-11.37-31,43.09,43.09,0,0,1,11.74-29.38c7.62-8.17,16.81-12.31,27.3-12.31,14.37-.13,25.2,5.8,33.13,18.13L576,78h.22l9.33-5.77a51.65,51.65,0,0,0-15.42-16.39,48.17,48.17,0,0,0-26.73-8.09A46.85,46.85,0,0,0,507.66,63c-9.94,10.23-15,23.28-15,38.77,0,15,5,28.08,14.84,38.9,9.81,10.64,21.69,16,35.33,16h.51c17.92-.37,32.69-9.06,42.11-24.6Z"/><polygon fill="#082265" points="645.84 49.09 633.16 49.09 586.01 154.63 601.05 154.63 615.63 119.55 615.65 119.55 620.8 108.59 620.78 108.59 639.76 64.05 658.36 108.59 631.66 108.59 626.79 119.55 662.69 119.55 677.4 154.63 690.66 154.63 645.84 49.09"/><path fill="#082265" d="M759.63,58.75c-7-6.32-15.81-9.52-26.18-9.52H699.3v105.4h12.44V113.34h0V102.25h0V60.59H734a24.73,24.73,0,0,1,16.22,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H721.77v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C770,72.89,766.58,64.87,759.63,58.75Z"/><rect fill="#082265" x="296.25" y="51.17" width="12.44" height="12.44"/><rect fill="#082265" x="296.25" y="79.04" width="12.44" height="75.74"/><path fill="#082265" d="M483.63,147.21V114.69a38.6,38.6,0,0,0-12.25-29.2c-8.22-8.22-18.1-12.27-29.35-12a39.17,39.17,0,0,0-27.82,12.54,40.08,40.08,0,0,0-11.29,28.49,41,41,0,0,0,12.24,29.59c8.19,8.18,18,12.12,29.22,11.71a38.78,38.78,0,0,0,27.48-12.33v5.17m0,0c0,6.88-2.73,12.89-8.11,17.88a27.1,27.1,0,0,1-19,7.73,27.83,27.83,0,0,1-16.93-5.64,25.92,25.92,0,0,1-9-10.54l-9.52,5.5a36.63,36.63,0,0,0,9.94,12c6.6,5.25,14.75,8.13,24.23,8.54.59,0,1.18,0,1.77,0a40.89,40.89,0,0,0,26-9.25c8.17-6.52,12.32-14.86,12.32-24.8v-2.95m-12-31.74a29.23,29.23,0,0,1-8.41,20.22,25.68,25.68,0,0,1-19.5,8.38,27.3,27.3,0,0,1-20.2-8.39,28.22,28.22,0,0,1-8.66-20.34,28.66,28.66,0,0,1,7.88-20.61,27.21,27.21,0,0,1,19.53-9.45c.51,0,1,0,1.5,0,7.61,0,14,2.85,19.45,8.69A28.51,28.51,0,0,1,471.59,115.47Z"/><path fill="#082265" d="M274.1,58.75c-7-6.32-15.81-9.52-26.19-9.52H213.76v105.4h12.45V113.34h0V102.25h0V60.59h22.24a24.73,24.73,0,0,1,16.23,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H236.24v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C284.5,72.89,281.05,64.87,274.1,58.75Z"/><path fill="#082265" d="M357.54,74.41c-9.92,0-18.3,3.43-24.94,10.2s-9.91,15.24-9.91,25.33v44.53h12V108.86a21.82,21.82,0,0,1,6.75-16.1A22.08,22.08,0,0,1,357.54,86a21.49,21.49,0,0,1,15.82,6.75,21.86,21.86,0,0,1,6.89,16.1v45.61h12V109.94c0-10.09-3.34-18.61-9.92-25.33A33.47,33.47,0,0,0,357.54,74.41Z"/></g></g></svg></span><style data-emotion="css 1n4a93h">.css-1n4a93h{display:inherit;margin-right:-4px;margin-left:8px;}.css-1n4a93h>*:nth-of-type(1){font-size:20px;}</style><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div><style data-emotion="css jnv64h">.css-jnv64h{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-left:auto;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media (min-width:0px){.css-jnv64h>:not(style)+:not(style){margin:0;margin-left:8px;}}@media (min-width:1200px){.css-jnv64h>:not(style)+:not(style){margin:0;margin-left:24px;}}</style><div class="css-jnv64h"><style data-emotion="css 1qlh2t1">.css-1qlh2t1{color:#282a36;}</style><div class="MuiBox-root css-1qlh2t1"><style data-emotion="css 1mvsusm">.css-1mvsusm{text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-1mvsusm:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1mvsusm:hover{background-color:transparent;}}.css-1mvsusm.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-1mvsusm{;}}</style><style data-emotion="css jwr93t">.css-jwr93t{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-jwr93t::-moz-focus-inner{border-style:none;}.css-jwr93t.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-jwr93t{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-jwr93t:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-jwr93t:hover{background-color:transparent;}}.css-jwr93t.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-jwr93t{;}}</style><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-jwr93t" tabindex="0" type="button"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LanguageIcon"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"/></svg></button><style data-emotion="css t5gsfy">.css-t5gsfy{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-t5gsfy:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-t5gsfy:hover{background-color:transparent;}}.css-t5gsfy.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-t5gsfy:hover{box-shadow:none;}.css-t5gsfy.Mui-focusVisible{box-shadow:none;}.css-t5gsfy:active{box-shadow:none;}.css-t5gsfy.Mui-disabled{box-shadow:none;}@media (min-width:0px){.css-t5gsfy{;}}@media (min-width:1200px){.css-t5gsfy{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}}</style><style data-emotion="css 1csz7wa">.css-1csz7wa{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-1csz7wa::-moz-focus-inner{border-style:none;}.css-1csz7wa.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1csz7wa{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1csz7wa:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1csz7wa:hover{background-color:transparent;}}.css-1csz7wa.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-1csz7wa:hover{box-shadow:none;}.css-1csz7wa.Mui-focusVisible{box-shadow:none;}.css-1csz7wa:active{box-shadow:none;}.css-1csz7wa.Mui-disabled{box-shadow:none;}@media (min-width:0px){.css-1csz7wa{;}}@media (min-width:1200px){.css-1csz7wa{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorInherit MuiButton-disableElevation css-1csz7wa" tabindex="0" type="button" id="header-lang-switch" aria-haspopup="true"><span class="MuiButton-startIcon MuiButton-iconSizeMedium css-6xugel"><style data-emotion="css 1slalk2">.css-1slalk2{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;fill:#282a36;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1slalk2" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LanguageIcon"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"/></svg></span><style data-emotion="css 15r93eu">.css-15r93eu{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:inherit;}</style><span class="MuiTypography-root MuiTypography-body1 css-15r93eu">语言</span><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1slalk2" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-iuftj9" tabindex="0" type="button"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="SearchIcon"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg></button><style data-emotion="css ahtg4s">.css-ahtg4s{max-width:13rem;}@media (min-width:0px){.css-ahtg4s{;}}@media (min-width:1200px){.css-ahtg4s{display:block;}}</style><form class="MuiBox-root css-ahtg4s" novalidate="" autocomplete="off"><style data-emotion="css 24u6h2">.css-24u6h2 .MuiOutlinedInput-root:hover fieldset{border-color:#0ca6f2;border-width:1px;}.css-24u6h2 .MuiOutlinedInput-root.Mui-focused fieldset{border-color:#0ca6f2;border-width:1px;}</style><style data-emotion="css fzbqas">.css-fzbqas .MuiOutlinedInput-root:hover fieldset{border-color:#0ca6f2;border-width:1px;}.css-fzbqas .MuiOutlinedInput-root.Mui-focused fieldset{border-color:#0ca6f2;border-width:1px;}</style><style data-emotion="css bj7gct">.css-bj7gct{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;min-width:0;padding:0;margin:0;border:0;vertical-align:top;width:100%;}.css-bj7gct .MuiOutlinedInput-root:hover fieldset{border-color:#0ca6f2;border-width:1px;}.css-bj7gct .MuiOutlinedInput-root.Mui-focused fieldset{border-color:#0ca6f2;border-width:1px;}</style><div class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-bj7gct"><style data-emotion="css-global 1prfaxn">@-webkit-keyframes mui-auto-fill{from{display:block;}}@keyframes mui-auto-fill{from{display:block;}}@-webkit-keyframes mui-auto-fill-cancel{from{display:block;}}@keyframes mui-auto-fill-cancel{from{display:block;}}</style><style data-emotion="css sv5gtw">.css-sv5gtw{font-size:1rem;line-height:1.4375em;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgba(0, 0, 0, 0.87);box-sizing:border-box;position:relative;cursor:text;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;position:relative;border-radius:4px;padding-left:14px;background:#fff;}.css-sv5gtw.Mui-disabled{color:rgba(0, 0, 0, 0.38);cursor:default;}.css-sv5gtw:hover .MuiOutlinedInput-notchedOutline{border-color:rgba(0, 0, 0, 0.87);}@media (hover: none){.css-sv5gtw:hover .MuiOutlinedInput-notchedOutline{border-color:rgba(0, 0, 0, 0.23);}}.css-sv5gtw.Mui-focused .MuiOutlinedInput-notchedOutline{border-color:#1976d2;border-width:2px;}.css-sv5gtw.Mui-error .MuiOutlinedInput-notchedOutline{border-color:#d32f2f;}.css-sv5gtw.Mui-disabled .MuiOutlinedInput-notchedOutline{border-color:rgba(0, 0, 0, 0.26);}</style><div class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart css-sv5gtw"><style data-emotion="css 1a6giau">.css-1a6giau{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:0.01em;max-height:2em;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;white-space:nowrap;color:rgba(0, 0, 0, 0.54);margin-right:8px;}</style><div class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-outlined MuiInputAdornment-sizeSmall css-1a6giau"><span class="notranslate"></span><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="SearchIcon"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg></div><style data-emotion="css f2zrvi">.css-f2zrvi{font:inherit;letter-spacing:inherit;color:currentColor;padding:4px 0 5px;border:0;box-sizing:content-box;background:none;height:1.4375em;margin:0;-webkit-tap-highlight-color:transparent;display:block;min-width:0;width:100%;-webkit-animation-name:mui-auto-fill-cancel;animation-name:mui-auto-fill-cancel;-webkit-animation-duration:10ms;animation-duration:10ms;padding-top:1px;-moz-appearance:textfield;padding:8.5px 14px;padding-left:0;}.css-f2zrvi::-webkit-input-placeholder{color:currentColor;opacity:0.42;-webkit-transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-f2zrvi::-moz-placeholder{color:currentColor;opacity:0.42;-webkit-transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-f2zrvi:-ms-input-placeholder{color:currentColor;opacity:0.42;-webkit-transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-f2zrvi::-ms-input-placeholder{color:currentColor;opacity:0.42;-webkit-transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-f2zrvi:focus{outline:0;}.css-f2zrvi:invalid{box-shadow:none;}.css-f2zrvi::-webkit-search-decoration{-webkit-appearance:none;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi::-webkit-input-placeholder{opacity:0!important;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi::-moz-placeholder{opacity:0!important;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi:-ms-input-placeholder{opacity:0!important;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi::-ms-input-placeholder{opacity:0!important;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi:focus::-webkit-input-placeholder{opacity:0.42;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi:focus::-moz-placeholder{opacity:0.42;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi:focus:-ms-input-placeholder{opacity:0.42;}label[data-shrink=false]+.MuiInputBase-formControl .css-f2zrvi:focus::-ms-input-placeholder{opacity:0.42;}.css-f2zrvi.Mui-disabled{opacity:1;-webkit-text-fill-color:rgba(0, 0, 0, 0.38);}.css-f2zrvi:-webkit-autofill{-webkit-animation-duration:5000s;animation-duration:5000s;-webkit-animation-name:mui-auto-fill;animation-name:mui-auto-fill;}.css-f2zrvi:-webkit-autofill{border-radius:inherit;}</style><input type="search" aria-invalid="false" id="doc-search" placeholder="搜索文档" value="" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputTypeSearch MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart css-f2zrvi"/><style data-emotion="css 19w1uun">.css-19w1uun{border-color:rgba(0, 0, 0, 0.23);}</style><style data-emotion="css igs3ac">.css-igs3ac{text-align:left;bottom:0;right:0;top:-5px;left:0;margin:0;padding:0 8px;pointer-events:none;border-radius:inherit;border-style:solid;border-width:1px;overflow:hidden;min-width:0%;border-color:rgba(0, 0, 0, 0.23);}</style><fieldset aria-hidden="true" class="MuiOutlinedInput-notchedOutline css-igs3ac"><style data-emotion="css hdw1oc">.css-hdw1oc{float:unset;overflow:hidden;padding:0;line-height:11px;-webkit-transition:width 150ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;transition:width 150ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;}</style><legend class="css-hdw1oc"><span class="notranslate"></span></legend></fieldset></div></div></form></div></div></header><style data-emotion="css s1brf2">.css-s1brf2{margin-top:5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}</style><div class="PingCAP-Doc MuiBox-root css-s1brf2"><style data-emotion="css hboir5">.css-hboir5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;}</style><div class="MuiBox-root css-hboir5"><style data-emotion="css 2tzg8">.css-2tzg8{width:18.75rem;border-right:1px solid #E5E4E4;}@media (min-width:0px){.css-2tzg8{;}}@media (min-width:1200px){.css-2tzg8{display:block;}}</style><aside class="MuiBox-root css-2tzg8"><style data-emotion="css 1eohm8p">.css-1eohm8p{position:-webkit-sticky;position:sticky;top:5rem;height:100%;max-height:calc(100vh - 7rem);overflow-y:auto;padding:1rem;}</style><div class="MuiBox-root css-1eohm8p"><style data-emotion="css fmyu0n">.css-fmyu0n{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#1976d2;width:100%;height:2rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-style:solid;border-width:1px;border-color:#e5e5e5;margin-bottom:1rem;}.css-fmyu0n:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);}@media (hover: none){.css-fmyu0n:hover{background-color:transparent;}}.css-fmyu0n.Mui-disabled{color:rgba(0, 0, 0, 0.26);}</style><style data-emotion="css 1rq233s">.css-1rq233s{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#1976d2;width:100%;height:2rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-style:solid;border-width:1px;border-color:#e5e5e5;margin-bottom:1rem;}.css-1rq233s::-moz-focus-inner{border-style:none;}.css-1rq233s.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1rq233s{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1rq233s:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);}@media (hover: none){.css-1rq233s:hover{background-color:transparent;}}.css-1rq233s.Mui-disabled{color:rgba(0, 0, 0, 0.26);}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium css-1rq233s" tabindex="0" type="button" id="version-select-button" aria-haspopup="true"><style data-emotion="css 3cb5vr">.css-3cb5vr{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;padding:0 0.25rem;font-size:0.875rem;line-height:1.25rem;}</style><div class="MuiTypography-root MuiTypography-body1 css-3cb5vr">v8.1</div><style data-emotion="css 1n4a93h">.css-1n4a93h{display:inherit;margin-right:-4px;margin-left:8px;}.css-1n4a93h>*:nth-of-type(1){font-size:20px;}</style><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><style data-emotion="css b5l66">.css-b5l66{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);height:1.5rem;width:1.5rem;fill:#999999;margin-right:0.25rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-b5l66" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></span></button><style data-emotion="css 1c58svf">.css-1c58svf .MuiPaper-root{border-radius:6px;margin-top:8px;min-width:268px;color:rgb(55, 65, 81);box-shadow:rgb(255, 255, 255) 0px 0px 0px 0px,rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;}.css-1c58svf .MuiPaper-root .MuiMenu-list{padding:4px 0;}.css-1c58svf .MuiPaper-root .MuiMenuItem-root .MuiSvgIcon-root{font-size:18px;color:rgba(0, 0, 0, 0.6);margin-right:12px;}.css-1c58svf .MuiPaper-root .MuiMenuItem-root:active{background-color:rgba(25, 118, 210, 0.08);}</style><style data-emotion="css yvxbj">.css-yvxbj .MuiPaper-root{border-radius:6px;margin-top:8px;min-width:268px;color:rgb(55, 65, 81);box-shadow:rgb(255, 255, 255) 0px 0px 0px 0px,rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;}.css-yvxbj .MuiPaper-root .MuiMenu-list{padding:4px 0;}.css-yvxbj .MuiPaper-root .MuiMenuItem-root .MuiSvgIcon-root{font-size:18px;color:rgba(0, 0, 0, 0.6);margin-right:12px;}.css-yvxbj .MuiPaper-root .MuiMenuItem-root:active{background-color:rgba(25, 118, 210, 0.08);}</style><style data-emotion="css oe3wem">.css-oe3wem .MuiPaper-root{border-radius:6px;margin-top:8px;min-width:268px;color:rgb(55, 65, 81);box-shadow:rgb(255, 255, 255) 0px 0px 0px 0px,rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;}.css-oe3wem .MuiPaper-root .MuiMenu-list{padding:4px 0;}.css-oe3wem .MuiPaper-root .MuiMenuItem-root .MuiSvgIcon-root{font-size:18px;color:rgba(0, 0, 0, 0.6);margin-right:12px;}.css-oe3wem .MuiPaper-root .MuiMenuItem-root:active{background-color:rgba(25, 118, 210, 0.08);}</style><style data-emotion="css 12mehxg">.css-12mehxg{padding:0;margin:0;list-style:none;outline:0;}</style><ul role="tree" id="left-nav-treeview" aria-multiselectable="false" class="MuiTreeView-root css-12mehxg" tabindex="0" aria-label="left navigation"><style data-emotion="css tx8jsd">.css-tx8jsd{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;}</style><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://docs.pingcap.com/zh" style="text-decoration:none;width:100%;color:inherit"><style data-emotion="css 1gesgke">.css-1gesgke .MuiTreeItem-content{color:#282a36;border-radius:4px;}.css-1gesgke .MuiTreeItem-content:hover{background-color:#f9f9f9;}.css-1gesgke .MuiTreeItem-content.Mui-selected,.css-1gesgke .MuiTreeItem-content.Mui-selected.Mui-focused{background-color:var(--tree-view-bg-color, #EAF6FB);color:var(--tree-view-color, #0A85C2);}.css-1gesgke .MuiTreeItem-content.Mui-selected svg.MuiTreeItem-ChevronRightIcon,.css-1gesgke .MuiTreeItem-content.Mui-selected.Mui-focused svg.MuiTreeItem-ChevronRightIcon{fill:var(--tree-view-color, #0A85C2);}.css-1gesgke .MuiTreeItem-content.Mui-focused{background-color:#f9f9f9;}.css-1gesgke .MuiTreeItem-content .MuiTreeItem-label{font-weight:inherit;color:inherit;}.css-1gesgke .MuiTreeItem-content .MuiTreeItem-iconContainer{;}.css-1gesgke .MuiTreeItem-group{margin-left:0;}.css-1gesgke .MuiTreeItem-group .MuiTreeItem-content{padding-left:16px;}</style><style data-emotion="css 1oy5rnm">.css-1oy5rnm{list-style:none;margin:0;padding:0;outline:0;}.css-1oy5rnm .MuiTreeItem-content{color:#282a36;border-radius:4px;}.css-1oy5rnm .MuiTreeItem-content:hover{background-color:#f9f9f9;}.css-1oy5rnm .MuiTreeItem-content.Mui-selected,.css-1oy5rnm .MuiTreeItem-content.Mui-selected.Mui-focused{background-color:var(--tree-view-bg-color, #EAF6FB);color:var(--tree-view-color, #0A85C2);}.css-1oy5rnm .MuiTreeItem-content.Mui-selected svg.MuiTreeItem-ChevronRightIcon,.css-1oy5rnm .MuiTreeItem-content.Mui-selected.Mui-focused svg.MuiTreeItem-ChevronRightIcon{fill:var(--tree-view-color, #0A85C2);}.css-1oy5rnm .MuiTreeItem-content.Mui-focused{background-color:#f9f9f9;}.css-1oy5rnm .MuiTreeItem-content .MuiTreeItem-label{font-weight:inherit;color:inherit;}.css-1oy5rnm .MuiTreeItem-content .MuiTreeItem-iconContainer{;}.css-1oy5rnm .MuiTreeItem-group{margin-left:0;}.css-1oy5rnm .MuiTreeItem-group .MuiTreeItem-content{padding-left:16px;}</style><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><style data-emotion="css khel7y">.css-khel7y{padding:0 8px;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;}.css-khel7y:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-khel7y:hover{background-color:transparent;}}.css-khel7y.Mui-disabled{opacity:0.38;background-color:transparent;}.css-khel7y.Mui-focused{background-color:rgba(0, 0, 0, 0.12);}.css-khel7y.Mui-selected{background-color:rgba(25, 118, 210, 0.08);}.css-khel7y.Mui-selected:hover{background-color:rgba(25, 118, 210, 0.12);}@media (hover: none){.css-khel7y.Mui-selected:hover{background-color:rgba(25, 118, 210, 0.08);}}.css-khel7y.Mui-selected.Mui-focused{background-color:rgba(25, 118, 210, 0.2);}.css-khel7y .MuiTreeItem-iconContainer{margin-right:4px;width:15px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}.css-khel7y .MuiTreeItem-iconContainer svg{font-size:18px;}.css-khel7y .MuiTreeItem-label{width:100%;min-width:0;padding-left:4px;position:relative;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;}</style><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><style data-emotion="css znl8a3">.css-znl8a3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;min-height:1.75rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:0rem;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="css-znl8a3"><style data-emotion="css 8atqhb">.css-8atqhb{width:100%;}</style><div class="MuiBox-root css-8atqhb"><style data-emotion="css 1hwyipb">.css-1hwyipb{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:inherit;font-size:0.875rem;line-height:1.25rem;}</style><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">文档中心</div></div></div></div></div></li></a><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">关于 TiDB</div></div><style data-emotion="css xjq79n">.css-xjq79n{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;fill:#999999;height:1rem;width:1rem;margin-left:auto;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div><style data-emotion="css 1jozaee">.css-1jozaee{margin:0;padding:0;margin-left:17px;}</style></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">快速上手</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">应用开发</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-4" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">部署标准集群</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-5" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">数据迁移</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-6" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">数据集成</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-7" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">运维操作</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-8" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">监控与告警</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-9" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">故障诊断</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-10" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">性能调优</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-11" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">教程</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-12" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">TiDB 工具</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="true" id="left-nav-treeview-0-13" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">参考指南</div></div><style data-emotion="css 171pefp">.css-171pefp{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;fill:#999999;height:1rem;width:1rem;margin-left:auto;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-171pefp" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div><style data-emotion="css 1xxsnna">.css-1xxsnna{height:auto;overflow:visible;-webkit-transition:height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;margin:0;padding:0;margin-left:17px;}</style><ul class="MuiCollapse-root MuiCollapse-vertical MuiTreeItem-group MuiCollapse-entered css-1xxsnna" style="min-height:0px" role="group"><div class="MuiCollapse-wrapper MuiCollapse-vertical css-hboir5"><div class="MuiCollapse-wrapperInner MuiCollapse-vertical css-8atqhb"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><style data-emotion="css kb2j4b">.css-kb2j4b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;min-height:1.75rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">架构</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">存储引擎 TiKV</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">存储引擎 TiFlash</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">TiDB 分布式执行框架</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/system-variables"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-4" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">系统变量</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/status-variables"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-5" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">服务器状态变量</div></div></div></div></div></li></a><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="true" id="left-nav-treeview-0-13-6" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">配置文件参数</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-171pefp" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div><ul class="MuiCollapse-root MuiCollapse-vertical MuiTreeItem-group MuiCollapse-entered css-1xxsnna" style="min-height:0px" role="group"><div class="MuiCollapse-wrapper MuiCollapse-vertical css-hboir5"><div class="MuiCollapse-wrapperInner MuiCollapse-vertical css-8atqhb"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/tidb-configuration-file"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-6-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><style data-emotion="css snygwd">.css-snygwd{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;min-height:1.75rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:1rem;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="css-snygwd"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">tidb-server</div></div></div></div></div></li></a><a aria-current="page" style="text-decoration:none;width:100%;color:inherit" class="" href="/zh/tidb/stable/tikv-configuration-file"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-6-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-snygwd"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">tikv-server</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/tiflash-configuration"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-6-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-snygwd"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">tiflash-server</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/pd-configuration-file"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-6-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-snygwd"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">pd-server</div></div></div></div></div></li></a></div></div></ul></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-7" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">CLI</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-8" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">命令行参数</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-9" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">监控指标</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-10" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">安全加固</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-11" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">权限</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-12" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">SQL</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-13" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">UI</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/telemetry"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-14" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">遥测</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/error-codes"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-15" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">错误码</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/schedule-replicas-by-topology-labels"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-16" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">通过拓扑 label 进行副本调度</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/external-storage-uri"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-17" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">外部存储服务的 URI 格式</div></div></div></div></div></li></a></div></div></ul></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-14" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">常见问题解答 (FAQ)</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">版本发布历史</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/glossary"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-16" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">术语表</div></div></div></div></div></li></a></ul></div></aside><style data-emotion="css sb2sd0">.css-sb2sd0{width:100%;}@media (min-width:1200px){.css-sb2sd0{max-width:calc(100% - 18.75rem);}}</style><main class="MuiBox-root css-sb2sd0"><style data-emotion="css 1rnnmjb">.css-1rnnmjb{max-width:1340px;width:100%;margin-left:auto;margin-right:auto;display:block;box-sizing:border-box;}</style><div class="MuiBox-root css-1rnnmjb"><style data-emotion="css 90fn5w">.css-90fn5w{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}@media (min-width:0px){.css-90fn5w{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;}}@media (min-width:600px){.css-90fn5w{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}}</style><div class="css-90fn5w"><style data-emotion="css vofosd">.css-vofosd{padding:1.5rem 0;}@media (min-width:0px){.css-vofosd{width:100%;}}@media (min-width:600px){.css-vofosd{width:calc(100% - 17.5rem);}}</style><div class="MuiBox-root css-vofosd"><style data-emotion="css 1ekb41w">.css-1ekb41w{width:100%;margin-left:auto;box-sizing:border-box;margin-right:auto;display:block;padding-left:16px;padding-right:16px;}@media (min-width:600px){.css-1ekb41w{padding-left:24px;padding-right:24px;}}@media (min-width:1536px){.css-1ekb41w{max-width:1536px;}}</style><div class="MuiContainer-root MuiContainer-maxWidthXl doc-content css-1ekb41w"><div class="markdown-body MuiBox-root css-0"><h1 id="tikv-配置文件描述" style="position:relative"><a href="#tikv-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E6%8F%8F%E8%BF%B0" aria-label="tikv 配置文件描述 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>TiKV 配置文件描述</h1><p>TiKV 配置文件比命令行参数支持更多的选项。你可以在 <a href="https://github.com/tikv/tikv/blob/release-8.1/etc/config-template.toml" target="_blank" referrerpolicy="no-referrer-when-downgrade">etc/config-template.toml</a> 找到默认值的配置文件,重命名为 config.toml 即可。</p><p>本文档只阐述未包含在命令行参数中的参数,命令行参数参见 <a href="/zh/tidb/stable/command-line-flags-for-tikv-configuration">TiKV 配置参数</a>。</p><style data-emotion="css 1weqspv">.css-1weqspv{padding-top:0.5rem;padding-bottom:0.5rem;}.css-1weqspv .MuiAlert-message p{margin-bottom:0px;margin-top:0px;}</style><div class="MuiBox-root css-1weqspv"><style data-emotion="css rt4wgs">.css-rt4wgs{font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(30, 70, 32);background-color:rgb(237, 247, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-rt4wgs .MuiAlert-icon{color:#4caf50;}</style><style data-emotion="css 6wf0eq">.css-6wf0eq{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:4px;box-shadow:none;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(30, 70, 32);background-color:rgb(237, 247, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-6wf0eq .MuiAlert-icon{color:#4caf50;}</style><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardSuccess MuiAlert-standard css-6wf0eq" role="alert"><style data-emotion="css 1l54tgj">.css-1l54tgj{margin-right:12px;padding:7px 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:22px;opacity:0.9;}</style><div class="MuiAlert-icon css-1l54tgj"><style data-emotion="css vubbuv">.css-vubbuv{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="AttachmentIcon"><path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"/></svg></div><style data-emotion="css 1xsto0d">.css-1xsto0d{padding:8px 0;min-width:0;overflow:auto;}</style><div class="MuiAlert-message css-1xsto0d"><style data-emotion="css 1h2y6o4">.css-1h2y6o4{font-weight:500;margin-top:-2px;}</style><style data-emotion="css 17ioyuk">.css-17ioyuk{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;margin-bottom:0.35em;font-weight:500;margin-top:-2px;}</style><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">小贴士</div><p>如果你需要调整配置项的值,请参考<a href="/zh/tidb/stable/maintain-tidb-using-tiup#修改配置参数">修改配置参数</a>进行操作。</p></div></div></div><h2 id="全局配置" style="position:relative"><a href="#%E5%85%A8%E5%B1%80%E9%85%8D%E7%BD%AE" aria-label="全局配置 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>全局配置</h2><h3 id="abort-on-panic" style="position:relative"><a href="#abort-on-panic" aria-label="abort on panic permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>abort-on-panic</code></h3><ul><li><p>设置 TiKV panic 时是否调用 <code>abort()</code> 退出进程。此选项影响 TiKV 是否允许系统生成 core dump 文件。</p><ul><li>如果此配置项值为 false,当 TiKV panic 时,TiKV 调用 <code>exit()</code> 退出进程。</li><li>如果此配置项值为 true,当 TiKV panic 时,TiKV 调用 <code>abort()</code> 退出进程。此时 TiKV 允许系统在退出时生成 core dump 文件。要生成 core dump 文件,你还需要进行 core dump 相关的系统配置(比如打开 <code>ulimit -c</code> 和配置 core dump 路径,不同操作系统配置方式不同)。建议将 core dump 生成路径设置在 TiKV 数据的不同磁盘分区,避免 core dump 文件占用磁盘空间过大,造成 TiKV 磁盘空间不足。</li></ul></li><li><p>默认值:false</p></li></ul><h3 id="slow-log-file" style="position:relative"><a href="#slow-log-file" aria-label="slow log file permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>slow-log-file</code></h3><ul><li>存储慢日志的文件。</li><li>如果未设置本项但设置了 <code>log.file.filename</code>,慢日志将输出至 <code>log.file.filename</code> 指定的日志文件中。</li><li>如果本项和 <code>log.file.filename</code> 均未设置,所有日志默认输出到 <code>"stderr"</code>。</li><li>如果同时设置了两项,普通日志会输出至 <code>log.file.filename</code> 指定的日志文件中,而慢日志则会输出至本配置项指定的日志文件中。</li><li>默认值:""</li></ul><h3 id="slow-log-threshold" style="position:relative"><a href="#slow-log-threshold" aria-label="slow log threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>slow-log-threshold</code></h3><ul><li>输出慢日志的阈值。处理时间超过该阈值后会输出慢日志。</li><li>默认值:"1s"</li></ul><h3 id="memory-usage-limit" style="position:relative"><a href="#memory-usage-limit" aria-label="memory usage limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>memory-usage-limit</code></h3><ul><li><p>TiKV 实例的内存使用限制。当 TiKV 的内存使用量接近此阈值时,内部缓存会被清除以释放内存。</p></li><li><p>在大多数情况下,TiKV 实例被设置为占系统可用总内存的 75%,因此你不需要显式指定此配置项。剩余 25% 的内存用于操作系统的页缓存,详情参见 <a href="#capacity"><code>storage.block-cache.capacity</code></a>。</p></li><li><p>在单个物理机上部署多个 TiKV 节点时,你也不需要设置此配置项。在这种情况下,TiKV 实例使用 <code>5/3 * block-cache.capacity</code> 的内存。</p></li><li><p>不同系统内存容量的默认值如下:</p><ul><li>system=8G block-cache=3.6G memory-usage-limit=6G page-cache=2G</li><li>system=16G block-cache=7.2G memory-usage-limit=12G page-cache=4G</li><li>system=32G block-cache=14.4G memory-usage-limit=24G page-cache=8G</li></ul></li></ul><h2 id="log-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#log-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="log span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>log <span class="version-mark">从 v5.4.0 版本开始引入</span></h2><p>日志相关的配置项。</p><p>自 v5.4.0 版本起,废弃原 log 参数 <code>log-rotation-timespan</code>,并将 <code>log-level</code>、<code>log-format</code>、<code>log-file</code>、<code>log-rotation-size</code> 变更为下列参数,与 TiDB 的 log 参数保持一致。如果只设置了原参数、且把其值设为非默认值,原参数与新参数会保持兼容;如果同时设置了原参数和新参数,则会使用新参数。</p><h3 id="level-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#level-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="level span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>level</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>日志等级。</li><li>可选值:"debug","info","warn","error","fatal"</li><li>默认值:"info"</li></ul><h3 id="format-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#format-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="format span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>format</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>日志的格式。</li><li>可选值:"json","text"</li><li>默认值:"text"</li></ul><h3 id="enable-timestamp-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#enable-timestamp-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable timestamp span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-timestamp</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>是否开启日志中的时间戳。</li><li>可选值:"true","false"</li><li>默认值:"true"</li></ul><h2 id="logfile-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#logfile-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="logfile span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>log.file <span class="version-mark">从 v5.4.0 版本开始引入</span></h2><p>日志文件相关的配置项。</p><h3 id="filename-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#filename-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="filename span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>filename</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>log 文件。如果未设置该参数,日志会默认输出到 <code>"stderr"</code>;如果设置了该参数,log 会输出到对应的文件中。</li><li>默认值:""</li></ul><h3 id="max-size-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#max-size-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="max size span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-size</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>单个 log 文件最大大小,超过设定的参数值后,系统自动切分成多个文件。</li><li>默认值:300</li><li>最大值:4096</li><li>单位:MiB</li></ul><h3 id="max-days-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#max-days-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="max days span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-days</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>保留 log 文件的最长天数。<ul><li>如果未设置本参数或把此参数设置为默认值 <code>0</code>,TiKV 不清理 log 文件。</li><li>如果把此参数设置为非 <code>0</code> 的值,在 <code>max-days</code> 之后,TiKV 会清理过期的日志文件。</li></ul></li><li>默认值:0</li></ul><h3 id="max-backups-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#max-backups-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="max backups span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-backups</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>可保留的 log 文件的最大数量。<ul><li>如果未设置本参数或把此参数设置为默认值 <code>0</code>,TiKV 会保存所有的 log 文件;</li><li>如果把此参数设置为非 <code>0</code> 的值,TiKV 最多会保留 <code>max-backups</code> 中指定的数量的旧日志文件。比如,如果该值设置为 <code>7</code>,TiKV 最多会保留 7 个旧的日志文件。</li></ul></li><li>默认值:0</li></ul><h2 id="server" style="position:relative"><a href="#server" aria-label="server permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>server</h2><p>服务器相关的配置项。</p><h3 id="addr" style="position:relative"><a href="#addr" aria-label="addr permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>addr</code></h3><ul><li>服务器监听的 IP 地址和端口号。</li><li>默认值:<code>"127.0.0.1:20160"</code></li></ul><h3 id="advertise-addr" style="position:relative"><a href="#advertise-addr" aria-label="advertise addr permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>advertise-addr</code></h3><ul><li>用于客户端通信的对外访问地址。</li><li>如果没有设置该配置项,则使用 <code>addr</code> 的值。</li><li>默认值:<code>""</code></li></ul><h3 id="status-addr" style="position:relative"><a href="#status-addr" aria-label="status addr permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>status-addr</code></h3><ul><li><p>通过 HTTP 直接报告 TiKV 状态的地址。</p><div class="MuiBox-root css-1weqspv"><style data-emotion="css 1rl2db2">.css-1rl2db2{font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(95, 33, 32);background-color:rgb(253, 237, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-1rl2db2 .MuiAlert-icon{color:#ef5350;}</style><style data-emotion="css 21rxh6">.css-21rxh6{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:4px;box-shadow:none;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(95, 33, 32);background-color:rgb(253, 237, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-21rxh6 .MuiAlert-icon{color:#ef5350;}</style><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><style data-emotion="css 1cw4hi4">.css-1cw4hi4{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:inherit;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>如果该值暴露在公网,TiKV 服务器的状态可能会泄露。</p></div></div></div></li><li><p>要禁用 <code>status-addr</code>,请将该值设置为 <code>""</code>。</p></li><li><p>默认值:<code>"127.0.0.1:20180"</code></p></li></ul><h3 id="status-thread-pool-size" style="position:relative"><a href="#status-thread-pool-size" aria-label="status thread pool size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>status-thread-pool-size</code></h3><ul><li>HTTP API 服务的工作线程数量。</li><li>默认值:1</li><li>最小值:1</li></ul><h3 id="grpc-compression-type" style="position:relative"><a href="#grpc-compression-type" aria-label="grpc compression type permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-compression-type</code></h3><ul><li>gRPC 消息的压缩算法。</li><li>可选值:<code>"none"</code>、<code>"deflate"</code>、<code>"gzip"</code></li><li>默认值:<code>"none"</code></li></ul><h3 id="grpc-concurrency" style="position:relative"><a href="#grpc-concurrency" aria-label="grpc concurrency permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-concurrency</code></h3><ul><li>gRPC 工作线程的数量。调整 gRPC 线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>默认值:5</li><li>最小值:1</li></ul><h3 id="grpc-concurrent-stream" style="position:relative"><a href="#grpc-concurrent-stream" aria-label="grpc concurrent stream permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-concurrent-stream</code></h3><ul><li>一个 gRPC 链接中最多允许的并发请求数量。</li><li>默认值:1024</li><li>最小值:1</li></ul><h3 id="grpc-memory-pool-quota" style="position:relative"><a href="#grpc-memory-pool-quota" aria-label="grpc memory pool quota permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-memory-pool-quota</code></h3><ul><li>gRPC 可使用的内存大小限制。</li><li>默认值:无限制</li><li>建议仅在出现内存不足 (OOM) 的情况下限制内存使用。需要注意,限制内存使用可能会导致卡顿。</li></ul><h3 id="grpc-raft-conn-num" style="position:relative"><a href="#grpc-raft-conn-num" aria-label="grpc raft conn num permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-raft-conn-num</code></h3><ul><li>TiKV 节点之间用于 Raft 通讯的链接最大数量。</li><li>默认值:1</li><li>最小值:1</li></ul><h3 id="max-grpc-send-msg-len" style="position:relative"><a href="#max-grpc-send-msg-len" aria-label="max grpc send msg len permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-grpc-send-msg-len</code></h3><ul><li>设置可发送的最大 gRPC 消息长度。</li><li>默认值:10485760</li><li>单位:Bytes</li><li>最大值:2147483647</li></ul><h3 id="grpc-stream-initial-window-size" style="position:relative"><a href="#grpc-stream-initial-window-size" aria-label="grpc stream initial window size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-stream-initial-window-size</code></h3><ul><li>gRPC stream 的 window 大小。</li><li>默认值:2MiB</li><li>单位:KiB|MiB|GiB</li><li>最小值:1KiB</li></ul><h3 id="grpc-keepalive-time" style="position:relative"><a href="#grpc-keepalive-time" aria-label="grpc keepalive time permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-keepalive-time</code></h3><ul><li>gRPC 发送 keep alive ping 消息的间隔时长。</li><li>默认值:10s</li><li>最小值:1s</li></ul><h3 id="grpc-keepalive-timeout" style="position:relative"><a href="#grpc-keepalive-timeout" aria-label="grpc keepalive timeout permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-keepalive-timeout</code></h3><ul><li>关闭 gRPC 链接的超时时长。</li><li>默认值:3s</li><li>最小值:1s</li></ul><h3 id="concurrent-send-snap-limit" style="position:relative"><a href="#concurrent-send-snap-limit" aria-label="concurrent send snap limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>concurrent-send-snap-limit</code></h3><ul><li>同时发送 snapshot 的最大个数。</li><li>默认值:32</li><li>最小值:1</li></ul><h3 id="concurrent-recv-snap-limit" style="position:relative"><a href="#concurrent-recv-snap-limit" aria-label="concurrent recv snap limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>concurrent-recv-snap-limit</code></h3><ul><li>同时接受 snapshot 的最大个数。</li><li>默认值:32</li><li>最小值:1</li></ul><h3 id="end-point-recursion-limit" style="position:relative"><a href="#end-point-recursion-limit" aria-label="end point recursion limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>end-point-recursion-limit</code></h3><ul><li>endpoint 下推查询请求解码消息时,最多允许的递归层数。</li><li>默认值:1000</li><li>最小值:1</li></ul><h3 id="end-point-request-max-handle-duration" style="position:relative"><a href="#end-point-request-max-handle-duration" aria-label="end point request max handle duration permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>end-point-request-max-handle-duration</code></h3><ul><li>endpoint 下推查询请求处理任务最长允许的时长。</li><li>默认值:60s</li><li>最小值:1s</li></ul><h3 id="snap-io-max-bytes-per-sec" style="position:relative"><a href="#snap-io-max-bytes-per-sec" aria-label="snap io max bytes per sec permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>snap-io-max-bytes-per-sec</code></h3><ul><li>处理 snapshot 时最大允许使用的磁盘带宽。</li><li>默认值:100MiB</li><li>单位:KiB|MiB|GiB</li><li>最小值:1KiB</li></ul><h3 id="enable-request-batch" style="position:relative"><a href="#enable-request-batch" aria-label="enable request batch permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-request-batch</code></h3><ul><li>控制是否开启批处理请求。</li><li>默认值:<code>true</code></li></ul><h3 id="labels" style="position:relative"><a href="#labels" aria-label="labels permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>labels</code></h3><ul><li>指定服务器属性,例如 <code>{ zone = "us-west-1", disk = "ssd" }</code>。</li><li>默认值:<code>{}</code></li></ul><h3 id="background-thread-count" style="position:relative"><a href="#background-thread-count" aria-label="background thread count permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>background-thread-count</code></h3><ul><li>后台线程池的工作线程数量,包括 endpoint 线程、BR 线程、split check 线程、Region 线程以及其他延迟不敏感的任务线程。</li><li>默认值:当 CPU 核数小于 16 时,默认值为 <code>2</code>。否则,默认值为 <code>3</code>。</li></ul><h3 id="end-point-slow-log-threshold" style="position:relative"><a href="#end-point-slow-log-threshold" aria-label="end point slow log threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>end-point-slow-log-threshold</code></h3><ul><li>endpoint 下推查询请求输出慢日志的阈值,处理时间超过阈值后会输出慢日志。</li><li>默认值:1s</li><li>最小值:0</li></ul><h3 id="raft-client-queue-size" style="position:relative"><a href="#raft-client-queue-size" aria-label="raft client queue size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-client-queue-size</code></h3><ul><li>该配置项指定 TiKV 中发送 Raft 消息的缓冲区大小。如果存在消息发送不及时导致缓冲区满、消息被丢弃的情况,可以适当调大该配置项值以提升系统运行的稳定性。</li><li>默认值:8192</li></ul><h3 id="simplify-metrics-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#simplify-metrics-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="simplify metrics span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>simplify-metrics</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>是否精简返回的监控指标 Metrics 数据。设置为 <code>true</code> 后,TiKV 可以通过过滤部分 Metrics 采样数据以减少每次请求返回的 Metrics 数据量。</li><li>默认值:false</li></ul><h3 id="forward-max-connections-per-address-span-classversion-mark从-v500-版本开始引入span" style="position:relative"><a href="#forward-max-connections-per-address-span-classversion-mark%E4%BB%8E-v500-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="forward max connections per address span classversion mark从 v500 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>forward-max-connections-per-address</code> <span class="version-mark">从 v5.0.0 版本开始引入</span></h3><ul><li>设置服务与转发请求的连接池大小。设置过小会影响请求的延迟和负载均衡。</li><li>默认值:4</li></ul><h2 id="readpoolunified" style="position:relative"><a href="#readpoolunified" aria-label="readpoolunified permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>readpool.unified</h2><p>统一处理读请求的线程池相关的配置项。该线程池自 4.0 版本起取代原有的 storage 和 coprocessor 线程池。</p><h3 id="min-thread-count" style="position:relative"><a href="#min-thread-count" aria-label="min thread count permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>min-thread-count</code></h3><ul><li>统一处理读请求的线程池最少的线程数量。</li><li>默认值:1</li></ul><h3 id="max-thread-count" style="position:relative"><a href="#max-thread-count" aria-label="max thread count permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-thread-count</code></h3><ul><li>统一处理读请求的线程池最多的线程数量,即 UnifyReadPool 线程池的大小。调整该线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>可调整范围:<code>[min-thread-count, MAX(4, CPU quota * 10)]</code>。其中,<code>MAX(4, CPU quota * 10)</code> 表示:如果 CPU 配额乘 10 小于 <code>4</code>,取 <code>4</code>;如果 CPU 配额乘 10 大于 <code>4</code>,即 CPU 配额大于 <code>0.4</code>,则取 CPU 配额乘 10。</li><li>默认值:MAX(4, CPU quota * 0.8)</li></ul><div class="MuiBox-root css-1weqspv"><style data-emotion="css 17zlexa">.css-17zlexa{font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(1, 67, 97);background-color:rgb(229, 246, 253);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-17zlexa .MuiAlert-icon{color:#03a9f4;}</style><style data-emotion="css 152gid5">.css-152gid5{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:4px;box-shadow:none;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(1, 67, 97);background-color:rgb(229, 246, 253);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-152gid5 .MuiAlert-icon{color:#03a9f4;}</style><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>增加线程数量会导致上下文切换增多,可能会导致性能下降,因此不推荐修改此配置。</p></div></div></div><h3 id="stack-size" style="position:relative"><a href="#stack-size" aria-label="stack size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stack-size</code></h3><ul><li>统一处理读请求的线程池中线程的栈大小。</li><li>类型:整数 + 单位</li><li>默认值:10MiB</li><li>单位:KiB|MiB|GiB</li><li>最小值:2MiB</li><li>最大值:在系统中执行 <code>ulimit -sH</code> 命令后,输出的千字节数。</li></ul><h3 id="max-tasks-per-worker" style="position:relative"><a href="#max-tasks-per-worker" aria-label="max tasks per worker permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-tasks-per-worker</code></h3><ul><li>统一处理读请求的线程池中单个线程允许积压的最大任务数量,超出后会返回 Server Is Busy。</li><li>默认值:2000</li><li>最小值:2</li></ul><h3 id="auto-adjust-pool-size-span-classversion-mark从-v630-版本开始引入span" style="position:relative"><a href="#auto-adjust-pool-size-span-classversion-mark%E4%BB%8E-v630-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="auto adjust pool size span classversion mark从 v630 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>auto-adjust-pool-size</code> <span class="version-mark">从 v6.3.0 版本开始引入</span></h3><ul><li>是否开启自动调整线程池的大小。开启此配置可以基于当前的 CPU 使用情况,自动调整统一处理读请求的线程池 (UnifyReadPool) 的大小,优化 TiKV 的读性能。目前线程池自动调整的范围为:<code>[max-thread-count, MAX(4, CPU)]</code>(上限与 <a href="#max-thread-count"><code>max-thread-count</code></a> 可设置的最大值相同)。</li><li>默认值:false</li></ul><h2 id="readpoolstorage" style="position:relative"><a href="#readpoolstorage" aria-label="readpoolstorage permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>readpool.storage</h2><p>存储线程池相关的配置项。</p><h3 id="use-unified-pool" style="position:relative"><a href="#use-unified-pool" aria-label="use unified pool permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>use-unified-pool</code></h3><ul><li>是否使用统一的读取线程池(在 <a href="#readpoolunified"><code>readpool.unified</code></a> 中配置)处理存储请求。该选项值为 false 时,使用单独的存储线程池。通过本节 (<code>readpool.storage</code>) 中的其余配置项配置单独的线程池。</li><li>默认值:如果本节 (<code>readpool.storage</code>) 中没有其他配置,默认为 true。否则,为了升级兼容性,默认为 false,请根据需要更改 <a href="#readpoolunified"><code>readpool.unified</code></a> 中的配置后再启用该选项。</li></ul><h3 id="high-concurrency" style="position:relative"><a href="#high-concurrency" aria-label="high concurrency permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>high-concurrency</code></h3><ul><li>处理高优先级读请求的线程池线程数量。</li><li>当 <code>8</code> ≤ <code>cpu num</code> ≤ <code>16</code> 时,默认值为 <code>cpu_num * 0.5</code>;当 <code>cpu num</code> 小于 <code>8</code> 时,默认值为 <code>4</code>;当 <code>cpu num</code> 大于 <code>16</code> 时,默认值为 <code>8</code>。</li><li>最小值:<code>1</code></li></ul><h3 id="normal-concurrency" style="position:relative"><a href="#normal-concurrency" aria-label="normal concurrency permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>normal-concurrency</code></h3><ul><li>处理普通优先级读请求的线程池线程数量。</li><li>当 <code>8</code> ≤ <code>cpu num</code> ≤ <code>16</code> 时,默认值为 <code>cpu_num * 0.5</code>;当 <code>cpu num</code> 小于 <code>8</code> 时,默认值为 <code>4</code>;当 <code>cpu num</code> 大于 <code>16</code> 时,默认值为 <code>8</code>。</li><li>最小值:<code>1</code></li></ul><h3 id="low-concurrency" style="position:relative"><a href="#low-concurrency" aria-label="low concurrency permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>low-concurrency</code></h3><ul><li>处理低优先级读请求的线程池线程数量。</li><li>当 <code>8</code> ≤ <code>cpu num</code> ≤ <code>16</code> 时,默认值为 <code>cpu_num * 0.5</code>;当 <code>cpu num</code> 小于 <code>8</code> 时,默认值为 <code>4</code>;当 <code>cpu num</code> 大于 <code>16</code> 时,默认值为 <code>8</code>。</li><li>最小值:<code>1</code></li></ul><h3 id="max-tasks-per-worker-high" style="position:relative"><a href="#max-tasks-per-worker-high" aria-label="max tasks per worker high permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-tasks-per-worker-high</code></h3><ul><li>高优先级线程池中单个线程允许积压的最大任务数量,超出后会返回 Server Is Busy。</li><li>默认值:2000</li><li>最小值:2</li></ul><h3 id="max-tasks-per-worker-normal" style="position:relative"><a href="#max-tasks-per-worker-normal" aria-label="max tasks per worker normal permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-tasks-per-worker-normal</code></h3><ul><li>普通优先级线程池中单个线程允许积压的最大任务数量,超出后会返回 Server Is Busy。</li><li>默认值:2000</li><li>最小值:2</li></ul><h3 id="max-tasks-per-worker-low" style="position:relative"><a href="#max-tasks-per-worker-low" aria-label="max tasks per worker low permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-tasks-per-worker-low</code></h3><ul><li>低优先级线程池中单个线程允许积压的最大任务数量,超出后会返回 Server Is Busy。</li><li>默认值:2000</li><li>最小值:2</li></ul><h3 id="stack-size-1" style="position:relative"><a href="#stack-size-1" aria-label="stack size 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stack-size</code></h3><ul><li>Storage 读线程池中线程的栈大小。</li><li>类型:整数 + 单位</li><li>默认值:10MiB</li><li>单位:KiB|MiB|GiB</li><li>最小值:2MiB</li><li>最大值:在系统中执行 <code>ulimit -sH</code> 命令后,输出的千字节数。</li></ul><h2 id="readpoolcoprocessor" style="position:relative"><a href="#readpoolcoprocessor" aria-label="readpoolcoprocessor permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>readpool.coprocessor</h2><p>协处理器线程池相关的配置项。</p><h3 id="use-unified-pool-1" style="position:relative"><a href="#use-unified-pool-1" aria-label="use unified pool 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>use-unified-pool</code></h3><ul><li>是否使用统一的读取线程池(在 <a href="#readpoolunified"><code>readpool.unified</code></a> 中配置)处理协处理器请求。该选项值为 false 时,使用单独的协处理器线程池。通过本节 (<code>readpool.coprocessor</code>) 中的其余配置项配置单独的线程池。</li><li>默认值:如果本节 (<code>readpool.coprocessor</code>) 中没有其他配置,默认为 true。否则,为了升级兼容性,默认为 false,请根据需要更改 <a href="#readpoolunified"><code>readpool.unified</code></a> 中的配置后再启用该选项。</li></ul><h3 id="high-concurrency-1" style="position:relative"><a href="#high-concurrency-1" aria-label="high concurrency 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>high-concurrency</code></h3><ul><li>处理高优先级 Coprocessor 请求(如点查)的线程池线程数量。</li><li>默认值:CPU * 0.8</li><li>最小值:1</li></ul><h3 id="normal-concurrency-1" style="position:relative"><a href="#normal-concurrency-1" aria-label="normal concurrency 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>normal-concurrency</code></h3><ul><li>处理普通优先级 Coprocessor 请求的线程池线程数量。</li><li>默认值:CPU * 0.8</li><li>最小值:1</li></ul><h3 id="low-concurrency-1" style="position:relative"><a href="#low-concurrency-1" aria-label="low concurrency 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>low-concurrency</code></h3><ul><li>处理低优先级 Coprocessor 请求(如扫表)的线程池线程数量。</li><li>默认值:CPU * 0.8</li><li>最小值:1</li></ul><h3 id="max-tasks-per-worker-high-1" style="position:relative"><a href="#max-tasks-per-worker-high-1" aria-label="max tasks per worker high 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-tasks-per-worker-high</code></h3><ul><li>高优先级线程池中单个线程允许积压的任务数量,超出后会返回 Server Is Busy。</li><li>默认值:2000</li><li>最小值:2</li></ul><h3 id="max-tasks-per-worker-normal-1" style="position:relative"><a href="#max-tasks-per-worker-normal-1" aria-label="max tasks per worker normal 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-tasks-per-worker-normal</code></h3><ul><li>普通优先级线程池中单个线程允许积压的任务数量,超出后会返回 Server Is Busy。</li><li>默认值:2000</li><li>最小值:2</li></ul><h3 id="max-tasks-per-worker-low-1" style="position:relative"><a href="#max-tasks-per-worker-low-1" aria-label="max tasks per worker low 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-tasks-per-worker-low</code></h3><ul><li>低优先级线程池中单个线程允许积压的任务数量,超出后会返回 Server Is Busy。</li><li>默认值:2000</li><li>最小值:2</li></ul><h3 id="stack-size-2" style="position:relative"><a href="#stack-size-2" aria-label="stack size 2 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stack-size</code></h3><ul><li>Coprocessor 线程池中线程的栈大小。</li><li>默认值:10MiB</li><li>单位:KiB|MiB|GiB</li><li>最小值:2MiB</li><li>最大值:在系统中执行 <code>ulimit -sH</code> 命令后,输出的千字节数。</li></ul><h2 id="storage" style="position:relative"><a href="#storage" aria-label="storage permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>storage</h2><p>存储相关的配置项。</p><h3 id="data-dir" style="position:relative"><a href="#data-dir" aria-label="data dir permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>data-dir</code></h3><ul><li>RocksDB 存储路径。</li><li>默认值:<code>"./"</code></li></ul><h3 id="engine-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#engine-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="engine span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>engine</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>该功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li><p>设置存储引擎类型。该配置只能在创建新集群时指定,且后续无法更改。</p></li><li><p>默认值:<code>"raft-kv"</code></p></li><li><p>可选值:</p><ul><li><code>"raft-kv"</code>:TiDB v6.6.0 之前版本的默认存储引擎。</li><li><code>"partitioned-raft-kv"</code>:TiDB v6.6.0 新引入的存储引擎。</li></ul></li></ul><h3 id="scheduler-concurrency" style="position:relative"><a href="#scheduler-concurrency" aria-label="scheduler concurrency permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>scheduler-concurrency</code></h3><ul><li>scheduler 内置一个内存锁机制,防止同时对一个 key 进行操作。每个 key hash 到不同的槽。</li><li>默认值:524288</li><li>最小值:1</li></ul><h3 id="scheduler-worker-pool-size" style="position:relative"><a href="#scheduler-worker-pool-size" aria-label="scheduler worker pool size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>scheduler-worker-pool-size</code></h3><ul><li>Scheduler 线程池中线程的数量。Scheduler 线程主要负责写入之前的事务一致性检查工作。如果 CPU 核心数量大于等于 16,默认为 8;否则默认为 4。调整 scheduler 线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>默认值:4</li><li>可调整范围:<code>[1, MAX(4, CPU)]</code>。其中,<code>MAX(4, CPU)</code> 表示:如果 CPU 核心数量小于 <code>4</code>,取 <code>4</code>;如果 CPU 核心数量大于 <code>4</code>,则取 CPU 核心数量。</li></ul><h3 id="scheduler-pending-write-threshold" style="position:relative"><a href="#scheduler-pending-write-threshold" aria-label="scheduler pending write threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>scheduler-pending-write-threshold</code></h3><ul><li>写入数据队列的最大值,超过该值之后对于新的写入 TiKV 会返回 Server Is Busy 错误。</li><li>默认值:100MiB</li><li>单位:MiB|GiB</li></ul><h3 id="enable-async-apply-prewrite" style="position:relative"><a href="#enable-async-apply-prewrite" aria-label="enable async apply prewrite permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-async-apply-prewrite</code></h3><ul><li>控制异步提交 (Async Commit) 事务在应用 prewrite 请求之前是否响应 TiKV 客户端。开启该配置项可以降低 apply 耗时较高时的延迟,或者减少 apply 耗时不稳定时的延迟抖动。</li><li>默认值:<code>false</code></li></ul><h3 id="reserve-space" style="position:relative"><a href="#reserve-space" aria-label="reserve space permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>reserve-space</code></h3><ul><li>TiKV 启动时会预留一块空间用于保护磁盘空间。当磁盘剩余空间小于该预留空间时,TiKV 会限制部分写操作。预留空间形式上分为两个部分:预留空间的 80% 用作磁盘空间不足时的运维操作所需要的额外磁盘空间,剩余的 20% 为磁盘临时文件。在回收空间的过程中,如果额外使用的磁盘空间过多,导致存储耗尽时,该临时文件会成为恢复服务的最后一道防御。</li><li>临时文件名为 <code>space_placeholder_file</code>,位于 <code>storage.data-dir</code> 目录下。当 TiKV 因磁盘空间耗尽而下线时,重启 TiKV 会自动删除该临时文件,并自动尝试回收空间。</li><li>当剩余空间不足时,TiKV 不会创建该临时文件。防御的有效性与预留空间的大小有关。预留空间大小的计算方式为磁盘容量的 5% 与该配置项之间的最大值。当该配置项的值为 <code>0MiB</code> 时,TiKV 会关闭磁盘防护功能。</li><li>默认值:5GiB</li><li>单位:MiB|GiB</li></ul><h3 id="enable-ttl" style="position:relative"><a href="#enable-ttl" aria-label="enable ttl permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-ttl</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><ul><li>你<strong>只能</strong>在部署新的 TiKV 集群时将 <code>enable-ttl</code> 的值设置为 <code>true</code> 或 <code>false</code>,<strong>不能</strong>在已有的 TiKV 集群中修改该配置项的值。由于该配置项为 <code>true</code> 和 <code>false</code> 的 TiKV 集群所存储的数据格式不相同,如果你在已有的 TiKV 集群中修改该配置项的值,会造成不同格式的数据存储在同一个集群,导致重启对应的 TiKV 集群时 TiKV 报 "can't enable ttl on a non-ttl instance" 错误。</li><li>你<strong>只能</strong>在 TiKV 集群中使用 <code>enable-ttl</code>,<strong>不能</strong>在有 TiDB 节点的集群中使用该配置项(即在此类集群中把 <code>enable-ttl</code> 设置为 <code>true</code>),否则会导致数据损坏、TiDB 集群升级失败等严重后果。</li></ul></div></div></div><ul><li>TTL 即 Time to live。数据超过 TTL 时间后会被自动删除。用户需在客户端写入请求中指定 TTL。不指定 TTL 即表明相应数据不会被自动删除。</li><li>默认值:false</li></ul><h3 id="ttl-check-poll-interval" style="position:relative"><a href="#ttl-check-poll-interval" aria-label="ttl check poll interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ttl-check-poll-interval</code></h3><ul><li>回收数据物理空间的检查周期。如果数据超过了 TTL 时间,数据的物理空间会在检查时被强制回收。</li><li>默认值:12h</li><li>最小值:0s</li></ul><h3 id="background-error-recovery-window-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#background-error-recovery-window-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="background error recovery window span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>background-error-recovery-window</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><ul><li>RocksDB 检测到可恢复的后台错误后,所允许的最长恢复时间。如果后台 SST 文件出现损坏,RocksDB 在检测到故障 SST 文件所属的 Peer 后,会通过心跳上报到 PD。PD 随后会进行调度操作移除该 Peer。最后故障 SST 文件将会被直接删除,随后 TiKV 后台恢复正常。</li><li>在恢复操作完成之前,损坏的 SST 文件将一直存在。此时 RocksDB 可以继续写入新的内容,但读到损坏的数据范围时会返回错误。</li><li>如果恢复操作未能在该时间窗口内完成,TiKV 会崩溃。</li><li>默认值:1h</li></ul><h3 id="api-version-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#api-version-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="api version span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>api-version</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><ul><li>TiKV 作为 RawKV 存储数据时使用的存储格式与接口版本。</li><li>可选值:<ul><li><code>1</code>:使用 API V1。不对客户端传入的数据进行编码,而是原样存储。在 v6.1.0 之前的版本,TiKV 都使用 API V1。</li><li><code>2</code>:使用 API V2:<ul><li>数据采用多版本并发控制 (MVCC) 方式存储,其中时间戳由 tikv-server 从 PD 获取(即 TSO)。</li><li>数据根据使用方式划分范围,支持单一集群 TiDB、事务 KV、RawKV 应用共存。</li><li>需要同时设置 <code>storage.enable-ttl = true</code>。由于 API V2 支持 TTL 特性,因此强制要求打开 <code>enable-ttl</code> 以避免这个参数出现歧义。</li><li>启用 API V2 后需要在集群中额外部署至少一个 tidb-server 以回收过期数据。该 tidb-server 可同时提供数据库读写服务。可以部署多个 tidb-server 以保证高可用。</li><li>需要客户端的支持。请参考对应客户端的 API V2 使用说明。</li><li>从 v6.2.0 版本开始,你可以通过 <a href="https://tikv.org/docs/latest/concepts/explore-tikv-features/cdc/cdc-cn/" target="_blank" referrerpolicy="no-referrer-when-downgrade">RawKV CDC</a> 组件实现 RawKV 的 Change Data Capture (CDC)。</li></ul></li></ul></li><li>默认值:1</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><ul><li>由于 API V1 和 API V2 底层存储格式不同,因此<strong>仅当</strong> TiKV 中只有 TiDB 数据时,可以平滑启用或关闭 API V2。其他情况下,需要新建集群,并使用 <a href="https://tikv.org/docs/latest/concepts/explore-tikv-features/backup-restore-cn/" target="_blank" referrerpolicy="no-referrer-when-downgrade">TiKV Backup & Restore</a> 工具进行数据迁移。</li><li>启用 API V2 后,<strong>不能</strong>将 TiKV 集群回退到 v6.1.0 之前的版本,否则可能导致数据损坏。</li></ul></div></div></div><h2 id="storageblock-cache" style="position:relative"><a href="#storageblock-cache" aria-label="storageblock cache permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>storage.block-cache</h2><p>RocksDB 多个 CF 之间共享 block cache 的配置选项。</p><h3 id="capacity" style="position:relative"><a href="#capacity" aria-label="capacity permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>capacity</code></h3><ul><li><p>共享 block cache 的大小。</p></li><li><p>默认值:</p><ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为系统总内存大小的 45%。</li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为系统总内存大小的 30%。</li></ul></li><li><p>单位:KiB|MiB|GiB</p></li></ul><h2 id="storageflow-control" style="position:relative"><a href="#storageflow-control" aria-label="storageflow control permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>storage.flow-control</h2><p>在 scheduler 层进行流量控制代替 RocksDB 的 write stall 机制,可以避免 write stall 机制卡住 Raftstore 或 Apply 线程导致的次生问题。本节介绍 TiKV 流量控制机制相关的配置项。</p><h3 id="enable" style="position:relative"><a href="#enable" aria-label="enable permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable</code></h3><ul><li>是否开启流量控制机制。开启后,TiKV 会自动关闭 KvDB 的 write stall 机制,还会关闭 RaftDB 中除 memtable 以外的 write stall 机制。</li><li>默认值:true</li></ul><h3 id="memtables-threshold" style="position:relative"><a href="#memtables-threshold" aria-label="memtables threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>memtables-threshold</code></h3><ul><li>当 KvDB 的 memtable 的个数达到该阈值时,流控机制开始工作。当 <code>enable</code> 的值为 <code>true</code> 时,会覆盖 <code>rocksdb.(defaultcf|writecf|lockcf).max-write-buffer-number</code> 的配置。</li><li>默认值:5</li></ul><h3 id="l0-files-threshold" style="position:relative"><a href="#l0-files-threshold" aria-label="l0 files threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>l0-files-threshold</code></h3><ul><li>当 KvDB 的 L0 文件个数达到该阈值时,流控机制开始工作。当 <code>enable</code> 的值为 <code>true</code> 时,会覆盖 <code>rocksdb.(defaultcf|writecf|lockcf).level0-slowdown-writes-trigger</code>的配置。</li><li>默认值:20</li></ul><h3 id="soft-pending-compaction-bytes-limit" style="position:relative"><a href="#soft-pending-compaction-bytes-limit" aria-label="soft pending compaction bytes limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>soft-pending-compaction-bytes-limit</code></h3><ul><li>当 KvDB 的 pending compaction bytes 达到该阈值时,流控机制开始拒绝部分写入请求,报错 <code>ServerIsBusy</code>。当 <code>enable</code> 的值为 <code>true</code> 时,会覆盖 <code>rocksdb.(defaultcf|writecf|lockcf).soft-pending-compaction-bytes-limit</code> 的配置。</li><li>默认值:"192GiB"</li></ul><h3 id="hard-pending-compaction-bytes-limit" style="position:relative"><a href="#hard-pending-compaction-bytes-limit" aria-label="hard pending compaction bytes limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>hard-pending-compaction-bytes-limit</code></h3><ul><li>当 KvDB 的 pending compaction bytes 达到该阈值时,流控机制拒绝所有写入请求,报错 <code>ServerIsBusy</code>。当 <code>enable</code> 的值为 <code>true</code> 时,会覆盖 <code>rocksdb.(defaultcf|writecf|lockcf).hard-pending-compaction-bytes-limit</code> 的配置。</li><li>默认值:"1024GiB"</li></ul><h2 id="storageio-rate-limit" style="position:relative"><a href="#storageio-rate-limit" aria-label="storageio rate limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>storage.io-rate-limit</h2><p>I/O rate limiter 相关的配置项。</p><h3 id="max-bytes-per-sec" style="position:relative"><a href="#max-bytes-per-sec" aria-label="max bytes per sec permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-bytes-per-sec</code></h3><ul><li>限制服务器每秒从磁盘读取数据或写入数据的最大 I/O 字节数,I/O 类型由下面的 <code>mode</code> 配置项决定。达到该限制后,TiKV 倾向于放缓后台操作为前台操作节流。该配置项值应设为磁盘的最佳 I/O 带宽,例如云盘厂商指定的最大 I/O 带宽。</li><li>默认值:"0MiB"</li></ul><h3 id="mode" style="position:relative"><a href="#mode" aria-label="mode permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>mode</code></h3><ul><li>确定哪些类型的 I/O 操作被计数并受 <code>max-bytes-per-sec</code> 阈值的限流。当前 TiKV 只支持 write-only 只写模式。</li><li>可选值:<code>"read-only"</code>,<code>"write-only"</code>,<code>"all-io"</code></li><li>默认值:<code>"write-only"</code></li></ul><h2 id="pd" style="position:relative"><a href="#pd" aria-label="pd permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>pd</h2><h3 id="enable-forwarding-span-classversion-mark从-v500-版本开始引入span" style="position:relative"><a href="#enable-forwarding-span-classversion-mark%E4%BB%8E-v500-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable forwarding span classversion mark从 v500 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-forwarding</code> <span class="version-mark">从 v5.0.0 版本开始引入</span></h3><ul><li>控制 TiKV 中的 PD client 在疑似网络隔离的情况下是否通过 follower 将请求转发给 leader。</li><li>默认值:false</li><li>如果确认环境存在网络隔离的可能,开启这个参数可以减少服务不可用的窗口期。</li><li>如果无法准确判断隔离、网络中断、宕机等情况,这个机制存在误判情况从而导致可用性、性能降低。如果网络中从未发生过网络故障,不推荐开启此选项。</li></ul><h3 id="endpoints" style="position:relative"><a href="#endpoints" aria-label="endpoints permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>endpoints</code></h3><ul><li>PD 的地址。当指定多个地址时,需要用逗号 <code>,</code> 分隔。</li><li>默认值:<code>["127.0.0.1:2379"]</code></li></ul><h3 id="retry-interval" style="position:relative"><a href="#retry-interval" aria-label="retry interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>retry-interval</code></h3><ul><li>设置 PD 连接的重试间隔。</li><li>默认值:<code>"300ms"</code></li></ul><h3 id="retry-log-every" style="position:relative"><a href="#retry-log-every" aria-label="retry log every permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>retry-log-every</code></h3><ul><li>指定 PD 客户端在观察到错误时跳过报错的频率。例如,当配置项值为 <code>5</code> 时,每次 PD 观察到错误时,将跳过 4 次报错,直到第 5 次错误时才报告。</li><li>要禁用此功能,请将值设置为 <code>1</code>。</li><li>默认值:<code>10</code></li></ul><h3 id="retry-max-count" style="position:relative"><a href="#retry-max-count" aria-label="retry max count permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>retry-max-count</code></h3><ul><li>初始化 PD 连接的最大重试次数。</li><li>要禁用重试,请将该值设置为 <code>0</code>。要解除重试次数的限制,请将该值设置为 <code>-1</code>。</li><li>默认值:<code>-1</code></li></ul><h2 id="raftstore" style="position:relative"><a href="#raftstore" aria-label="raftstore permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>raftstore</h2><p>raftstore 相关的配置项。</p><h3 id="prevote" style="position:relative"><a href="#prevote" aria-label="prevote permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>prevote</code></h3><ul><li>开启 Prevote 的开关,开启有助于减少隔离恢复后对系统造成的抖动。</li><li>默认值:true</li></ul><h3 id="capacity-1" style="position:relative"><a href="#capacity-1" aria-label="capacity 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>capacity</code></h3><ul><li>存储容量,即允许的最大数据存储大小。如果没有设置,则使用当前磁盘容量。如果要将多个 TiKV 实例部署在同一块物理磁盘上,需要在 TiKV 配置中添加该参数,参见<a href="/zh/tidb/stable/hybrid-deployment-topology#混合部署的关键参数介绍">混合部署的关键参数介绍</a>。</li><li>默认值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="raftdb-path" style="position:relative"><a href="#raftdb-path" aria-label="raftdb path permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raftdb-path</code></h3><ul><li>raft 库的路径,默认存储在 storage.data-dir/raft 下。</li><li>默认值:""</li></ul><h3 id="raft-base-tick-interval" style="position:relative"><a href="#raft-base-tick-interval" aria-label="raft base tick interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-base-tick-interval</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项不支持通过 SQL 语句查询,但支持在配置文件中进行配置。</p></div></div></div><ul><li>状态机 tick 一次的间隔时间。</li><li>默认值:1s</li><li>最小值:大于 0</li></ul><h3 id="raft-heartbeat-ticks" style="position:relative"><a href="#raft-heartbeat-ticks" aria-label="raft heartbeat ticks permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-heartbeat-ticks</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项不支持通过 SQL 语句查询,但支持在配置文件中进行配置。</p></div></div></div><ul><li>发送心跳时经过的 tick 个数,即每隔 raft-base-tick-interval * raft-heartbeat-ticks 时间发送一次心跳。</li><li>默认值:2</li><li>最小值:大于 0</li></ul><h3 id="raft-election-timeout-ticks" style="position:relative"><a href="#raft-election-timeout-ticks" aria-label="raft election timeout ticks permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-election-timeout-ticks</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项不支持通过 SQL 语句查询,但支持在配置文件中进行配置。</p></div></div></div><ul><li>发起选举时经过的 tick 个数,即如果处于无主状态,大约经过 raft-base-tick-interval * raft-election-timeout-ticks 时间以后发起选举。</li><li>默认值:10</li><li>最小值:raft-heartbeat-ticks</li></ul><h3 id="raft-min-election-timeout-ticks" style="position:relative"><a href="#raft-min-election-timeout-ticks" aria-label="raft min election timeout ticks permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-min-election-timeout-ticks</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项不支持通过 SQL 语句查询,但支持在配置文件中进行配置。</p></div></div></div><ul><li>发起选举时至少经过的 tick 个数,如果为 0,则表示使用 raft-election-timeout-ticks,不能比 raft-election-timeout-ticks 小。</li><li>默认值:0</li><li>最小值:0</li></ul><h3 id="raft-max-election-timeout-ticks" style="position:relative"><a href="#raft-max-election-timeout-ticks" aria-label="raft max election timeout ticks permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-max-election-timeout-ticks</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项不支持通过 SQL 语句查询,但支持在配置文件中进行配置。</p></div></div></div><ul><li>发起选举时最多经过的 tick 个数,如果为 0,则表示使用 raft-election-timeout-ticks * 2。</li><li>默认值:0</li><li>最小值:0</li></ul><h3 id="raft-max-size-per-msg" style="position:relative"><a href="#raft-max-size-per-msg" aria-label="raft max size per msg permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-max-size-per-msg</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项不支持通过 SQL 语句查询,但支持在配置文件中进行配置。</p></div></div></div><ul><li>产生的单个消息包的大小限制,软限制。</li><li>默认值:1MiB</li><li>最小值:大于 0</li><li>最大值: 3GiB</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="raft-max-inflight-msgs" style="position:relative"><a href="#raft-max-inflight-msgs" aria-label="raft max inflight msgs permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-max-inflight-msgs</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项不支持通过 SQL 语句查询,但支持在配置文件中进行配置。</p></div></div></div><ul><li>待确认的日志个数,如果超过这个数量,Raft 状态机会减缓发送日志的速度。</li><li>默认值:256</li><li>最小值:大于 0</li><li>最大值: 16384</li></ul><h3 id="raft-entry-max-size" style="position:relative"><a href="#raft-entry-max-size" aria-label="raft entry max size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-entry-max-size</code></h3><ul><li>单个日志最大大小,硬限制。</li><li>默认值:8MiB</li><li>最小值:0</li><li>单位:MiB|GiB</li></ul><h3 id="raft-log-compact-sync-interval-span-classversion-mark从-v53-版本开始引入span" style="position:relative"><a href="#raft-log-compact-sync-interval-span-classversion-mark%E4%BB%8E-v53-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="raft log compact sync interval span classversion mark从 v53 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-log-compact-sync-interval</code> <span class="version-mark">从 v5.3 版本开始引入</span></h3><ul><li>压缩非必要 Raft 日志的时间间隔。</li><li>默认值:"2s"</li><li>最小值:"0s"</li></ul><h3 id="raft-log-gc-tick-interval" style="position:relative"><a href="#raft-log-gc-tick-interval" aria-label="raft log gc tick interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-log-gc-tick-interval</code></h3><ul><li>删除 Raft 日志的轮询任务调度间隔时间,0 表示不启用。</li><li>默认值:"3s"</li><li>最小值:"0s"</li></ul><h3 id="raft-log-gc-threshold" style="position:relative"><a href="#raft-log-gc-threshold" aria-label="raft log gc threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-log-gc-threshold</code></h3><ul><li>允许残余的 Raft 日志个数,这是一个软限制。</li><li>默认值:50</li><li>最小值:1</li></ul><h3 id="raft-log-gc-count-limit" style="position:relative"><a href="#raft-log-gc-count-limit" aria-label="raft log gc count limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-log-gc-count-limit</code></h3><ul><li>允许残余的 Raft 日志个数,这是一个硬限制。</li><li>默认值:3/4 Region 大小所能容纳的日志个数,按照每个日志 1 MiB 计算</li><li>最小值:0</li></ul><h3 id="raft-log-gc-size-limit" style="position:relative"><a href="#raft-log-gc-size-limit" aria-label="raft log gc size limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-log-gc-size-limit</code></h3><ul><li>允许残余的 Raft 日志大小,这是一个硬限制。</li><li>默认值:Region 大小的 3/4</li><li>最小值:大于 0</li></ul><h3 id="raft-log-reserve-max-ticks-span-classversion-mark从-v53-版本开始引入span" style="position:relative"><a href="#raft-log-reserve-max-ticks-span-classversion-mark%E4%BB%8E-v53-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="raft log reserve max ticks span classversion mark从 v53 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-log-reserve-max-ticks</code> <span class="version-mark">从 v5.3 版本开始引入</span></h3><ul><li>超过本配置项设置的的 tick 数后,即使剩余 Raft 日志的数量没有达到 <code>raft-log-gc-threshold</code> 设置的值,TiKV 也会进行 GC 操作。</li><li>默认值:6</li><li>最小值:大于 0</li></ul><h3 id="raft-engine-purge-interval" style="position:relative"><a href="#raft-engine-purge-interval" aria-label="raft engine purge interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-engine-purge-interval</code></h3><ul><li>清除旧的 TiKV 日志文件的间隔时间,以尽快回收磁盘空间。Raft 引擎是可替换的组件,因此某些功能或优化的实现需要清除 TiKV 日志文件。</li><li>默认值:<code>"10s"</code></li></ul><h3 id="raft-entry-cache-life-time" style="position:relative"><a href="#raft-entry-cache-life-time" aria-label="raft entry cache life time permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-entry-cache-life-time</code></h3><ul><li>内存中日志 cache 允许的最长残留时间。</li><li>默认值:30s</li><li>最小值:0</li></ul><h3 id="max-apply-unpersisted-log-limit-span-classversion-mark从-v810-版本开始引入span" style="position:relative"><a href="#max-apply-unpersisted-log-limit-span-classversion-mark%E4%BB%8E-v810-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="max apply unpersisted log limit span classversion mark从 v810 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-apply-unpersisted-log-limit</code> <span class="version-mark">从 v8.1.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>当前版本中该变量控制的功能尚未完全生效,请保留默认值。</p></div></div></div><ul><li><p>允许 apply 已经 <code>commit</code> 但尚未持久化的 Raft 日志的最大数量。</p><ul><li>将此配置项设置为大于 0 的值将使该 TiKV 节点能够提前 apply 已 <code>commit</code> 但尚未持久化的 Raft 日志,从而有效降低该节点上因 IO 抖动导致的长尾延迟。但这也可能会增加 TiKV 内存使用量和 Raft 日志占用的磁盘容量。</li><li>将此配置项设置为 0 则表示关闭此特性,此时 TiKV 需要等待 Raft 日志被 <code>commit</code> 且持久化之后才能对其进行 apply,此默认行为与 v8.1.0 之前版本的行为一致。</li></ul></li><li><p>默认值:0</p></li><li><p>最小值:0</p></li></ul><h3 id="hibernate-regions" style="position:relative"><a href="#hibernate-regions" aria-label="hibernate regions permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>hibernate-regions</code></h3><ul><li>打开或关闭静默 Region。打开后,如果 Region 长时间处于非活跃状态,即被自动设置为静默状态。静默状态的 Region 可以降低 Leader 和 Follower 之间心跳信息的系统开销。可以通过 <code>peer-stale-state-check-interval</code> 调整 Leader 和 Follower 之间的心跳间隔。</li><li>默认值:v5.0.2 及以后版本默认值为 true,v5.0.2 以前的版本默认值为 false</li></ul><h3 id="split-region-check-tick-interval" style="position:relative"><a href="#split-region-check-tick-interval" aria-label="split region check tick interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>split-region-check-tick-interval</code></h3><ul><li>检查 Region 是否需要分裂的时间间隔,0 表示不启用。</li><li>默认值:10s</li><li>最小值:0</li></ul><h3 id="region-split-check-diff" style="position:relative"><a href="#region-split-check-diff" aria-label="region split check diff permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-split-check-diff</code></h3><ul><li>允许 Region 数据超过指定大小的最大值。</li><li>默认值:Region 大小的 1/16</li><li>最小值:0</li></ul><h3 id="region-compact-check-interval" style="position:relative"><a href="#region-compact-check-interval" aria-label="region compact check interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-compact-check-interval</code></h3><ul><li>检查是否需要人工触发 RocksDB compaction 的时间间隔,0 表示不启用。</li><li>默认值:5m</li><li>最小值:0</li></ul><h3 id="region-compact-check-step" style="position:relative"><a href="#region-compact-check-step" aria-label="region compact check step permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-compact-check-step</code></h3><ul><li>每轮校验人工 compaction 时,一次性检查的 Region 个数。</li><li>默认值:<ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 100。</li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为 5。</li></ul></li></ul><h3 id="region-compact-min-tombstones" style="position:relative"><a href="#region-compact-min-tombstones" aria-label="region compact min tombstones permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-compact-min-tombstones</code></h3><ul><li>触发 RocksDB compaction 需要的 tombstone 个数。</li><li>默认值:10000</li><li>最小值:0</li></ul><h3 id="region-compact-tombstones-percent" style="position:relative"><a href="#region-compact-tombstones-percent" aria-label="region compact tombstones percent permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-compact-tombstones-percent</code></h3><ul><li>触发 RocksDB compaction 需要的 tombstone 所占比例。</li><li>默认值:30</li><li>最小值:1</li><li>最大值:100</li></ul><h3 id="region-compact-min-redundant-rows-span-classversion-mark从-v710-版本开始引入span" style="position:relative"><a href="#region-compact-min-redundant-rows-span-classversion-mark%E4%BB%8E-v710-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="region compact min redundant rows span classversion mark从 v710 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-compact-min-redundant-rows</code> <span class="version-mark">从 v7.1.0 版本开始引入</span></h3><ul><li>触发 RocksDB compaction 需要的冗余的 MVCC 数据行数。</li><li>默认值:<code>50000</code></li><li>最小值:<code>0</code></li></ul><h3 id="region-compact-redundant-rows-percent-span-classversion-mark从-v710-版本开始引入span" style="position:relative"><a href="#region-compact-redundant-rows-percent-span-classversion-mark%E4%BB%8E-v710-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="region compact redundant rows percent span classversion mark从 v710 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-compact-redundant-rows-percent</code> <span class="version-mark">从 v7.1.0 版本开始引入</span></h3><ul><li>触发 RocksDB compaction 需要的冗余的 MVCC 数据行所占比例。</li><li>默认值:<code>20</code></li><li>最小值:<code>1</code></li><li>最大值:<code>100</code></li></ul><h3 id="report-region-buckets-tick-interval-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#report-region-buckets-tick-interval-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="report region buckets tick interval span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>report-region-buckets-tick-interval</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p><code>report-region-buckets-tick-interval</code> 是 TiDB 在 v6.1.0 中引入的实验特性,不建议在生产环境中使用。</p></div></div></div><ul><li>启用 <code>enable-region-bucket</code> 后,该配置项设置 TiKV 向 PD 上报 bucket 信息的间隔时间。</li><li>默认值:10s</li></ul><h3 id="pd-heartbeat-tick-interval" style="position:relative"><a href="#pd-heartbeat-tick-interval" aria-label="pd heartbeat tick interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>pd-heartbeat-tick-interval</code></h3><ul><li>触发 Region 对 PD 心跳的时间间隔,0 表示不启用。</li><li>默认值:1m</li><li>最小值:0</li></ul><h3 id="pd-store-heartbeat-tick-interval" style="position:relative"><a href="#pd-store-heartbeat-tick-interval" aria-label="pd store heartbeat tick interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>pd-store-heartbeat-tick-interval</code></h3><ul><li>触发 store 对 PD 心跳的时间间隔,0 表示不启用。</li><li>默认值:10s</li><li>最小值:0</li></ul><h3 id="snap-mgr-gc-tick-interval" style="position:relative"><a href="#snap-mgr-gc-tick-interval" aria-label="snap mgr gc tick interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>snap-mgr-gc-tick-interval</code></h3><ul><li>触发回收过期 snapshot 文件的时间间隔,0 表示不启用。</li><li>默认值:1m</li><li>最小值:0</li></ul><h3 id="snap-gc-timeout" style="position:relative"><a href="#snap-gc-timeout" aria-label="snap gc timeout permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>snap-gc-timeout</code></h3><ul><li>snapshot 文件的最长保存时间。</li><li>默认值:4h</li><li>最小值:0</li></ul><h3 id="snap-generator-pool-size-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#snap-generator-pool-size-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="snap generator pool size span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>snap-generator-pool-size</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>用于配置 <code>snap-generator</code> 线程池的大小。</li><li>为了让 TiKV 在恢复场景下加快 Region 生成 Snapshot 的速度,需要调大对应 Worker 的 <code>snap-generator</code> 线程数量。可通过本配置项调大对应线程的数量。</li><li>默认值:<code>2</code></li><li>最小值:<code>1</code></li></ul><h3 id="lock-cf-compact-interval" style="position:relative"><a href="#lock-cf-compact-interval" aria-label="lock cf compact interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>lock-cf-compact-interval</code></h3><ul><li>触发对 lock CF compact 检查的时间间隔。</li><li>默认值:10m</li><li>最小值:0</li></ul><h3 id="lock-cf-compact-bytes-threshold" style="position:relative"><a href="#lock-cf-compact-bytes-threshold" aria-label="lock cf compact bytes threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>lock-cf-compact-bytes-threshold</code></h3><ul><li>触发对 lock CF 进行 compact 的大小。</li><li>默认值:256MiB</li><li>最小值:0</li><li>单位:MiB</li></ul><h3 id="notify-capacity" style="position:relative"><a href="#notify-capacity" aria-label="notify capacity permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>notify-capacity</code></h3><ul><li>Region 消息队列的最长长度。</li><li>默认值:40960</li><li>最小值:0</li></ul><h3 id="messages-per-tick" style="position:relative"><a href="#messages-per-tick" aria-label="messages per tick permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>messages-per-tick</code></h3><ul><li>每轮处理的消息最大个数。</li><li>默认值:4096</li><li>最小值:0</li></ul><h3 id="max-peer-down-duration" style="position:relative"><a href="#max-peer-down-duration" aria-label="max peer down duration permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-peer-down-duration</code></h3><ul><li>副本允许的最长未响应时间,超过将被标记为 down,后续 PD 会尝试将其删掉。</li><li>默认值:10m</li><li>最小值:当 Hibernate Region 功能启用时,为 peer-stale-state-check-interval * 2;Hibernate Region 功能关闭时,为 0。</li></ul><h3 id="max-leader-missing-duration" style="position:relative"><a href="#max-leader-missing-duration" aria-label="max leader missing duration permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-leader-missing-duration</code></h3><ul><li>允许副本处于无主状态的最长时间,超过将会向 PD 校验自己是否已经被删除。</li><li>默认值:2h</li><li>最小值:> abnormal-leader-missing-duration</li></ul><h3 id="abnormal-leader-missing-duration" style="position:relative"><a href="#abnormal-leader-missing-duration" aria-label="abnormal leader missing duration permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>abnormal-leader-missing-duration</code></h3><ul><li>允许副本处于无主状态的时间,超过将视为异常,标记在 metrics 和日志中。</li><li>默认值:10m</li><li>最小值:> peer-stale-state-check-interval</li></ul><h3 id="peer-stale-state-check-interval" style="position:relative"><a href="#peer-stale-state-check-interval" aria-label="peer stale state check interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>peer-stale-state-check-interval</code></h3><ul><li>触发检验副本是否处于无主状态的时间间隔。</li><li>默认值:5m</li><li>最小值:> 2 * election-timeout</li></ul><h3 id="leader-transfer-max-log-lag" style="position:relative"><a href="#leader-transfer-max-log-lag" aria-label="leader transfer max log lag permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>leader-transfer-max-log-lag</code></h3><ul><li>尝试转移领导权时被转移者允许的最大日志缺失个数。</li><li>默认值:128</li><li>最小值:10</li></ul><h3 id="max-snapshot-file-raw-size-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#max-snapshot-file-raw-size-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="max snapshot file raw size span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-snapshot-file-raw-size</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><ul><li>当 snapshot 文件大于该配置项指定的大小时,snapshot 文件会被切割为多个文件。</li><li>默认值:100MiB</li><li>最小值:100MiB</li></ul><h3 id="snap-apply-batch-size" style="position:relative"><a href="#snap-apply-batch-size" aria-label="snap apply batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>snap-apply-batch-size</code></h3><ul><li>当导入 snapshot 文件需要写数据时,内存写缓存的大小。</li><li>默认值:10MiB</li><li>最小值:0</li><li>单位:MiB</li></ul><h3 id="consistency-check-interval" style="position:relative"><a href="#consistency-check-interval" aria-label="consistency check interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>consistency-check-interval</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>开启一致性检查对集群性能有影响,并且和 TiDB GC 操作不兼容,不建议在生产环境中使用。</p></div></div></div><ul><li>触发一致性检查的时间间隔,0 表示不启用。</li><li>默认值:0s</li><li>最小值:0</li></ul><h3 id="raft-store-max-leader-lease" style="position:relative"><a href="#raft-store-max-leader-lease" aria-label="raft store max leader lease permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-store-max-leader-lease</code></h3><ul><li>Region 主可信任期的最长时间。</li><li>默认值:9s</li><li>最小值:0</li></ul><h3 id="right-derive-when-split" style="position:relative"><a href="#right-derive-when-split" aria-label="right derive when split permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>right-derive-when-split</code></h3><ul><li>为 true 时,以最大分裂 key 为起点的 Region 复用原 Region 的 key;否则以原 Region 起点 key 作为起点的 Region 复用原 Region 的 key。</li><li>默认值:true</li></ul><h3 id="merge-max-log-gap" style="position:relative"><a href="#merge-max-log-gap" aria-label="merge max log gap permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>merge-max-log-gap</code></h3><ul><li>进行 merge 时,允许的最大日志缺失个数。</li><li>默认值:10</li><li>最小值:> raft-log-gc-count-limit</li></ul><h3 id="merge-check-tick-interval" style="position:relative"><a href="#merge-check-tick-interval" aria-label="merge check tick interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>merge-check-tick-interval</code></h3><ul><li>触发 merge 完成检查的时间间隔。</li><li>默认值:2s</li><li>最小值:大于 0</li></ul><h3 id="use-delete-range" style="position:relative"><a href="#use-delete-range" aria-label="use delete range permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>use-delete-range</code></h3><ul><li>开启 rocksdb delete_range 接口删除数据的开关。</li><li>默认值:false</li></ul><h3 id="cleanup-import-sst-interval" style="position:relative"><a href="#cleanup-import-sst-interval" aria-label="cleanup import sst interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cleanup-import-sst-interval</code></h3><ul><li>触发检查过期 SST 文件的时间间隔,0 表示不启用。</li><li>默认值:10m</li><li>最小值:0</li></ul><h3 id="local-read-batch-size" style="position:relative"><a href="#local-read-batch-size" aria-label="local read batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>local-read-batch-size</code></h3><ul><li>一轮处理读请求的最大个数。</li><li>默认值:1024</li><li>最小值:大于 0</li></ul><h3 id="apply-yield-write-size-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#apply-yield-write-size-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="apply yield write size span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>apply-yield-write-size</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><ul><li>Apply 线程每一轮处理单个状态机写入的最大数据量,这是个软限制。</li><li>默认值:32KiB</li><li>最小值:大于 0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="apply-max-batch-size" style="position:relative"><a href="#apply-max-batch-size" aria-label="apply max batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>apply-max-batch-size</code></h3><ul><li>Raft 状态机由 BatchSystem 批量执行数据写入请求,该配置项指定每批可执行请求的最多 Raft 状态机个数。</li><li>默认值:256</li><li>最小值:大于 0</li><li>最大值: 10240</li></ul><h3 id="apply-pool-size" style="position:relative"><a href="#apply-pool-size" aria-label="apply pool size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>apply-pool-size</code></h3><ul><li>Apply 线程池负责把数据落盘至磁盘。该配置项为 Apply 线程池中线程的数量,即 Apply 线程池的大小。调整 Apply 线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>默认值:2</li><li>可调整范围:<!-- -->[1, CPU * 10]</li></ul><h3 id="store-max-batch-size" style="position:relative"><a href="#store-max-batch-size" aria-label="store max batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>store-max-batch-size</code></h3><ul><li>Raft 状态机由 BatchSystem 批量执行把日志落盘至磁盘的请求,该配置项指定每批可执行请求的最多 Raft 状态机个数。</li><li>如果开启 <code>hibernate-regions</code>,默认值为 256;如果关闭 <code>hibernate-regions</code>,默认值为 1024</li><li>最小值:大于 0</li><li>最大值: 10240</li></ul><h3 id="store-pool-size" style="position:relative"><a href="#store-pool-size" aria-label="store pool size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>store-pool-size</code></h3><ul><li>表示处理 Raft 的线程池中线程的数量,即 Raftstore 线程池的大小。调整该线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>默认值:2</li><li>可调整范围:<!-- -->[1, CPU * 10]</li></ul><h3 id="store-io-pool-size-span-classversion-mark从-v530-版本开始引入span" style="position:relative"><a href="#store-io-pool-size-span-classversion-mark%E4%BB%8E-v530-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="store io pool size span classversion mark从 v530 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>store-io-pool-size</code> <span class="version-mark">从 v5.3.0 版本开始引入</span></h3><ul><li>表示处理 Raft I/O 任务的线程池中线程的数量,即 StoreWriter 线程池的大小。调整该线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>默认值:1(对于 TiDB v8.0.0 之前的版本,默认值为 0)</li><li>最小值:0</li></ul><h3 id="future-poll-size" style="position:relative"><a href="#future-poll-size" aria-label="future poll size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>future-poll-size</code></h3><ul><li>驱动 future 的线程池中线程的数量。</li><li>默认值:1</li><li>最小值:大于 0</li></ul><h3 id="cmd-batch" style="position:relative"><a href="#cmd-batch" aria-label="cmd batch permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cmd-batch</code></h3><ul><li>对请求进行攒批的控制开关,开启后可显著提升写入性能。</li><li>默认值:true</li></ul><h3 id="inspect-interval" style="position:relative"><a href="#inspect-interval" aria-label="inspect interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>inspect-interval</code></h3><ul><li>TiKV 每隔一段时间会检测 Raftstore 组件的延迟情况,该配置项设置检测的时间间隔。当检测的延迟超过该时间,该检测会被记为超时。</li><li>根据超时的检测延迟的比例计算判断 TiKV 是否为慢节点。</li><li>默认值:100ms</li><li>最小值:1ms</li></ul><h3 id="raft-write-size-limit-span-classversion-mark从-v530-版本开始引入span" style="position:relative"><a href="#raft-write-size-limit-span-classversion-mark%E4%BB%8E-v530-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="raft write size limit span classversion mark从 v530 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>raft-write-size-limit</code> <span class="version-mark">从 v5.3.0 版本开始引入</span></h3><ul><li>触发 Raft 数据写入的阈值。当数据大小超过该配置项值,数据会被写入磁盘。当 <code>store-io-pool-size</code> 的值为 <code>0</code> 时,该配置项不生效。</li><li>默认值:1MiB</li><li>最小值:0</li></ul><h3 id="report-min-resolved-ts-interval-span-classversion-mark从-v600-版本开始引入span" style="position:relative"><a href="#report-min-resolved-ts-interval-span-classversion-mark%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="report min resolved ts interval span classversion mark从 v600 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>report-min-resolved-ts-interval</code> <span class="version-mark">从 v6.0.0 版本开始引入</span></h3><ul><li>设置 PD leader 收到 Resolved TS 的间隔时间。如果该值设置为 <code>0</code>,表示禁用该功能。</li><li>默认值:在 v6.3.0 之前版本中为 <code>"0s"</code>,在 v6.3.0 及之后的版本中为 <code>"1s"</code>,即最小正值。</li><li>最小值:0</li><li>单位:秒</li></ul><h3 id="evict-cache-on-memory-ratio-span-classversion-mark从-v750-版本开始引入span" style="position:relative"><a href="#evict-cache-on-memory-ratio-span-classversion-mark%E4%BB%8E-v750-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="evict cache on memory ratio span classversion mark从 v750 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>evict-cache-on-memory-ratio</code> <span class="version-mark">从 v7.5.0 版本开始引入</span></h3><ul><li>当 TiKV 的内存使用超过系统可用内存的 90%,并且 Raft 缓存条目占用的内存超过已使用内存 * <code>evict-cache-on-memory-ratio</code> 时,TiKV 会逐出 Raft 缓存条目。</li><li>设置为 <code>0</code> 表示禁用该功能。</li><li>默认值:0.1</li><li>最小值:0</li></ul><h3 id="periodic-full-compact-start-times-span-classversion-mark从-v760-版本开始引入span" style="position:relative"><a href="#periodic-full-compact-start-times-span-classversion-mark%E4%BB%8E-v760-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="periodic full compact start times span classversion mark从 v760 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>periodic-full-compact-start-times</code> <span class="version-mark">从 v7.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>周期性全量数据整理目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li>设置 TiKV 启动周期性全量数据整理 (Compaction) 的时间。你可以在数组中指定一个或多个时间计划。例如:<ul><li><code>periodic-full-compact-start-times = ["03:00", "23:00"]</code> 表示 TiKV 基于 TiKV 节点的本地时区,在每天凌晨 3 点和晚上 11 点进行全量数据整理。</li><li><code>periodic-full-compact-start-times = ["03:00 +0000", "23:00 +0000"]</code> 表示 TiKV 在每天 UTC 时间的凌晨 3 点和晚上 11 点进行全量数据整理。</li><li><code>periodic-full-compact-start-times = ["03:00 +0800", "23:00 +0800"]</code> 表示 TiKV 在每天 UTC+08:00 时间的凌晨 3 点和晚上 11 点进行全量数据整理。</li></ul></li><li>默认值:<code>[]</code>,表示默认情况下禁用周期性全量数据整理。</li></ul><h3 id="periodic-full-compact-start-max-cpu-span-classversion-mark从-v760-版本开始引入span" style="position:relative"><a href="#periodic-full-compact-start-max-cpu-span-classversion-mark%E4%BB%8E-v760-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="periodic full compact start max cpu span classversion mark从 v760 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>periodic-full-compact-start-max-cpu</code> <span class="version-mark">从 v7.6.0 版本开始引入</span></h3><ul><li>控制 TiKV 执行周期性全量数据整理时的 CPU 使用率阈值。</li><li>默认值:<code>0.1</code>,表示全量数据整理进程的最大 CPU 使用率为 10%。</li></ul><h2 id="coprocessor" style="position:relative"><a href="#coprocessor" aria-label="coprocessor permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>coprocessor</h2><p>Coprocessor 相关的配置项。</p><h3 id="split-region-on-table" style="position:relative"><a href="#split-region-on-table" aria-label="split region on table permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>split-region-on-table</code></h3><ul><li>开启按 table 分裂 Region 的开关,建议仅在 TiDB 模式下使用。</li><li>默认值:false</li></ul><h3 id="batch-split-limit" style="position:relative"><a href="#batch-split-limit" aria-label="batch split limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>batch-split-limit</code></h3><ul><li>批量分裂 Region 的阈值,调大该值可加速分裂 Region。</li><li>默认值:10</li><li>最小值:1</li></ul><h3 id="region-max-size" style="position:relative"><a href="#region-max-size" aria-label="region max size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-max-size</code></h3><ul><li>Region 容量空间最大值,超过时系统分裂成多个 Region。</li><li>默认值:<code>region-split-size / 2 * 3</code></li><li>单位:KiB|MiB|GiB</li></ul><h3 id="region-split-size" style="position:relative"><a href="#region-split-size" aria-label="region split size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-split-size</code></h3><ul><li>分裂后新 Region 的大小,此值属于估算值。</li><li>默认值:96MiB</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="region-max-keys" style="position:relative"><a href="#region-max-keys" aria-label="region max keys permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-max-keys</code></h3><ul><li>Region 最多允许的 key 的个数,超过时系统分裂成多个 Region。</li><li>默认值:<code>region-split-keys / 2 * 3</code></li></ul><h3 id="region-split-keys" style="position:relative"><a href="#region-split-keys" aria-label="region split keys permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-split-keys</code></h3><ul><li>分裂后新 Region 的 key 的个数,此值属于估算值。</li><li>默认值:960000</li></ul><h3 id="consistency-check-method" style="position:relative"><a href="#consistency-check-method" aria-label="consistency check method permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>consistency-check-method</code></h3><ul><li>指定数据一致性检查的方法。</li><li>要对 MVCC 数据进行一致性检查,设置该值为 <code>"mvcc"</code>。要对原始数据进行一致性检查,设置该值为 <code>"raw"</code>。</li><li>默认值:<code>"mvcc"</code></li></ul><h2 id="coprocessor-v2" style="position:relative"><a href="#coprocessor-v2" aria-label="coprocessor v2 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>coprocessor-v2</h2><h3 id="coprocessor-plugin-directory" style="position:relative"><a href="#coprocessor-plugin-directory" aria-label="coprocessor plugin directory permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>coprocessor-plugin-directory</code></h3><ul><li>已编译 coprocessor 插件所在目录的路径。TiKV 会自动加载该目录下的插件。</li><li>如果未设置该配置项,则 coprocessor 插件会被禁用。</li><li>默认值:<code>"./coprocessors"</code></li></ul><h3 id="enable-region-bucket-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#enable-region-bucket-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable region bucket span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-region-bucket</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><ul><li>是否将 Region 划分为更小的区间 bucket,并且以 bucket 作为并发查询单位,以提高扫描数据的并发度。bucket 的详细设计可见 <a href="https://github.com/tikv/rfcs/blob/master/text/0082-dynamic-size-region.md" target="_blank" referrerpolicy="no-referrer-when-downgrade">Dynamic size Region</a>。</li><li>默认值:false</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><ul><li><code>enable-region-bucket</code> 是 TiDB 在 v6.1.0 中引入的实验特性,不建议在生产环境中使用。</li><li>这个参数仅在 <code>region-split-size</code> 调到两倍 <code>region-bucket-size</code> 及以上时才有意义,否则不会真正生成 bucket。</li><li>将 <code>region-split-size</code> 调大可能会有潜在的性能回退、数据调度缓慢的风险。</li></ul></div></div></div><h3 id="region-bucket-size-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#region-bucket-size-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="region bucket size span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-bucket-size</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><ul><li>设置 <code>enable-region-bucket</code> 启用时 bucket 的预期大小。</li><li>默认值:从 v7.3.0 起,默认值从 <code>96MiB</code> 变更为 <code>50MiB</code>。</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p><code>region-bucket-size</code> 是 TiDB 在 v6.1.0 中引入的实验特性,不建议在生产环境中使用。</p></div></div></div><h2 id="rocksdb" style="position:relative"><a href="#rocksdb" aria-label="rocksdb permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>rocksdb</h2><p>RocksDB 相关的配置项。</p><h3 id="max-background-jobs" style="position:relative"><a href="#max-background-jobs" aria-label="max background jobs permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-background-jobs</code></h3><ul><li>RocksDB 后台线程个数。调整 RocksDB 线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>默认值:<ul><li>CPU 核数为 10 时,默认值为 <code>9</code></li><li>CPU 核数为 8 时,默认值为 <code>7</code></li><li>CPU 核数为 <code>N</code> 时,默认值为 <code>max(2, min(N - 1, 9))</code></li></ul></li><li>最小值:2</li></ul><h3 id="max-background-flushes" style="position:relative"><a href="#max-background-flushes" aria-label="max background flushes permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-background-flushes</code></h3><ul><li>RocksDB 用于刷写 memtable 的最大后台线程数量。</li><li>默认值:<ul><li>CPU 核数为 10 时,默认值为 <code>3</code></li><li>CPU 核数为 8 时,默认值为 <code>2</code></li><li>CPU 核数为 <code>N</code> 时,默认值为 <code>[(max-background-jobs + 3) / 4]</code></li></ul></li><li>最小值:1</li></ul><h3 id="max-sub-compactions" style="position:relative"><a href="#max-sub-compactions" aria-label="max sub compactions permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-sub-compactions</code></h3><ul><li>RocksDB 进行 subcompaction 的并发个数。</li><li>默认值:3</li><li>最小值:1</li></ul><h3 id="max-open-files" style="position:relative"><a href="#max-open-files" aria-label="max open files permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-open-files</code></h3><ul><li>RocksDB 可以打开的文件总数。</li><li>默认值:40960</li><li>最小值:-1</li></ul><h3 id="max-manifest-file-size" style="position:relative"><a href="#max-manifest-file-size" aria-label="max manifest file size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-manifest-file-size</code></h3><ul><li>RocksDB Manifest 文件最大大小。</li><li>默认值:128MiB</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="create-if-missing" style="position:relative"><a href="#create-if-missing" aria-label="create if missing permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>create-if-missing</code></h3><ul><li>自动创建 DB 开关。</li><li>默认值:true</li></ul><h3 id="wal-recovery-mode" style="position:relative"><a href="#wal-recovery-mode" aria-label="wal recovery mode permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-recovery-mode</code></h3><ul><li>预写式日志 (WAL, Write Ahead Log) 的恢复模式。</li><li>可选值:<ul><li><code>"tolerate-corrupted-tail-records"</code>:容忍并丢弃位于日志尾部的不完整的数据 (trailing data)。</li><li><code>"absolute-consistency"</code>:当发现待恢复的日志中有被损坏的日志时,放弃恢复所有日志。</li><li><code>"point-in-time"</code>:按顺序恢复日志。遇到第一个损坏的日志时,停止恢复剩余的日志。</li><li><code>"skip-any-corrupted-records"</code>:灾难后恢复。跳过日志中的损坏记录,尽可能多地恢复数据。</li></ul></li><li>默认值:<code>"point-in-time"</code></li></ul><h3 id="wal-dir" style="position:relative"><a href="#wal-dir" aria-label="wal dir permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-dir</code></h3><ul><li>WAL 存储目录,若未指定,WAL 将存储在数据目录。</li><li>默认值:<code>""</code></li></ul><h3 id="wal-ttl-seconds" style="position:relative"><a href="#wal-ttl-seconds" aria-label="wal ttl seconds permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-ttl-seconds</code></h3><ul><li>归档 WAL 生存周期,超过该值时,系统会删除相关 WAL。</li><li>默认值:0</li><li>最小值:0</li><li>单位:秒</li></ul><h3 id="wal-size-limit" style="position:relative"><a href="#wal-size-limit" aria-label="wal size limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-size-limit</code></h3><ul><li>归档 WAL 大小限制,超过该值时,系统会删除相关 WAL。</li><li>默认值:0</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="max-total-wal-size" style="position:relative"><a href="#max-total-wal-size" aria-label="max total wal size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-total-wal-size</code></h3><ul><li>RocksDB WAL 总大小限制,即 <code>data-dir</code> 目录下 <code>*.log</code> 文件的大小总和。</li><li>默认值:<ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 <code>"4GiB"</code></li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为 <code>1</code></li></ul></li></ul><h3 id="stats-dump-period" style="position:relative"><a href="#stats-dump-period" aria-label="stats dump period permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stats-dump-period</code></h3><ul><li><p>将统计信息输出到日志中的间隔时间。</p></li><li><p>默认值:</p><ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 <code>"10m"</code>。</li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为 <code>"0"</code>。</li></ul></li></ul><h3 id="compaction-readahead-size" style="position:relative"><a href="#compaction-readahead-size" aria-label="compaction readahead size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compaction-readahead-size</code></h3><ul><li>开启 RocksDB compaction 过程中的预读功能,该项指定预读数据的大小。如果使用的是机械磁盘,建议该值至少为 2MiB。</li><li>默认值:0</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="writable-file-max-buffer-size" style="position:relative"><a href="#writable-file-max-buffer-size" aria-label="writable file max buffer size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>writable-file-max-buffer-size</code></h3><ul><li>WritableFileWrite 所使用的最大的 buffer 大小。</li><li>默认值:1MiB</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="use-direct-io-for-flush-and-compaction" style="position:relative"><a href="#use-direct-io-for-flush-and-compaction" aria-label="use direct io for flush and compaction permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>use-direct-io-for-flush-and-compaction</code></h3><ul><li>决定后台 flush 或者 compaction 的读写是否设置 O_DIRECT 的标志。该选项对性能的影响:开启 O_DIRECT 可以绕过并防止污染操作系统 buffer cache,但后续文件读取需要把内容重新读到 buffer cache。</li><li>默认值:false</li></ul><h3 id="rate-bytes-per-sec" style="position:relative"><a href="#rate-bytes-per-sec" aria-label="rate bytes per sec permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>rate-bytes-per-sec</code></h3><ul><li>未开启 Titan 时,限制 RocksDB Compaction 的 I/O 速率,以达到在流量高峰时,限制 RocksDB Compaction 减少其 I/O 带宽和 CPU 消耗对前台读写性能的影响。开启 Titan 时,限制 RocksDB Compaction 和 Titan GC 的 I/O 速率总和。当发现在流量高峰时 RocksDB Compaction 和 Titan GC 的 I/O 和/或 CPU 消耗过大,可以根据磁盘 I/O 带宽和实际写入流量适当配置这个选项。</li><li>默认值:10GiB</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="rate-limiter-refill-period" style="position:relative"><a href="#rate-limiter-refill-period" aria-label="rate limiter refill period permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>rate-limiter-refill-period</code></h3><ul><li>控制 I/O 令牌的刷新频率。较小的值可以减少 I/O 尖刺,但会增加 CPU 开销。</li><li>默认值:<code>"100ms"</code></li></ul><h3 id="rate-limiter-mode" style="position:relative"><a href="#rate-limiter-mode" aria-label="rate limiter mode permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>rate-limiter-mode</code></h3><ul><li>RocksDB 的 compaction rate limiter 模式。</li><li>可选值:"read-only","write-only","all-io"</li><li>默认值:"write-only"</li></ul><h3 id="rate-limiter-auto-tuned-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#rate-limiter-auto-tuned-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="rate limiter auto tuned span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>rate-limiter-auto-tuned</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>控制是否依据最近的负载量自动优化 RocksDB 的 compaction rate limiter 配置。此配置项开启后,compaction pending bytes 监控指标值会比一般情况下稍微高些。</li><li>默认值:true</li></ul><h3 id="enable-pipelined-write" style="position:relative"><a href="#enable-pipelined-write" aria-label="enable pipelined write permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-pipelined-write</code></h3><ul><li>控制是否开启 Pipelined Write。开启时会使用旧的 Pipelined Write,关闭时会使用新的 Pipelined Commit 机制。</li><li>默认值:false</li></ul><h3 id="bytes-per-sync" style="position:relative"><a href="#bytes-per-sync" aria-label="bytes per sync permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>bytes-per-sync</code></h3><ul><li>异步 Sync 限速速率。</li><li>默认值:1MiB</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="wal-bytes-per-sync" style="position:relative"><a href="#wal-bytes-per-sync" aria-label="wal bytes per sync permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-bytes-per-sync</code></h3><ul><li>WAL Sync 限速速率。</li><li>默认值:512KiB</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="info-log-max-size" style="position:relative"><a href="#info-log-max-size" aria-label="info log max size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-max-size</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃,其功能由配置参数 <a href="#max-size-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.file.max-size</code></a> 代替。</p></div></div></div><ul><li>Info 日志的最大大小。</li><li>默认值:1GiB</li><li>最小值:0</li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="info-log-roll-time" style="position:relative"><a href="#info-log-roll-time" aria-label="info log roll time permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-roll-time</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃。TiKV 不再支持按照时间自动切分日志,请使用配置参数 <a href="#max-size-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.file.max-size</code></a> 配置按照文件大小自动切分日志的阈值。</p></div></div></div><ul><li>日志截断间隔时间,如果为 0s 则不截断。</li><li>默认值:0s</li></ul><h3 id="info-log-keep-log-file-num" style="position:relative"><a href="#info-log-keep-log-file-num" aria-label="info log keep log file num permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-keep-log-file-num</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃,其功能由配置参数 <a href="#max-backups-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.file.max-backups</code></a> 代替。</p></div></div></div><ul><li>保留日志文件最大个数。</li><li>默认值:10</li><li>最小值:0</li></ul><h3 id="info-log-dir" style="position:relative"><a href="#info-log-dir" aria-label="info log dir permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-dir</code></h3><ul><li>日志存储目录。</li><li>默认值:""</li></ul><h3 id="info-log-level" style="position:relative"><a href="#info-log-level" aria-label="info log level permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-level</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃,其功能由配置参数 <a href="#level-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.level</code></a> 代替。</p></div></div></div><ul><li>RocksDB 的日志级别。</li><li>默认值:<code>"info"</code></li></ul><h3 id="write-buffer-flush-oldest-first-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#write-buffer-flush-oldest-first-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="write buffer flush oldest first span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>write-buffer-flush-oldest-first</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>该功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li>设置当 RocksDB 当前 memtable 内存占用达到阈值之后的 Flush 策略。</li><li>默认值:<code>false</code></li><li>可选值:<ul><li><code>false</code>:Flush 策略是优先选择数据量大的 memtable 落盘到 SST。</li><li><code>true</code>:Flush 策略是优先选择最早的 memtable 落盘到 SST。该策略可以清除冷数据的 memtable,用于有明显冷热数据的场景。</li></ul></li></ul><h3 id="write-buffer-limit-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#write-buffer-limit-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="write buffer limit span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>write-buffer-limit</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>该功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li><p>设置单个 TiKV 中所有 RocksDB 实例使用的 memtable 的总内存上限。<code>0</code> 表示不设限制。</p></li><li><p>默认值:</p><ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 <code>0</code>,即不限制。</li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为本机内存的 20%。</li></ul></li><li><p>单位:KiB|MiB|GiB</p></li></ul><h3 id="track-and-verify-wals-in-manifest-span-classversion-mark从-v659v715v752v800-版本开始引入span" style="position:relative"><a href="#track-and-verify-wals-in-manifest-span-classversion-mark%E4%BB%8E-v659v715v752v800-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="track and verify wals in manifest span classversion mark从 v659v715v752v800 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>track-and-verify-wals-in-manifest</code> <span class="version-mark">从 v6.5.9、v7.1.5、v7.5.2、v8.0.0 版本开始引入</span></h3><ul><li>控制是否在 RocksDB 的 MANIFEST 文件中记录 WAL (Write Ahead Log) 文件的信息,以及在启动时是否验证 WAL 文件的完整性。详情请参考 RocksDB <a href="https://github.com/facebook/rocksdb/wiki/Track-WAL-in-MANIFEST" target="_blank" referrerpolicy="no-referrer-when-downgrade">Track WAL in MANIFEST</a>。</li><li>默认值:<code>true</code></li><li>可选值:<ul><li><code>true</code>:在 MANIFEST 文件中记录 WAL 文件的信息,并在启动时验证 WAL 文件的完整性。</li><li><code>false</code>:不在 MANIFEST 文件中记录 WAL 文件的信息,而且不在启动时验证 WAL 文件的完整性。</li></ul></li></ul><h2 id="rocksdbtitan" style="position:relative"><a href="#rocksdbtitan" aria-label="rocksdbtitan permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>rocksdb.titan</h2><p>Titan 相关的配置项。</p><h3 id="enabled" style="position:relative"><a href="#enabled" aria-label="enabled permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enabled</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><ul><li>从 TiDB v7.6.0 开始,参数默认值从 <code>false</code> 变更为 <code>true</code>,即新集群默认开启 Titan,以更好地支持 TiDB 宽表写入场景和 JSON。</li><li>如果集群在升级到 TiDB v7.6.0 或更高版本之前未启用 Titan,则升级后将保持原有配置,继续使用 RocksDB,不会启用 Titan。</li><li>如果集群在升级到 TiDB v7.6.0 或更高版本之前已经启用了 Titan,则升级后将维持原有配置,保持启用 Titan 引擎,并保留升级前 <a href="/zh/tidb/stable/tikv-configuration-file#min-blob-size"><code>min-blob-size</code></a> 的配置。如果升级前没有显式配置该值,则升级后仍然保持了老版本默认值 <code>1KiB</code>,以确保升级后集群配置的稳定性。</li></ul></div></div></div><ul><li>开启 Titan 开关。</li><li>默认值:<code>true</code></li></ul><h3 id="dirname" style="position:relative"><a href="#dirname" aria-label="dirname permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>dirname</code></h3><ul><li>Titan Blob 文件存储目录。</li><li>默认值:titandb</li></ul><h3 id="disable-gc" style="position:relative"><a href="#disable-gc" aria-label="disable gc permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>disable-gc</code></h3><ul><li>关闭 Titan 对 Blob 文件的 GC 的开关。</li><li>默认值:false</li></ul><h3 id="max-background-gc" style="position:relative"><a href="#max-background-gc" aria-label="max background gc permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-background-gc</code></h3><ul><li>Titan 后台 GC 的线程个数,当从 <strong>TiKV Details</strong> > <strong>Thread CPU</strong> > <strong>RocksDB CPU</strong> 监控中观察到 Titan GC 线程长期处于满负荷状态时,应该考虑增加 Titan GC 线程池大小。</li><li>默认值:4</li><li>最小值:1</li></ul><h2 id="rocksdbdefaultcf--rocksdbwritecf--rocksdblockcf" style="position:relative"><a href="#rocksdbdefaultcf--rocksdbwritecf--rocksdblockcf" aria-label="rocksdbdefaultcf rocksdbwritecf rocksdblockcf permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>rocksdb.defaultcf | rocksdb.writecf | rocksdb.lockcf</h2><p>rocksdb defaultcf、rocksdb writecf 和 rocksdb lockcf 相关的配置项。</p><h3 id="block-size" style="position:relative"><a href="#block-size" aria-label="block size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>block-size</code></h3><ul><li>一个 RocksDB block 的默认大小。</li><li><code>defaultcf</code> 默认值:32KiB</li><li><code>writecf</code> 默认值:32KiB</li><li><code>lockcf</code> 默认值:16KiB</li><li>最小值:1KiB</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="block-cache-size" style="position:relative"><a href="#block-cache-size" aria-label="block cache size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>block-cache-size</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>从 v6.6.0 起,该配置项被废弃。</p></div></div></div><ul><li>一个 RocksDB block 的默认缓存大小。</li><li><code>defaultcf</code> 默认值:机器总内存 * 25%</li><li><code>writecf</code> 默认值:机器总内存 * 15%</li><li><code>lockcf</code> 默认值:机器总内存 * 2%</li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="disable-block-cache" style="position:relative"><a href="#disable-block-cache" aria-label="disable block cache permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>disable-block-cache</code></h3><ul><li>开启 block cache 开关。</li><li>默认值:false</li></ul><h3 id="cache-index-and-filter-blocks" style="position:relative"><a href="#cache-index-and-filter-blocks" aria-label="cache index and filter blocks permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cache-index-and-filter-blocks</code></h3><ul><li>开启缓存 index 和 filter 的开关。</li><li>默认值:true</li></ul><h3 id="pin-l0-filter-and-index-blocks" style="position:relative"><a href="#pin-l0-filter-and-index-blocks" aria-label="pin l0 filter and index blocks permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>pin-l0-filter-and-index-blocks</code></h3><ul><li>控制第 0 层 SST 文件的 index block 和 filter block 是否常驻在内存中的开关。</li><li>默认值:true</li></ul><h3 id="use-bloom-filter" style="position:relative"><a href="#use-bloom-filter" aria-label="use bloom filter permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>use-bloom-filter</code></h3><ul><li>开启 bloom filter 的开关。</li><li>默认值:true</li></ul><h3 id="optimize-filters-for-hits" style="position:relative"><a href="#optimize-filters-for-hits" aria-label="optimize filters for hits permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>optimize-filters-for-hits</code></h3><ul><li>开启优化 filter 的命中率的开关。</li><li><code>defaultcf</code> 默认值:<code>true</code></li><li><code>writecf</code> 默认值:<code>false</code></li><li><code>lockcf</code> 默认值:<code>false</code></li></ul><h3 id="optimize-filters-for-memory-span-classversion-mark从-v720-版本开始引入span" style="position:relative"><a href="#optimize-filters-for-memory-span-classversion-mark%E4%BB%8E-v720-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="optimize filters for memory span classversion mark从 v720 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>optimize-filters-for-memory</code> <span class="version-mark">从 v7.2.0 版本开始引入</span></h3><ul><li>控制是否生成能够最小化内存碎片的 Bloom/Ribbon filter。</li><li>只有当 <a href="#format-version-%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>format-version</code></a> >= 5 时,该配置项才生效。</li><li>默认值:<code>false</code></li></ul><h3 id="whole-key-filtering" style="position:relative"><a href="#whole-key-filtering" aria-label="whole key filtering permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>whole-key-filtering</code></h3><ul><li>开启将整个 key 放到 bloom filter 中的开关。</li><li><code>defaultcf</code> 默认值:<code>true</code></li><li><code>writecf</code> 默认值:<code>false</code></li><li><code>lockcf</code> 默认值:<code>true</code></li></ul><h3 id="bloom-filter-bits-per-key" style="position:relative"><a href="#bloom-filter-bits-per-key" aria-label="bloom filter bits per key permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>bloom-filter-bits-per-key</code></h3><ul><li>bloom filter 为每个 key 预留的长度。</li><li>默认值:10</li><li>单位:字节</li></ul><h3 id="block-based-bloom-filter" style="position:relative"><a href="#block-based-bloom-filter" aria-label="block based bloom filter permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>block-based-bloom-filter</code></h3><ul><li>开启每个 block 建立 bloom filter 的开关。</li><li>默认值:false</li></ul><h3 id="ribbon-filter-above-level-span-classversion-mark从-v720-版本开始引入span" style="position:relative"><a href="#ribbon-filter-above-level-span-classversion-mark%E4%BB%8E-v720-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="ribbon filter above level span classversion mark从 v720 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ribbon-filter-above-level</code> <span class="version-mark">从 v7.2.0 版本开始引入</span></h3><ul><li>控制是否对于大于等于该值的 level 使用 Ribbon filter,对于小于该值的 level,使用非 block-based bloom filter。当该配置开启时,<a href="#block-based-bloom-filter"><code>block-based-bloom-filter</code></a> 将被忽略。</li><li>只有当 <a href="#format-version-%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>format-version</code></a> >= 5 时,该配置项才生效。</li><li>默认值:<code>false</code></li></ul><h3 id="read-amp-bytes-per-bit" style="position:relative"><a href="#read-amp-bytes-per-bit" aria-label="read amp bytes per bit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>read-amp-bytes-per-bit</code></h3><ul><li>开启读放大统计的开关,0:不开启,> 0 开启。</li><li>默认值:0</li><li>最小值:0</li></ul><h3 id="compression-per-level" style="position:relative"><a href="#compression-per-level" aria-label="compression per level permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compression-per-level</code></h3><ul><li>每一层默认压缩算法。</li><li><code>defaultcf</code> 的默认值:<!-- -->["no", "no", "lz4", "lz4", "lz4", "zstd", "zstd"]</li><li><code>writecf</code> 的默认值:<!-- -->["no", "no", "lz4", "lz4", "lz4", "zstd", "zstd"]</li><li><code>lockcf</code> 的默认值:<!-- -->["no", "no", "no", "no", "no", "no", "no"]</li></ul><h3 id="bottommost-level-compression" style="position:relative"><a href="#bottommost-level-compression" aria-label="bottommost level compression permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>bottommost-level-compression</code></h3><ul><li>设置最底层的压缩算法。该设置将覆盖 <code>compression-per-level</code> 的设置。</li><li>因为最底层并非从数据开始写入 LSM-tree 起就直接采用 <code>compression-per-level</code> 数组中的最后一个压缩算法,使用 <code>bottommost-level-compression</code> 可以让最底层从一开始就使用压缩效果最好的压缩算法。</li><li>如果不想设置最底层的压缩算法,可以将该配置项的值设为 <code>disable</code>。</li><li>默认值:"zstd"</li></ul><h3 id="write-buffer-size" style="position:relative"><a href="#write-buffer-size" aria-label="write buffer size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>write-buffer-size</code></h3><ul><li>memtable 大小。</li><li><code>defaultcf</code> 默认值:<code>"128MiB"</code></li><li><code>writecf</code> 默认值:<code>"128MiB"</code></li><li><code>lockcf</code> 默认值:<ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 <code>"32MiB"</code></li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为 <code>"4MiB"</code></li></ul></li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="max-write-buffer-number" style="position:relative"><a href="#max-write-buffer-number" aria-label="max write buffer number permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-write-buffer-number</code></h3><ul><li>最大 memtable 个数。当 <code>storage.flow-control.enable</code> 的值为 <code>true</code> 时,<code>storage.flow-control.memtables-threshold</code> 会覆盖此配置。</li><li>默认值:5</li><li>最小值:0</li></ul><h3 id="min-write-buffer-number-to-merge" style="position:relative"><a href="#min-write-buffer-number-to-merge" aria-label="min write buffer number to merge permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>min-write-buffer-number-to-merge</code></h3><ul><li>触发 flush 的最小 memtable 个数。</li><li>默认值:1</li><li>最小值:0</li></ul><h3 id="max-bytes-for-level-base" style="position:relative"><a href="#max-bytes-for-level-base" aria-label="max bytes for level base permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-bytes-for-level-base</code></h3><ul><li>base level (L1) 最大字节数,一般设置为 memtable 大小 4 倍。当 L1 的数据量大小达到 <code>max-bytes-for-level-base</code> 限定的值的时候,会触发 L1 的 SST 文件和 L2 中有 overlap 的 SST 文件进行 compaction。</li><li><code>defaultcf</code> 默认值:<code>"512MiB"</code></li><li><code>writecf</code> 默认值:<code>"512MiB"</code></li><li><code>lockcf</code> 默认值:<code>"128MiB"</code></li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li><li>建议 <code>max-bytes-for-level-base</code> 的取值和 L0 的数据量大致相等,以减少不必要的 compaction。假如压缩方式为 "no:no:lz4:lz4:lz4:lz4:lz4",那么 <code>max-bytes-for-level-base</code> 的值应该是 <code>write-buffer-size * 4</code>,因为 L0 和 L1 均没有压缩,且 L0 触发 compaction 的条件是 SST 文件的个数到达 4(默认值)。当 L0 和 L1 都发生了 compaction 时,需要分析 RocksDB 的日志了解由一个 memtable 压缩成的 SST 文件的大小。如果文件大小为 32MiB,那么 <code>max-bytes-for-level-base</code> 的值建议设为 32MiB * 4 = 128MiB。</li></ul><h3 id="target-file-size-base" style="position:relative"><a href="#target-file-size-base" aria-label="target file size base permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>target-file-size-base</code></h3><ul><li>base level 的目标文件大小。当 <code>enable-compaction-guard</code> 的值为 <code>true</code> 时,<code>compaction-guard-max-output-file-size</code> 会覆盖此配置。</li><li>默认值:8MiB</li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="level0-file-num-compaction-trigger" style="position:relative"><a href="#level0-file-num-compaction-trigger" aria-label="level0 file num compaction trigger permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>level0-file-num-compaction-trigger</code></h3><ul><li>触发 compaction 的 L0 文件最大个数。</li><li><code>defaultcf</code> 默认值:<code>4</code></li><li><code>writecf</code> 默认值:<code>4</code></li><li><code>lockcf</code> 默认值:<code>1</code></li><li>最小值:<code>0</code></li></ul><h3 id="level0-slowdown-writes-trigger" style="position:relative"><a href="#level0-slowdown-writes-trigger" aria-label="level0 slowdown writes trigger permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>level0-slowdown-writes-trigger</code></h3><ul><li>触发 write stall 的 L0 文件最大个数。当 <code>storage.flow-control.enable</code> 的值为 <code>true</code> 时,<code>storage.flow-control.l0-files-threshold</code> 会覆盖此配置。</li><li>默认值:20</li><li>最小值:0</li></ul><h3 id="level0-stop-writes-trigger" style="position:relative"><a href="#level0-stop-writes-trigger" aria-label="level0 stop writes trigger permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>level0-stop-writes-trigger</code></h3><ul><li>完全阻停写入的 L0 文件最大个数。</li><li>默认值:36</li><li>最小值:0</li></ul><h3 id="max-compaction-bytes" style="position:relative"><a href="#max-compaction-bytes" aria-label="max compaction bytes permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-compaction-bytes</code></h3><ul><li>一次 compaction 最大写入字节数。</li><li>默认值:2GiB</li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="compaction-pri" style="position:relative"><a href="#compaction-pri" aria-label="compaction pri permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compaction-pri</code></h3><ul><li>优先处理 compaction 的类型。</li><li>可选值:<ul><li><code>"by-compensated-size"</code>:根据大小顺序,优先对大文件进行 compaction。</li><li><code>"oldest-largest-seq-first"</code>:根据时间顺序,优先对数据更新时间晚的文件进行 compaction。当你只在小范围内更新部分热点键 (hot keys) 时,可以使用此配置。</li><li><code>"oldest-smallest-seq-first"</code>:根据时间顺序,优先对长时间没有被 compact 到下一级的文件进行 compaction。如果你在大范围内随机更新了部分热点键,使用该配置可以轻微缓解写放大。</li><li><code>"min-overlapping-ratio"</code>:根据重叠比例,优先对在不同层之间文件重叠比例高的文件进行 compaction,即一个文件在 <code>下一层的大小</code>/<code>本层的大小</code> 的值越小,compaction 的优先级越高。在诸多场景下,该配置可以有效缓解写放大。</li></ul></li><li>默认值:<ul><li><code>defaultcf</code> 和 <code>writecf</code> 的默认值:<code>"min-overlapping-ratio"</code></li><li><code>lockcf</code> 的默认值:<code>"by-compensated-size"</code></li></ul></li></ul><h3 id="dynamic-level-bytes" style="position:relative"><a href="#dynamic-level-bytes" aria-label="dynamic level bytes permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>dynamic-level-bytes</code></h3><ul><li>开启 dynamic level bytes 优化的开关。</li><li>默认值:true</li></ul><h3 id="num-levels" style="position:relative"><a href="#num-levels" aria-label="num levels permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>num-levels</code></h3><ul><li>RocksDB 文件最大层数。</li><li>默认值:7</li></ul><h3 id="max-bytes-for-level-multiplier" style="position:relative"><a href="#max-bytes-for-level-multiplier" aria-label="max bytes for level multiplier permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-bytes-for-level-multiplier</code></h3><ul><li>每一层的默认放大倍数。</li><li>默认值:10</li></ul><h3 id="compaction-style" style="position:relative"><a href="#compaction-style" aria-label="compaction style permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compaction-style</code></h3><ul><li>compaction 方法。</li><li>可选值:"level","universal","fifo"</li><li>默认值:"level"</li></ul><h3 id="disable-auto-compactions" style="position:relative"><a href="#disable-auto-compactions" aria-label="disable auto compactions permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>disable-auto-compactions</code></h3><ul><li>是否关闭自动 compaction。</li><li>默认值:false</li></ul><h3 id="soft-pending-compaction-bytes-limit-1" style="position:relative"><a href="#soft-pending-compaction-bytes-limit-1" aria-label="soft pending compaction bytes limit 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>soft-pending-compaction-bytes-limit</code></h3><ul><li>pending compaction bytes 的软限制。当 <code>storage.flow-control.enable</code> 的值为 <code>true</code> 时,<code>storage.flow-control.soft-pending-compaction-bytes-limit</code> 会覆盖此配置。</li><li>默认值:192GiB</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="hard-pending-compaction-bytes-limit-1" style="position:relative"><a href="#hard-pending-compaction-bytes-limit-1" aria-label="hard pending compaction bytes limit 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>hard-pending-compaction-bytes-limit</code></h3><ul><li>pending compaction bytes 的硬限制。当 <code>storage.flow-control.enable</code> 的值为 <code>true</code> 时,<code>storage.flow-control.hard-pending-compaction-bytes-limit</code> 会覆盖此配置。</li><li>默认值:256GiB</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="enable-compaction-guard" style="position:relative"><a href="#enable-compaction-guard" aria-label="enable compaction guard permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-compaction-guard</code></h3><ul><li>设置 compaction guard 的启用状态。compaction guard 优化通过使用 TiKV Region 边界分割 SST 文件,帮助降低 compaction I/O,让 TiKV 能够输出较大的 SST 文件,并且在迁移 Region 时及时清理过期数据。</li><li><code>defaultcf</code> 默认值:<code>true</code></li><li><code>writecf</code> 默认值:<code>true</code></li><li><code>lockcf</code> 默认值:<code>false</code></li></ul><h3 id="compaction-guard-min-output-file-size" style="position:relative"><a href="#compaction-guard-min-output-file-size" aria-label="compaction guard min output file size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compaction-guard-min-output-file-size</code></h3><ul><li>设置 compaction guard 启用时 SST 文件大小的最小值,防止 SST 文件过小。</li><li>默认值:<code>"8MiB"</code></li><li>单位:KiB|MiB|GiB</li></ul><h3 id="compaction-guard-max-output-file-size" style="position:relative"><a href="#compaction-guard-max-output-file-size" aria-label="compaction guard max output file size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compaction-guard-max-output-file-size</code></h3><ul><li>设置 compaction guard 启用时 SST 文件大小的最大值,防止 SST 文件过大。对于同一列族,此配置项的值会覆盖 <code>target-file-size-base</code>。</li><li>默认值:128MiB</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="format-version-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#format-version-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="format version span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>format-version</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li><p>设置 SST 文件的格式版本。该配置项只影响新写入的表,对于已经存在的表,版本信息会从 footer 中读取。</p></li><li><p>可选值:</p><ul><li><code>0</code>:适用于所有 TiKV 版本。默认 checksum 类型为 CRC32。该版本不支持修改 checksum 类型。</li><li><code>1</code>:适用于所有 TiKV 版本。支持使用非默认的 checksum 类型,例如 xxHash。只有在 checksum 类型不是 CRC32 时,RocksDB 才会写入数据。(<code>0</code> 版本会自动升级)</li><li><code>2</code>:适用于所有 TiKV 版本。更改了压缩块的编码方式,使用 LZ4、BZip2 和 Zlib 压缩。</li><li><code>3</code>:适用于 TiKV v2.1 及以上版本。更改了索引块中 key 的编码方式。</li><li><code>4</code>:适用于 TiKV v3.0 及以上版本。更改了索引块中 value 的编码方式。</li><li><code>5</code>:适用于 TiKV v6.1 及以上版本。全量和分区 filter 采用一种具有不同模式的、更快、更准确的 Bloom filter 实现。</li></ul></li><li><p>默认值:</p><ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 <code>2</code>。</li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为 <code>5</code>。</li></ul></li></ul><h3 id="ttl-span-classversion-mark从-v720-版本开始引入span" style="position:relative"><a href="#ttl-span-classversion-mark%E4%BB%8E-v720-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="ttl span classversion mark从 v720 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ttl</code> <span class="version-mark">从 v7.2.0 版本开始引入</span></h3><ul><li>设置 SST 文件被自动选中执行 compaction 的 TTL 时间。更新时间超过此值的 SST 文件将被选中并进行 compaction。在执行 compaction 时,这些 SST 文件通常以级联的方式进行压缩,以便被压缩到最底层或最底层的文件中。</li><li>默认值:<code>"0s"</code>,表示默认不选择任何 SST 文件。</li><li>单位:s(second)|h(hour)|d(day)</li></ul><h3 id="periodic-compaction-seconds-span-classversion-mark从-v720-版本开始引入span" style="position:relative"><a href="#periodic-compaction-seconds-span-classversion-mark%E4%BB%8E-v720-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="periodic compaction seconds span classversion mark从 v720 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>periodic-compaction-seconds</code> <span class="version-mark">从 v7.2.0 版本开始引入</span></h3><ul><li>设置周期性 compaction 的时间。更新时间超过此值的 SST 文件将被选中进行 compaction,并被重新写入这些 SST 文件所在的层级。</li><li>默认值:<code>"0s"</code>,表示默认不触发此 compaction。</li><li>单位:s(second)|h(hour)|d(day)</li></ul><h2 id="rocksdbdefaultcftitan" style="position:relative"><a href="#rocksdbdefaultcftitan" aria-label="rocksdbdefaultcftitan permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>rocksdb.defaultcf.titan</h2><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>仅支持在 <code>rocksdb.defaultcf</code> 启用 Titan,不支持在 <code>rocksdb.writecf</code> 启用 Titan。</p></div></div></div><p>rocksdb defaultcf titan 相关的配置项。</p><h3 id="min-blob-size" style="position:relative"><a href="#min-blob-size" aria-label="min blob size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>min-blob-size</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><ul><li>为了提高宽表和 JSON 数据写入和点查性能,TiDB 从 v7.6.0 版本起默认启用 Titan,并将写入 Titan 的阈值参数 <code>min-blob-size</code> 的默认值从之前版本的 <code>1KiB</code> 调整为 <code>32KiB</code>,即当数据的 value 超过 <code>32KiB</code> 时,将存储在 Titan 中,而其他数据则继续存储在 RocksDB 中。</li><li>为了保证配置的连续性,已有集群升级到 TiDB v7.6.0 版本或者更高版本后,如果升级前用户未显式设置 <code>min-blob-size</code>,则维持使用老版本默认值 <code>1KiB</code>,以确保升级后集群配置的稳定性。</li><li>当参数被设置为小于 <code>32KiB</code> 时,TiKV 大范围扫描性能会受到一些影响。然而,如果负载主要是写入和点查为主,你可以适当调小 <code>min-blob-size</code> 的值以获取更好的写入和点查性能。</li></ul></div></div></div><ul><li>最小存储在 Blob 文件中 value 大小,低于该值的 value 还是存在 LSM-Tree 中。</li><li>默认值:32KiB</li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="blob-file-compression" style="position:relative"><a href="#blob-file-compression" aria-label="blob file compression permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>blob-file-compression</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><ul><li>Snappy 压缩文件必须遵循<a href="https://github.com/google/snappy" target="_blank" referrerpolicy="no-referrer-when-downgrade">官方 Snappy 格式</a>。不支持其他非官方压缩格式。</li><li>TiDB v7.5.0 及更早的版本,参数默认值为 <code>lz4</code>。TiDB v7.6.0 及更高版本,参数默认值调整为 <code>zstd</code>。</li></ul></div></div></div><ul><li>Blob 文件所使用的压缩算法,可选值:no、snappy、zlib、bz2、lz4、lz4hc、zstd。</li><li>默认值:zstd</li></ul><h3 id="zstd-dict-size" style="position:relative"><a href="#zstd-dict-size" aria-label="zstd dict size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>zstd-dict-size</code></h3><ul><li>指定 zstd 字典大小,默认为 <code>"0KiB"</code>,表示关闭 zstd 字典压缩,也就是说 Titan 中压缩的是单个 value 值,而 RocksDB 压缩以 Block(默认值为 <code>32KiB</code>)为单位。因此当关闭字典压缩、且 value 平均小于 <code>32KiB</code> 时,Titan 的压缩率低于 RocksDB。以 JSON 内容为例,Titan 的 Store Size 可能比 RocksDB 高 30% 至 50%。实际压缩率还取决于 value 内容是否适合压缩,以及不同 value 之间的相似性。你可以通过设置 <code>zstd-dict-size</code>(比如 <code>16KiB</code>)启用 zstd 字典以大幅提高压缩率(实际 Store Size 可以低于 RocksDB),但 zstd 字典压缩在有些负载下会有 10% 左右的性能损失。</li><li>默认值:<code>"0KiB"</code></li><li>单位:KiB|MiB|GiB </li></ul><h3 id="blob-cache-size" style="position:relative"><a href="#blob-cache-size" aria-label="blob cache size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>blob-cache-size</code></h3><ul><li>Blob 文件的 cache 大小。</li><li>默认值:0GiB</li><li>最小值:0</li><li>推荐值:0。从 v8.0.0 开始,TiKV 引入了 <code>shared-blob-cache</code> 配置项并默认开启,因此无需再单独设置 <code>blob-cache-size</code>。只有当 <code>shared-blob-cache</code> 设置为 <code>false</code> 时,<code>blob-cache-size</code> 的设置才生效。</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="shared-blob-cache从-v800-版本开始引入" style="position:relative"><a href="#shared-blob-cache%E4%BB%8E-v800-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5" aria-label="shared blob cache从 v800 版本开始引入 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>shared-blob-cache</code>(从 v8.0.0 版本开始引入)</h3><ul><li>是否启用 Titan Blob 文件和 RocksDB Block 文件的共享缓存</li><li>默认值:<code>true</code>。当开启共享缓存时,Block 文件具有更高的优先级,TiKV 将优先满足 Block 文件的缓存需求,然后将剩余的缓存用于 Blob 文件。</li></ul><h3 id="min-gc-batch-size" style="position:relative"><a href="#min-gc-batch-size" aria-label="min gc batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>min-gc-batch-size</code></h3><ul><li>做一次 GC 所要求的最低 Blob 文件大小总和。</li><li>默认值:16MiB</li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="max-gc-batch-size" style="position:relative"><a href="#max-gc-batch-size" aria-label="max gc batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-gc-batch-size</code></h3><ul><li>做一次 GC 所要求的最高 Blob 文件大小总和。</li><li>默认值:64MiB</li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="discardable-ratio" style="position:relative"><a href="#discardable-ratio" aria-label="discardable ratio permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>discardable-ratio</code></h3><ul><li><p>当一个 blob file 中无用数据(相应的 key 已经被更新或删除)比例超过以下阈值时,将会触发 Titan GC。将此文件有用的数据重写到另一个文件。这个值可以估算 Titan 的写放大和空间放大的上界(假设关闭压缩)。公式是:</p><p> 写放大上界 = 1 / <code>discardable-ratio</code></p><p> 空间放大上界 = 1 / (1 - <code>discardable-ratio</code>)</p><p> 可以看到,减少这个阈值可以减少空间放大,但是会造成 Titan 更频繁 GC;增加这个值可以减少 Titan GC,减少相应的 I/O 带宽和 CPU 消耗,但是会增加磁盘空间占用。</p></li><li><p>默认值:0.5</p></li><li><p>最小值:0</p></li><li><p>最大值:1</p></li></ul><h3 id="sample-ratio" style="position:relative"><a href="#sample-ratio" aria-label="sample ratio permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>sample-ratio</code></h3><ul><li>进行 GC 时,对 Blob 文件进行采样时读取数据占整个文件的比例。</li><li>默认值:0.1</li><li>最小值:0</li><li>最大值:1</li></ul><h3 id="merge-small-file-threshold" style="position:relative"><a href="#merge-small-file-threshold" aria-label="merge small file threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>merge-small-file-threshold</code></h3><ul><li>Blob 文件的大小小于该值时,无视 discardable-ratio 仍可能被 GC 选中。</li><li>默认值:8MiB</li><li>最小值:0</li><li>单位:KiB|MiB|GiB</li></ul><h3 id="blob-run-mode" style="position:relative"><a href="#blob-run-mode" aria-label="blob run mode permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>blob-run-mode</code></h3><ul><li>Titan 的运行模式选择。</li><li>可选值:<ul><li>"normal":value size 超过 <a href="#min-blob-size"><code>min-blob-size</code></a> 的数据会写入到 blob 文件。</li><li>"read-only":不再写入新数据到 blob,原有 blob 内的数据仍然可以读取。</li><li>"fallback":将 blob 内的数据写回 LSM。</li></ul></li><li>默认值:"normal"</li></ul><h3 id="level-merge" style="position:relative"><a href="#level-merge" aria-label="level merge permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>level-merge</code></h3><ul><li>是否通过开启 level-merge 来提升读性能,副作用是写放大会比不开启更大。</li><li>默认值:false</li></ul><h2 id="raftdb" style="position:relative"><a href="#raftdb" aria-label="raftdb permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>raftdb</h2><p>raftdb 相关配置项。</p><h3 id="max-background-jobs-1" style="position:relative"><a href="#max-background-jobs-1" aria-label="max background jobs 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-background-jobs</code></h3><ul><li>RocksDB 后台线程个数。调整 RocksDB 线程池的大小时,请参考 <a href="/zh/tidb/stable/tune-tikv-thread-performance#tikv-线程池调优">TiKV 线程池调优</a>。</li><li>默认值:4</li><li>最小值:2</li></ul><h3 id="max-sub-compactions-1" style="position:relative"><a href="#max-sub-compactions-1" aria-label="max sub compactions 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-sub-compactions</code></h3><ul><li>RocksDB 进行 subcompaction 的并发数。</li><li>默认值:2</li><li>最小值:1</li></ul><h3 id="max-open-files-1" style="position:relative"><a href="#max-open-files-1" aria-label="max open files 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-open-files</code></h3><ul><li>RocksDB 可以打开的文件总数。</li><li>默认值:<code>40960</code></li><li>最小值:<code>-1</code></li></ul><h3 id="max-manifest-file-size-1" style="position:relative"><a href="#max-manifest-file-size-1" aria-label="max manifest file size 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-manifest-file-size</code></h3><ul><li>单个 RocksDB Manifest 文件的最大大小。</li><li>默认值:<code>"20MiB"</code></li><li>最小值:<code>0</code></li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="create-if-missing-1" style="position:relative"><a href="#create-if-missing-1" aria-label="create if missing 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>create-if-missing</code></h3><ul><li>如果值为 <code>true</code>,当数据库不存在时将自动创建。</li><li>默认值:<code>true</code></li></ul><h3 id="stats-dump-period-1" style="position:relative"><a href="#stats-dump-period-1" aria-label="stats dump period 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stats-dump-period</code></h3><ul><li>输出统计信息到日志的时间间隔。</li><li>默认值:<code>10m</code></li></ul><h3 id="wal-dir-1" style="position:relative"><a href="#wal-dir-1" aria-label="wal dir 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-dir</code></h3><ul><li>存储 Raft RocksDB WAL 文件的目录,即 WAL 的绝对路径。<strong>请勿</strong>将该配置项设置为与 <a href="#wal-dir"><code>rocksdb.wal-dir</code></a> 相同的值。</li><li>如果未设置该配置项,日志文件将存储在与数据相同的目录中。</li><li>如果机器上有两个磁盘,将 RocksDB 数据和 WAL 日志存储在不同磁盘上可以提高性能。</li><li>默认值:<code>""</code></li></ul><h3 id="wal-ttl-seconds-1" style="position:relative"><a href="#wal-ttl-seconds-1" aria-label="wal ttl seconds 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-ttl-seconds</code></h3><ul><li>归档的 WAL 文件的保留时间。当超过该值时,系统将删除这些文件。</li><li>默认值:<code>0</code></li><li>最小值:<code>0</code></li><li>单位:秒</li></ul><h3 id="wal-size-limit-1" style="position:relative"><a href="#wal-size-limit-1" aria-label="wal size limit 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-size-limit</code></h3><ul><li>归档 WAL 文件的大小限制。当超过该值时,系统将删除这些文件。</li><li>默认值:<code>0</code></li><li>最小值:<code>0</code></li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="max-total-wal-size-1" style="position:relative"><a href="#max-total-wal-size-1" aria-label="max total wal size 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-total-wal-size</code></h3><ul><li>RocksDB WAL 文件的最大总大小。</li><li>默认值:<ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 <code>"4GiB"</code></li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为 <code>1</code></li></ul></li></ul><h3 id="compaction-readahead-size-1" style="position:relative"><a href="#compaction-readahead-size-1" aria-label="compaction readahead size 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compaction-readahead-size</code></h3><ul><li>控制在 RocksDB compaction 时是否开启预读取功能,并指定预读取数据的大小。</li><li>如果使用机械硬盘,建议将该值至少设置为 <code>2MiB</code>。</li><li>默认值:<code>0</code></li><li>最小值:<code>0</code></li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="writable-file-max-buffer-size-1" style="position:relative"><a href="#writable-file-max-buffer-size-1" aria-label="writable file max buffer size 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>writable-file-max-buffer-size</code></h3><ul><li>WriteableFileWrite 中使用的最大缓冲区大小。</li><li>默认值:<code>"1MiB"</code></li><li>最小值:<code>0</code></li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="use-direct-io-for-flush-and-compaction-1" style="position:relative"><a href="#use-direct-io-for-flush-and-compaction-1" aria-label="use direct io for flush and compaction 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>use-direct-io-for-flush-and-compaction</code></h3><ul><li>控制是否在后台刷新和 compaction 时使用 <code>O_DIRECT</code> 进行读写。启用 <code>O_DIRECT</code> 的性能影响:它可以绕过和防止操作系统缓存污染,但是后续文件读取需要重新读取内容到缓存中。</li><li>默认值:<code>false</code></li></ul><h3 id="enable-pipelined-write-1" style="position:relative"><a href="#enable-pipelined-write-1" aria-label="enable pipelined write 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-pipelined-write</code></h3><ul><li>控制是否开启 Pipelined Write。开启时会使用旧的 Pipelined Write,关闭时会使用新的 Pipelined Commit 机制。</li><li>默认值:<code>true</code></li></ul><h3 id="allow-concurrent-memtable-write" style="position:relative"><a href="#allow-concurrent-memtable-write" aria-label="allow concurrent memtable write permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>allow-concurrent-memtable-write</code></h3><ul><li>控制是否开启并发 memtable 写入。</li><li>默认值:<code>true</code></li></ul><h3 id="bytes-per-sync-1" style="position:relative"><a href="#bytes-per-sync-1" aria-label="bytes per sync 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>bytes-per-sync</code></h3><ul><li>异步 Sync 限速速率。</li><li>默认值:<code>"1MiB"</code></li><li>最小值:<code>0</code></li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="wal-bytes-per-sync-1" style="position:relative"><a href="#wal-bytes-per-sync-1" aria-label="wal bytes per sync 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wal-bytes-per-sync</code></h3><ul><li>WAL Sync 限速速率。</li><li>默认值:<code>"512KiB"</code></li><li>最小值:<code>0</code></li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="info-log-max-size-1" style="position:relative"><a href="#info-log-max-size-1" aria-label="info log max size 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-max-size</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃,其功能由配置参数 <a href="#max-size-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.file.max-size</code></a> 代替。</p></div></div></div><ul><li>Info 日志的最大大小。</li><li>默认值:<code>"1GiB"</code></li><li>最小值:<code>0</code></li><li>单位:B|KiB|MiB|GiB</li></ul><h3 id="info-log-roll-time-1" style="position:relative"><a href="#info-log-roll-time-1" aria-label="info log roll time 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-roll-time</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃。TiKV 不再支持按照时间自动切分日志,请使用配置参数 <a href="#max-size-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.file.max-size</code></a> 配置按照文件大小自动切分日志的阈值。</p></div></div></div><ul><li>Info 日志截断间隔时间,如果为 <code>"0s"</code> 则不截断。</li><li>默认值:<code>"0s"</code></li></ul><h3 id="info-log-keep-log-file-num-1" style="position:relative"><a href="#info-log-keep-log-file-num-1" aria-label="info log keep log file num 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-keep-log-file-num</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃,其功能由配置参数 <a href="#max-backups-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.file.max-backups</code></a> 代替。</p></div></div></div><ul><li>RaftDB 中保存的 Info 日志文件的最大数量。</li><li>默认值:<code>10</code></li><li>最小值:<code>0</code></li></ul><h3 id="info-log-dir-1" style="position:relative"><a href="#info-log-dir-1" aria-label="info log dir 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-dir</code></h3><ul><li>Info 日志存储的目录。</li><li>默认值:<code>""</code></li></ul><h3 id="info-log-level-1" style="position:relative"><a href="#info-log-level-1" aria-label="info log level 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>info-log-level</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,RocksDB 的日志改为由 TiKV 的日志模块进行管理,因此该配置项被废弃,其功能由配置参数 <a href="#level-%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>log.level</code></a> 代替。</p></div></div></div><ul><li>RaftDB 的日志级别。</li><li>默认值:<code>"info"</code></li></ul><h2 id="raft-engine" style="position:relative"><a href="#raft-engine" aria-label="raft engine permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>raft-engine</h2><p>Raft Engine 相关的配置项。</p><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><ul><li>第一次开启 Raft Engine 时,TiKV 会将原有的 RocksDB 数据转移至 Raft Engine 中。因此,TiKV 的启动时间会比较长,你需要额外等待几十秒。</li><li>如果你要将 TiDB 集群降级至 v5.4.0 以前的版本(不含 v5.4.0),你需要在降级<strong>之前</strong>先关闭 Raft Engine(即把 <code>enable</code> 配置项设置为 <code>false</code>,并重启 TiKV 使配置生效),否则会导致集群降级后无法正常开启。</li></ul></div></div></div><h3 id="enable-1" style="position:relative"><a href="#enable-1" aria-label="enable 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable</code></h3><ul><li>决定是否使用 Raft Engine 来存储 Raft 日志。开启该配置项后,<code>raftdb</code> 的配置不再生效。</li><li>默认值:<code>true</code></li></ul><h3 id="dir" style="position:relative"><a href="#dir" aria-label="dir permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>dir</code></h3><ul><li>存储 Raft 日志文件的目录。如果该目录不存在,则在启动 TiKV 时创建该目录。</li><li>如果未设置此配置,则使用 <code>{data-dir}/raft-engine</code>。</li><li>如果你的机器上有多个磁盘,建议将 Raft Engine 的数据存储在单独的磁盘上,以提高 TiKV 性能。</li><li>默认值:<code>""</code></li></ul><h3 id="batch-compression-threshold" style="position:relative"><a href="#batch-compression-threshold" aria-label="batch compression threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>batch-compression-threshold</code></h3><ul><li>指定日志批处理的阈值大小。大于此配置的日志批次将被压缩。如果将此配置项设置为 <code>0</code>,则禁用压缩。</li><li>默认值:<code>"8KiB"</code></li></ul><h3 id="bytes-per-sync-2" style="position:relative"><a href="#bytes-per-sync-2" aria-label="bytes per sync 2 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>bytes-per-sync</code></h3><ul><li>指定缓存写入的最大累积大小。当超过此配置值时,缓存的写入将被刷写到磁盘。</li><li>如果将此配置项设置为 <code>0</code>,则禁用增量同步。</li><li>默认值:<code>"4MiB"</code></li></ul><h3 id="target-file-size" style="position:relative"><a href="#target-file-size" aria-label="target file size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>target-file-size</code></h3><ul><li>指定日志文件的最大大小。当日志文件大于此值时,将对其进行轮转。</li><li>默认值:<code>"128MiB"</code></li></ul><h3 id="purge-threshold" style="position:relative"><a href="#purge-threshold" aria-label="purge threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>purge-threshold</code></h3><ul><li>指定主日志队列的阈值大小。当超过此配置值时,将对主日志队列执行垃圾回收。</li><li>此参数可用于调整 Raft Engine 的空间占用大小。</li><li>默认值:<code>"10GiB"</code></li></ul><h3 id="recovery-mode" style="position:relative"><a href="#recovery-mode" aria-label="recovery mode permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>recovery-mode</code></h3><ul><li>确定在日志恢复过程中如何处理文件损坏。</li><li>可选值:<code>"absolute-consistency"</code>, <code>"tolerate-tail-corruption"</code>, <code>"tolerate-any-corruption"</code></li><li>默认值:<code>"tolerate-tail-corruption"</code></li></ul><h3 id="recovery-read-block-size" style="position:relative"><a href="#recovery-read-block-size" aria-label="recovery read block size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>recovery-read-block-size</code></h3><ul><li>恢复期间读取日志文件的最小 I/O 大小。</li><li>默认值:<code>"16KiB"</code></li><li>最小值:<code>"512B"</code></li></ul><h3 id="recovery-threads" style="position:relative"><a href="#recovery-threads" aria-label="recovery threads permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>recovery-threads</code></h3><ul><li>用于扫描和恢复日志文件的线程数。</li><li>默认值:<code>4</code></li><li>最小值:<code>1</code></li></ul><h3 id="memory-limit" style="position:relative"><a href="#memory-limit" aria-label="memory limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>memory-limit</code></h3><ul><li>指定 Raft Engine 使用内存的上限。</li><li>当该配置项未设置时,Raft Engine 默认使用系统总内存的 15%。</li><li>默认值:<code>系统总内存 * 15%</code></li></ul><h3 id="format-version-span-classversion-mark从-v630-版本开始引入span" style="position:relative"><a href="#format-version-span-classversion-mark%E4%BB%8E-v630-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="format version span classversion mark从 v630 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>format-version</code> <span class="version-mark">从 v6.3.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p><code>format-version</code> 的值设置为 <code>2</code> 后,如果你需要将 TiKV 集群降级至 v6.3.0 以前的版本,你需要在降级<strong>之前</strong>执行如下操作:</p><ol><li>关闭 Raft Engine。将 <a href="/zh/tidb/stable/tikv-configuration-file#enable-1"><code>enable</code></a> 配置项设置为 <code>false</code>,并重启 TiKV 使配置生效。</li><li>将 <code>format-version</code> 的值重新设置为 <code>1</code>。</li><li>重新打开 Raft Engine,即把 <code>enable</code> 配置项重设为 <code>true</code>,并重启 TiKV 使配置生效。</li></ol></div></div></div><ul><li>指定 Raft Engine 的日志文件格式版本。</li><li>可选值:<ul><li><code>1</code>:v6.3.0 以前的默认日志文件格式。v6.1.0 及以后版本的 TiKV 可以读取该格式。</li><li><code>2</code>:支持日志回收。v6.3.0 及以后版本的 TiKV 可以读取该格式。</li></ul></li><li>默认值:<ul><li>当 <code>storage.engine="raft-kv"</code> 时,默认值为 <code>2</code></li><li>当 <code>storage.engine="partitioned-raft-kv"</code> 时,默认值为 <code>5</code></li></ul></li></ul><h3 id="enable-log-recycle-span-classversion-mark从-v630-版本开始引入span" style="position:relative"><a href="#enable-log-recycle-span-classversion-mark%E4%BB%8E-v630-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable log recycle span classversion mark从 v630 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-log-recycle</code> <span class="version-mark">从 v6.3.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>仅在 <a href="#format-version-%E4%BB%8E-v630-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>format-version</code></a> 的值大于等于 2 时,该配置项才生效。</p></div></div></div><ul><li>控制 Raft Engine 是否回收过期的日志文件。该配置项启用时,Raft Engine 将保留逻辑上被清除的日志文件,用于日志回收,减少写负载的长尾延迟。</li><li>默认值:<code>true</code></li></ul><h3 id="prefill-for-recycle-span-classversion-mark从-v700-版本开始引入span" style="position:relative"><a href="#prefill-for-recycle-span-classversion-mark%E4%BB%8E-v700-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="prefill for recycle span classversion mark从 v700 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>prefill-for-recycle</code> <span class="version-mark">从 v7.0.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>仅在 <a href="#enable-log-recycle-%E4%BB%8E-v630-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>enable-log-recycle</code></a> 的值为 <code>true</code> 时,该配置项才生效。</p></div></div></div><ul><li>控制 Raft Engine 是否自动生成空的日志文件用于日志回收。该配置项启用时,Raft Engine 将在初始化时自动填充一批空日志文件用于日志回收,保证日志回收在初始化后立即生效。</li><li>默认值:<code>false</code></li></ul><h2 id="security" style="position:relative"><a href="#security" aria-label="security permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>security</h2><p>安全相关配置项。</p><h3 id="ca-path" style="position:relative"><a href="#ca-path" aria-label="ca path permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ca-path</code></h3><ul><li>CA 文件路径。</li><li>默认值:""</li></ul><h3 id="cert-path" style="position:relative"><a href="#cert-path" aria-label="cert path permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cert-path</code></h3><ul><li>包含 X.509 证书的 PEM 文件路径。</li><li>默认值:""</li></ul><h3 id="key-path" style="position:relative"><a href="#key-path" aria-label="key path permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>key-path</code></h3><ul><li>包含 X.509 key 的 PEM 文件路径。</li><li>默认值:""</li></ul><h3 id="cert-allowed-cn" style="position:relative"><a href="#cert-allowed-cn" aria-label="cert allowed cn permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cert-allowed-cn</code></h3><ul><li>客户端提供的证书中,可接受的 X.509 通用名称列表。仅当提供的通用名称与列表中的条目之一完全匹配时,才会允许其请求。</li><li>默认值:<code>[]</code>。这意味着默认情况下禁用客户端证书 CN 检查。</li></ul><h3 id="redact-info-log-span-classversion-mark从-v408-版本开始引入span" style="position:relative"><a href="#redact-info-log-span-classversion-mark%E4%BB%8E-v408-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="redact info log span classversion mark从 v408 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>redact-info-log</code> <span class="version-mark">从 v4.0.8 版本开始引入</span></h3><ul><li>若开启该选项,日志中的用户数据会以 <code>?</code> 代替。</li><li>默认值:<code>false</code></li></ul><h2 id="securityencryption" style="position:relative"><a href="#securityencryption" aria-label="securityencryption permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>security.encryption</h2><p><a href="/zh/tidb/stable/encryption-at-rest">静态加密</a> (TDE) 有关的配置项。</p><h3 id="data-encryption-method" style="position:relative"><a href="#data-encryption-method" aria-label="data encryption method permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>data-encryption-method</code></h3><ul><li>数据文件的加密方法。</li><li>可选值:<code>"plaintext"</code>,<code>"aes128-ctr"</code>,<code>"aes192-ctr"</code>,<code>"aes256-ctr"</code>,<code>"sm4-ctr"</code>(从 v6.3.0 开始支持)</li><li>选择 <code>"plaintext"</code> 以外的值则表示启用加密功能。此时必须指定主密钥。</li><li>默认值:<code>"plaintext"</code></li></ul><h3 id="data-key-rotation-period" style="position:relative"><a href="#data-key-rotation-period" aria-label="data key rotation period permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>data-key-rotation-period</code></h3><ul><li>指定 TiKV 轮换数据密钥的频率。</li><li>默认值:<code>7d</code></li></ul><h3 id="enable-file-dictionary-log" style="position:relative"><a href="#enable-file-dictionary-log" aria-label="enable file dictionary log permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-file-dictionary-log</code></h3><ul><li>启用优化,以减少 TiKV 管理加密元数据时的 I/O 操作和互斥锁竞争。</li><li>此配置参数默认启用,为避免可能出现的兼容性问题,请参考<a href="/zh/tidb/stable/encryption-at-rest#tikv-版本间兼容性">静态加密 - TiKV 版本间兼容性</a>。</li><li>默认值:<code>true</code></li></ul><h3 id="master-key" style="position:relative"><a href="#master-key" aria-label="master key permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>master-key</code></h3><ul><li>指定启用加密时的主密钥。若要了解如何配置主密钥,可以参考<a href="/zh/tidb/stable/encryption-at-rest#配置加密">静态加密 - 配置加密</a>。</li></ul><h3 id="previous-master-key" style="position:relative"><a href="#previous-master-key" aria-label="previous master key permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>previous-master-key</code></h3><ul><li>指定轮换新主密钥时的旧主密钥。旧主密钥的配置格式与主密钥相同。若要了解如何配置主密钥,可以参考<a href="/zh/tidb/stable/encryption-at-rest#配置加密">静态加密 - 配置加密</a>。</li></ul><h2 id="import" style="position:relative"><a href="#import" aria-label="import permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>import</h2><p>用于 TiDB Lightning 导入及 BR 恢复相关的配置项。</p><h3 id="num-threads" style="position:relative"><a href="#num-threads" aria-label="num threads permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>num-threads</code></h3><ul><li>处理 RPC 请求的线程数量。</li><li>默认值:8</li><li>最小值:1</li></ul><h3 id="stream-channel-window" style="position:relative"><a href="#stream-channel-window" aria-label="stream channel window permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stream-channel-window</code></h3><ul><li>Stream channel 的窗口大小。当 channel 满时,Stream 会被阻塞。</li><li>默认值:<code>128</code></li></ul><h3 id="memory-use-ratio-span-classversion-mark从-v650-版本开始引入span" style="position:relative"><a href="#memory-use-ratio-span-classversion-mark%E4%BB%8E-v650-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="memory use ratio span classversion mark从 v650 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>memory-use-ratio</code> <span class="version-mark">从 v6.5.0 版本开始引入</span></h3><ul><li>从 v6.5.0 开始,PITR 支持直接将备份日志文件读取到缓存中,然后进行恢复。此配置项用来配置 PITR 恢复中可用内存与系统总内存的占比。</li><li>可调整范围:<!-- -->[0.0, 0.5]</li><li>默认值:<code>0.3</code>,表示系统 30% 的内存可用于 PITR 恢复;当为 <code>0.0</code> 时,表示通过下载日志文件到本地进行 PITR 恢复。</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>在小于 v6.5.0 的版本中,PITR 仅支持将备份文件下载到本地进行恢复。</p></div></div></div><h2 id="gc" style="position:relative"><a href="#gc" aria-label="gc permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>gc</h2><h3 id="batch-keys" style="position:relative"><a href="#batch-keys" aria-label="batch keys permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>batch-keys</code></h3><ul><li>一次 GC 操作中的 key 的数量。</li><li>默认值:<code>512</code></li></ul><h3 id="max-write-bytes-per-sec" style="position:relative"><a href="#max-write-bytes-per-sec" aria-label="max write bytes per sec permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-write-bytes-per-sec</code></h3><ul><li>GC 工作线程每秒可以写入 RocksDB 的最大字节数。</li><li>如果设置为 <code>0</code>,则没有限制。</li><li>默认值:<code>"0"</code></li></ul><h3 id="enable-compaction-filter-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#enable-compaction-filter-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable compaction filter span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-compaction-filter</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>是否开启 GC in Compaction Filter 特性。</li><li>默认值:true</li></ul><h3 id="ratio-threshold" style="position:relative"><a href="#ratio-threshold" aria-label="ratio threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ratio-threshold</code></h3><ul><li>触发 GC 的垃圾比例阈值。</li><li>默认值:<code>1.1</code></li></ul><h3 id="num-threads-span-classversion-mark从-v658v714v751-和-v760-版本开始引入span" style="position:relative"><a href="#num-threads-span-classversion-mark%E4%BB%8E-v658v714v751-%E5%92%8C-v760-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="num threads span classversion mark从 v658v714v751 和 v760 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>num-threads</code> <span class="version-mark">从 v6.5.8、v7.1.4、v7.5.1 和 v7.6.0 版本开始引入</span></h3><ul><li>当 <code>enable-compaction-filter</code> 为 <code>false</code> 时 GC 线程个数。</li><li>默认值:1</li></ul><h2 id="backup" style="position:relative"><a href="#backup" aria-label="backup permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>backup</h2><p>用于 BR 备份相关的配置项。</p><h3 id="num-threads-1" style="position:relative"><a href="#num-threads-1" aria-label="num threads 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>num-threads</code></h3><ul><li>处理备份的工作线程数量。</li><li>默认值:CPU * 0.5,但最大为 8</li><li>可调整范围:<!-- -->[1, CPU]</li><li>最小值:1</li></ul><h3 id="batch-size" style="position:relative"><a href="#batch-size" aria-label="batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>batch-size</code></h3><ul><li>一次备份的数据范围数量。</li><li>默认值:<code>8</code></li></ul><h3 id="sst-max-size" style="position:relative"><a href="#sst-max-size" aria-label="sst max size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>sst-max-size</code></h3><ul><li>备份 SST 文件大小的阈值。如果 TiKV Region 中备份文件的大小超过该阈值,则将该文件备份到 Region 分割的多个 Region 文件中,每个分割 Region 中的文件大小均为 <code>sst-max-size</code>(或略大)。</li><li>例如,当 Region <code>[a,e)</code> 中备份文件大小超过 <code>sst-max-size</code> 时,该文件会被备份到多个 Region 范围中,分别为 Region <code>[a,b)</code>、<code>[b,c)</code>、<code>[c,d)</code> 和 <code>[d,e)</code>,并且 <code>[a,b)</code>、<code>[b,c)</code> 和 <code>[c,d)</code> 的大小均为 <code>sst-max-size</code>(或略大)。</li><li>默认值:<code>"144MiB"</code></li></ul><h3 id="enable-auto-tune-span-classversion-mark从-v54-版本开始引入span" style="position:relative"><a href="#enable-auto-tune-span-classversion-mark%E4%BB%8E-v54-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable auto tune span classversion mark从 v54 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-auto-tune</code> <span class="version-mark">从 v5.4 版本开始引入</span></h3><ul><li>在集群资源占用率较高的情况下,是否允许 BR 自动限制备份使用的资源,减少对集群的影响。详情见<a href="/zh/tidb/stable/br-auto-tune">自动调节</a>。</li><li>默认值:true</li></ul><h3 id="s3-multi-part-size-span-classversion-mark从-v532-版本开始引入span" style="position:relative"><a href="#s3-multi-part-size-span-classversion-mark%E4%BB%8E-v532-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="s3 multi part size span classversion mark从 v532 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>s3-multi-part-size</code> <span class="version-mark">从 v5.3.2 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>引入该配置项是为了解决备份期间遇到的 S3 限流导致备份失败的问题。该问题已通过<a href="/zh/tidb/stable/br-snapshot-architecture#备份文件目录结构">优化 BR 备份数据存储的目录结构</a>得到解决。因此,该配置项自 v6.1.1 起开始废弃,不再推荐使用。</p></div></div></div><ul><li>备份阶段 S3 分块上传的块大小。可通过调整该参数来控制备份时发往 S3 的请求数量。</li><li>TiKV 备份数据到 S3 时,如果备份文件大于该配置项的值,会自动进行<a href="https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/API/API_UploadPart.html" target="_blank" referrerpolicy="no-referrer-when-downgrade">分块上传</a>。根据压缩率的不同,96 MiB Region 产生的备份文件大约在 10 MiB~30 MiB 之间。</li><li>默认值:5MiB</li></ul><h2 id="backuphadoop" style="position:relative"><a href="#backuphadoop" aria-label="backuphadoop permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>backup.hadoop</h2><h3 id="home" style="position:relative"><a href="#home" aria-label="home permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>home</code></h3><ul><li>指定 HDFS shell 命令的位置,并且允许 TiKV 找到该 shell 命令。该配置项与环境变量 <code>$HADOOP_HOME</code> 有相同的效果。</li><li>默认值:<code>""</code></li></ul><h3 id="linux-user" style="position:relative"><a href="#linux-user" aria-label="linux user permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>linux-user</code></h3><ul><li>指定 TiKV 运行 HDFS shell 命令的 Linux 用户。</li><li>如果未设置该配置项,TiKV 会使用当前 Linux 用户。</li><li>默认值:<code>""</code></li></ul><h2 id="log-backup" style="position:relative"><a href="#log-backup" aria-label="log backup permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>log-backup</h2><p>用于日志备份相关的配置项。</p><h3 id="enable-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#enable-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>用于开启日志备份功能。</li><li>默认值:true</li></ul><h3 id="file-size-limit-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#file-size-limit-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="file size limit span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>file-size-limit</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>日志备份任务中,保存到存储的备份文件大小。</li><li>默认值:256MiB</li><li>注意:一般情况下,<code>file-size-limit</code> 的值会大于外部存储上显示的备份文件大小,这是因为备份文件在上传时会被压缩。</li></ul><h3 id="initial-scan-pending-memory-quota-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#initial-scan-pending-memory-quota-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="initial scan pending memory quota span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>initial-scan-pending-memory-quota</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>日志备份任务在扫描增量数据时,用于存放扫描数据的缓存大小。</li><li>默认值:<code>min(机器总内存 * 10%, 512 MiB)</code></li></ul><h3 id="initial-scan-rate-limit-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#initial-scan-rate-limit-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="initial scan rate limit span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>initial-scan-rate-limit</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>日志备份任务在扫描增量数据时的吞吐限流参数,表示每秒最多从硬盘读出的数据量。注意,如果仅指定数字(如 <code>60</code>),则单位为 Byte 而不是 KiB。</li><li>默认值:60MiB</li><li>最小值:1MiB</li></ul><h3 id="max-flush-interval-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#max-flush-interval-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="max flush interval span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-flush-interval</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>日志备份任务将备份数据写入到外部存储的最大间隔时间。</li><li>默认值:3min</li></ul><h3 id="num-threads-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#num-threads-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="num threads span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>num-threads</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>日志备份功能占用的线程数目。</li><li>默认值:CPU * 0.5</li><li>可调整范围:<!-- -->[2, 12]</li></ul><h3 id="temp-path-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#temp-path-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="temp path span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>temp-path</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li>日志文件存放的临时目录,日志文件预先写入临时目录,然后 flush 到外部存储中。</li><li>默认值:<code>${deploy-dir}/data/log-backup-temp</code></li></ul><h2 id="cdc" style="position:relative"><a href="#cdc" aria-label="cdc permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>cdc</h2><p>用于 TiCDC 捕捉变更数据相关的配置项。</p><h3 id="min-ts-interval" style="position:relative"><a href="#min-ts-interval" aria-label="min ts interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>min-ts-interval</code></h3><ul><li>定期推进 Resolved TS 的时间间隔。</li><li>默认值:200ms</li></ul><h3 id="old-value-cache-memory-quota" style="position:relative"><a href="#old-value-cache-memory-quota" aria-label="old value cache memory quota permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>old-value-cache-memory-quota</code></h3><ul><li>缓存在内存中的 TiCDC Old Value 的条目占用内存的上限。</li><li>默认值:512MiB</li></ul><h3 id="sink-memory-quota" style="position:relative"><a href="#sink-memory-quota" aria-label="sink memory quota permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>sink-memory-quota</code></h3><ul><li>缓存在内存中的 TiCDC 数据变更事件占用内存的上限。</li><li>默认值:512MiB</li></ul><h3 id="incremental-scan-speed-limit" style="position:relative"><a href="#incremental-scan-speed-limit" aria-label="incremental scan speed limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>incremental-scan-speed-limit</code></h3><ul><li>增量扫描历史数据的速度上限。</li><li>默认值:128MiB,即 128MiB 每秒。</li></ul><h3 id="incremental-scan-threads" style="position:relative"><a href="#incremental-scan-threads" aria-label="incremental scan threads permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>incremental-scan-threads</code></h3><ul><li>增量扫描历史数据任务的线程个数。</li><li>默认值:4,即 4 个线程</li></ul><h3 id="incremental-scan-concurrency" style="position:relative"><a href="#incremental-scan-concurrency" aria-label="incremental scan concurrency permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>incremental-scan-concurrency</code></h3><ul><li>增量扫描历史数据任务的最大并发执行个数。</li><li>默认值:6,即最多并发执行 6 个任务</li><li>注意:<code>incremental-scan-concurrency</code> 需要大于等于 <code>incremental-scan-threads</code>,否则 TiKV 启动会报错。</li></ul><h2 id="resolved-ts" style="position:relative"><a href="#resolved-ts" aria-label="resolved ts permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>resolved-ts</h2><p>用于维护 Resolved TS 以服务 Stale Read 请求的相关配置项。</p><h3 id="enable-2" style="position:relative"><a href="#enable-2" aria-label="enable 2 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable</code></h3><ul><li>是否为所有 Region 维护 Resolved TS。</li><li>默认值:true</li></ul><h3 id="advance-ts-interval" style="position:relative"><a href="#advance-ts-interval" aria-label="advance ts interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>advance-ts-interval</code></h3><ul><li>定期推进 Resolved TS 的时间间隔。</li><li>默认值:20s</li></ul><h3 id="scan-lock-pool-size" style="position:relative"><a href="#scan-lock-pool-size" aria-label="scan lock pool size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>scan-lock-pool-size</code></h3><ul><li>初始化 Resolved TS 时 TiKV 扫描 MVCC(多版本并发控制)锁数据的线程个数。</li><li>默认值:2,即 2 个线程</li></ul><h2 id="pessimistic-txn" style="position:relative"><a href="#pessimistic-txn" aria-label="pessimistic txn permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>pessimistic-txn</h2><p>悲观事务使用方法请参考 <a href="/zh/tidb/stable/pessimistic-transaction">TiDB 悲观事务模式</a>。</p><h3 id="wait-for-lock-timeout" style="position:relative"><a href="#wait-for-lock-timeout" aria-label="wait for lock timeout permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wait-for-lock-timeout</code></h3><ul><li>悲观事务在 TiKV 中等待其他事务释放锁的最长时间。若超时则会返回错误给 TiDB 并由 TiDB 重试加锁,语句最长等锁时间由 <code>innodb_lock_wait_timeout</code> 控制。</li><li>默认值:1s</li><li>最小值:1ms</li></ul><h3 id="wake-up-delay-duration" style="position:relative"><a href="#wake-up-delay-duration" aria-label="wake up delay duration permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>wake-up-delay-duration</code></h3><ul><li>悲观事务释放锁时,只会唤醒等锁事务中 <code>start_ts</code> 最小的事务,其他事务将会延迟 <code>wake-up-delay-duration</code> 之后被唤醒。</li><li>默认值:20ms</li></ul><h3 id="pipelined" style="position:relative"><a href="#pipelined" aria-label="pipelined permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>pipelined</code></h3><ul><li>开启流水线式加悲观锁流程。开启该功能后,TiKV 在检测数据满足加锁要求后,立刻通知 TiDB 执行后面的请求,并异步写入悲观锁,从而降低大部分延迟,显著提升悲观事务的性能。但有较低概率出现悲观锁异步写入失败的情况,可能会导致悲观事务提交失败。</li><li>默认值:true</li></ul><h3 id="in-memory-span-classversion-mark从-v600-版本开始引入span" style="position:relative"><a href="#in-memory-span-classversion-mark%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="in memory span classversion mark从 v600 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>in-memory</code> <span class="version-mark">从 v6.0.0 版本开始引入</span></h3><ul><li>开启内存悲观锁功能。开启该功能后,悲观事务会尽可能在 TiKV 内存中存储悲观锁,而不将悲观锁写入磁盘,也不将悲观锁同步给其他副本,从而提升悲观事务的性能。但有较低概率出现悲观锁丢失的情况,可能会导致悲观事务提交失败。</li><li>默认值:true</li><li>注意:<code>in-memory</code> 仅在 <code>pipelined</code> 为 true 时生效。</li></ul><h2 id="quota" style="position:relative"><a href="#quota" aria-label="quota permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>quota</h2><p>用于请求限流 (Quota Limiter) 相关的配置项。</p><h3 id="max-delay-duration-span-classversion-mark从-v600-版本开始引入span" style="position:relative"><a href="#max-delay-duration-span-classversion-mark%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="max delay duration span classversion mark从 v600 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-delay-duration</code> <span class="version-mark">从 v6.0.0 版本开始引入</span></h3><ul><li>单次读写请求被强制等待的最大时间。</li><li>默认值:500ms</li><li>推荐设置:一般使用默认值即可。如果实例出现了内存溢出或者是剧烈的性能抖动,可以设置为 1S,使得请求被延迟调节的时间不超过 1 秒。</li></ul><h3 id="前台限流" style="position:relative"><a href="#%E5%89%8D%E5%8F%B0%E9%99%90%E6%B5%81" aria-label="前台限流 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>前台限流</h3><p>用于前台限流相关的配置项。</p><p>当 TiKV 部署的机型资源有限(如 4v CPU,16 G 内存)时,如果 TiKV 前台处理的读写请求量过大,以至于占用 TiKV 后台处理请求所需的 CPU 资源,最终影响 TiKV 性能的稳定性。此时,你可以使用前台限流相关的 quota 配置项以限制前台各类请求占用的 CPU 资源。触发该限制的请求会被强制等待一段时间以让出 CPU 资源。具体等待时间与新增请求量相关,最多不超过 <a href="#max-delay-duration-%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>max-delay-duration</code></a> 的值。</p><h4 id="foreground-cpu-time-span-classversion-mark从-v600-版本开始引入span" style="position:relative"><a href="#foreground-cpu-time-span-classversion-mark%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="foreground cpu time span classversion mark从 v600 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>foreground-cpu-time</code> <span class="version-mark">从 v6.0.0 版本开始引入</span></h4><ul><li>限制处理 TiKV 前台读写请求所使用的 CPU 资源使用量,这是一个软限制。</li><li>默认值:0(即无限制)</li><li>单位:millicpu (当该参数值为 <code>1500</code> 时,前端请求会消耗 1.5v CPU)。</li><li>推荐设置:对于 4 核以上的实例,使用默认值 <code>0</code> 即可;对 4 核实例,设置为 <code>1000</code> 到 <code>1500</code> 之间的值能取得比较均衡的效果;对 2 核实例,则不要超过 <code>1200</code>。</li></ul><h4 id="foreground-write-bandwidth-span-classversion-mark从-v600-版本开始引入span" style="position:relative"><a href="#foreground-write-bandwidth-span-classversion-mark%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="foreground write bandwidth span classversion mark从 v600 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>foreground-write-bandwidth</code> <span class="version-mark">从 v6.0.0 版本开始引入</span></h4><ul><li>限制前台事务写入的带宽,这是一个软限制。</li><li>默认值:0KiB(即无限制)</li><li>推荐设置:除非因为 <code>foreground-cpu-time</code> 设置不足以对写带宽做限制,一般情况下本配置项使用默认值 <code>0</code> 即可;否则,在 4 核及 4 核以下规格实例上,建议设置在 <code>50MiB</code> 以下。</li></ul><h4 id="foreground-read-bandwidth-span-classversion-mark从-v600-版本开始引入-span" style="position:relative"><a href="#foreground-read-bandwidth-span-classversion-mark%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5-span" aria-label="foreground read bandwidth span classversion mark从 v600 版本开始引入 span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>foreground-read-bandwidth</code> <span class="version-mark">从 v6.0.0 版本开始引入 </span></h4><ul><li>限制前台事务读取数据和 Coprocessor 读取数据的带宽,这是一个软限制。</li><li>默认值:0KiB(即无限制)</li><li>推荐设置:除非因为 <code>foreground-cpu-time</code> 设置不足以对读带宽做限制,一般情况本配置项使用默认值 <code>0</code> 即可;否则,在 4 核及 4 核以下规格实例上,建议设置在 <code>20MiB</code> 以内。</li></ul><h3 id="后台限流" style="position:relative"><a href="#%E5%90%8E%E5%8F%B0%E9%99%90%E6%B5%81" aria-label="后台限流 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>后台限流</h3><p>用于后台限流相关的配置项。</p><p>当 TiKV 部署的机型资源有限(如 4v CPU,16 G 内存)时,如果 TiKV 后台处理的计算或者读写请求量过大,以至于占用 TiKV 前台处理请求所需的 CPU 资源,最终影响 TiKV 性能的稳定性。此时,你可以使用后台限流相关的 quota 配置项以限制后台各类请求占用的 CPU 资源。触发该限制的请求会被强制等待一段时间以让出 CPU 资源。具体等待时间与新增请求量相关,最多不超过 <a href="#max-delay-duration-%E4%BB%8E-v600-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>max-delay-duration</code></a> 的值。</p><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><ul><li>后台限流是 TiDB 在 v6.2.0 中引入的实验特性,不建议在生产环境中使用。</li><li>该功能仅适合在资源有限的环境中使用,以保证 TiKV 在该环境下可以长期稳定地运行。如果在资源丰富的机型环境中开启该功能,可能会导致读写请求量达到峰值时 TiKV 的性能下降的问题。</li></ul></div></div></div><h4 id="background-cpu-time-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#background-cpu-time-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="background cpu time span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>background-cpu-time</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h4><ul><li>限制处理 TiKV 后台读写请求所使用的 CPU 资源使用量,这是一个软限制。</li><li>默认值:0(即无限制)</li><li>单位:millicpu(当该参数值为 <code>1500</code> 时,后端请求会消耗 1.5v CPU)。</li></ul><h4 id="background-write-bandwidth-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#background-write-bandwidth-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="background write bandwidth span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>background-write-bandwidth</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h4><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项可以通过 <code>SHOW CONFIG</code> 查询到,但暂未生效。设置该配置项的值不生效。</p></div></div></div><ul><li>限制后台事务写入的带宽,这是一个软限制。</li><li>默认值:0KiB(即无限制)</li></ul><h4 id="background-read-bandwidth-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#background-read-bandwidth-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="background read bandwidth span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>background-read-bandwidth</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h4><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项可以通过 <code>SHOW CONFIG</code> 查询到,但暂未生效。设置该配置项的值不生效。</p></div></div></div><ul><li>限制后台事务读取数据和 Coprocessor 读取数据的带宽,这是一个软限制。</li><li>默认值:0KiB(即无限制)</li></ul><h4 id="enable-auto-tune-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#enable-auto-tune-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable auto tune span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-auto-tune</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h4><ul><li>是否支持 quota 动态调整。如果打开该配置项,TiKV 会根据 TiKV 实例的负载情况动态调整对后台请求的限制 quota。</li><li>默认值:false(即关闭动态调整)</li></ul><h2 id="causal-ts-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#causal-ts-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="causal ts span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>causal-ts <span class="version-mark">从 v6.1.0 版本开始引入</span></h2><p>用于 TiKV API V2(<code>storage.api-version = 2</code>)中时间戳获取相关的配置项。</p><p>为了降低写请求延迟,TiKV 会定期获取一批时间戳缓存在本地,避免频繁访问 PD,并容忍短时间的 TSO 服务故障。</p><h3 id="alloc-ahead-buffer-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#alloc-ahead-buffer-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="alloc ahead buffer span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>alloc-ahead-buffer</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><ul><li>预分配 TSO 缓存大小(以时长计算)。</li><li>表示 TiKV 将按照这个参数指定的时长,预分配 TSO 缓存。TiKV 会根据前一周期的使用情况,预估并请求满足 <code>alloc-ahead-buffer</code> 时长所需要的 TSO 数量,缓存在本地。</li><li>这个参数通常用于提高 TiKV API V2 (<code>storage.api-version = 2</code>) 对 PD 故障的容忍度。</li><li>调大这个参数会增加 TSO 消耗,并增加 TiKV 的内存开销。为了获得足够的 TSO,建议同时调小 PD 的 <a href="/zh/tidb/stable/pd-configuration-file#tso-update-physical-interval"><code>tso-update-physical-interval</code></a> 参数。</li><li>根据测试,默认配置下,当 PD 主节点由于故障切换到其节点时,写请求会短暂出现延迟增大和 QPS 下降(幅度约 15%)。</li><li>如果希望业务不受影响,可以尝试采用以下配置:<ul><li><code>causal-ts.alloc-ahead-buffer = "6s"</code></li><li><code>causal-ts.renew-batch-max-size = 65536</code></li><li><code>causal-ts.renew-batch-min-size = 2048</code></li><li>在 PD 中配置 <code>tso-update-physical-interval = "1ms"</code></li></ul></li><li>默认值:3s</li></ul><h3 id="renew-interval" style="position:relative"><a href="#renew-interval" aria-label="renew interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>renew-interval</code></h3><ul><li>更新本地缓存时间戳的周期。</li><li>TiKV 会每隔 <code>renew-interval</code> 发起一次时间戳更新,并根据前一周期的使用情况以及 <code>alloc-ahead-buffer</code> 参数,来调整时间戳的缓存数量。这个参数配置过大会导致不能及时反映最新的 TiKV 负载变化。而配置过小则会增加 PD 的负载。如果写流量剧烈变化、频繁出现时间戳耗尽、写延迟增加,可以适当调小这个参数,但需要同时关注 PD 的负载情况。</li><li>默认值:100ms</li></ul><h3 id="renew-batch-min-size" style="position:relative"><a href="#renew-batch-min-size" aria-label="renew batch min size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>renew-batch-min-size</code></h3><ul><li>单次时间戳请求的最小数量。</li><li>TiKV 会根据前一周期的使用情况以及 <code>alloc-ahead-buffer</code> 参数设置,来调整时间戳的缓存数量。如果 TSO 需求量较低,TiKV 会降低单次 TSO 请求量,直至等于 <code>renew-batch-min-size</code>。如果业务中经常出现突发的大流量写入,可以适当调大这个参数。注意这个参数是单个 tikv-server 的缓存大小,如果配置过大、而同时集群中 tikv-server 较多,会导致 TSO 消耗过快。</li><li>Grafana <strong>TiKV-Raw</strong> 面板下 <strong>Causal timestamp</strong> 中的 <strong>TSO batch size</strong> 是根据业务负载动态调整后的本地缓存数量。可以参考该监控指标值调整这个参数的大小。</li><li>默认值:100</li></ul><h3 id="renew-batch-max-size-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#renew-batch-max-size-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="renew batch max size span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>renew-batch-max-size</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><ul><li>单次时间戳请求的最大数量。</li><li>在默认的一个 TSO 物理时钟更新周期内 (50ms),PD 最多提供 262144 个 TSO,超过这个数量后 PD 会暂缓 TSO 请求的处理。这个配置用于避免 PD 的 TSO 消耗殆尽、影响其他业务的使用。如果增大这个参数,建议同时减小 PD 的 <a href="/zh/tidb/stable/pd-configuration-file#tso-update-physical-interval"><code>tso-update-physical-interval</code></a> 参数,以获得足够的 TSO。</li><li>默认值:8192</li></ul><h2 id="resource-control" style="position:relative"><a href="#resource-control" aria-label="resource control permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>resource-control</h2><p>资源控制 (Resource Control) 在 TiKV 存储层相关的配置项。</p><h3 id="enabled-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#enabled-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enabled span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enabled</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><ul><li>是否支持对用户前台的读写请求按照对应的资源组配额做优先级调度。有关 TiDB 资源组和资源管控的信息,请参考 <a href="/zh/tidb/stable/tidb-resource-control">TiDB 资源管控</a></li><li>在 TiDB 侧开启 <a href="/zh/tidb/stable/system-variables#tidb_enable_resource_control-从-v660-版本开始引入"><code>tidb_enable_resource_control</code></a> 全局变量的情况下,开启这个配置项才有意义。此配置参数开启后,TiKV 会使用优先级队列对排队的用户前台读写请求做调度,调度的优先级和请求所在资源组已经消费的资源量反相关,和对应资源组的配额正相关。</li><li>默认值:true(即开启按照资源组配额调度)</li></ul><h2 id="split" style="position:relative"><a href="#split" aria-label="split permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>split</h2><p><a href="/zh/tidb/stable/configure-load-base-split">Load Base Split</a> 相关的配置项。</p><h3 id="byte-threshold-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#byte-threshold-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="byte threshold span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>byte-threshold</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li><p>控制某个 Region 被识别为热点 Region 的流量阈值。</p></li><li><p>默认值:</p><ul><li>当 <a href="#region-split-size"><code>region-split-size</code></a> 小于 4 GiB 时,默认值为每秒 <code>30MiB</code> 流量。</li><li>当 <a href="#region-split-size"><code>region-split-size</code></a> 大于或等于 4 GiB 时,默认值为每秒 <code>100MiB</code> 流量。</li></ul></li></ul><h3 id="qps-threshold" style="position:relative"><a href="#qps-threshold" aria-label="qps threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>qps-threshold</code></h3><ul><li><p>控制某个 Region 被识别为热点 Region 的 QPS 阈值。</p></li><li><p>默认值:</p><ul><li>当 <a href="#region-split-size"><code>region-split-size</code></a> 小于 4 GiB 时,默认值为每秒 <code>3000</code> QPS。</li><li>当 <a href="#region-split-size"><code>region-split-size</code></a> 大于或等于 4 GiB 时,默认值为每秒 <code>7000</code> QPS。</li></ul></li></ul><h3 id="region-cpu-overload-threshold-ratio-span-classversion-mark从-v620-版本开始引入span" style="position:relative"><a href="#region-cpu-overload-threshold-ratio-span-classversion-mark%E4%BB%8E-v620-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="region cpu overload threshold ratio span classversion mark从 v620 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>region-cpu-overload-threshold-ratio</code> <span class="version-mark">从 v6.2.0 版本开始引入</span></h3><ul><li><p>控制某个 Region 被识别为热点 Region 的 CPU 使用率阈值。</p></li><li><p>默认值:</p><ul><li>当 <a href="#region-split-size"><code>region-split-size</code></a> 小于 4 GiB 时,默认值为 <code>0.25</code>。</li><li>当 <a href="#region-split-size"><code>region-split-size</code></a> 大于或等于 4 GiB 时,默认值为 <code>0.75</code>。</li></ul></li></ul><h2 id="memory-span-classversion-mark从-v750-版本开始引入span" style="position:relative"><a href="#memory-span-classversion-mark%E4%BB%8E-v750-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="memory span classversion mark从 v750 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>memory <span class="version-mark">从 v7.5.0 版本开始引入</span></h2><h3 id="enable-heap-profiling-span-classversion-mark从-v750-版本开始引入span" style="position:relative"><a href="#enable-heap-profiling-span-classversion-mark%E4%BB%8E-v750-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable heap profiling span classversion mark从 v750 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-heap-profiling</code> <span class="version-mark">从 v7.5.0 版本开始引入</span></h3><ul><li>控制是否开启 TiKV 堆内存分析功能,以跟踪 TiKV 的内存使用情况。</li><li>默认值:true</li></ul><h3 id="profiling-sample-per-bytes-span-classversion-mark从-v750-版本开始引入span" style="position:relative"><a href="#profiling-sample-per-bytes-span-classversion-mark%E4%BB%8E-v750-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="profiling sample per bytes span classversion mark从 v750 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>profiling-sample-per-bytes</code> <span class="version-mark">从 v7.5.0 版本开始引入</span></h3><ul><li>设置 TiKV 堆内存分析每次采样的数据量,以 2 的指数次幂向上取整。</li><li>默认值:512KiB</li></ul></div></div><style data-emotion="css skmavs">.css-skmavs{padding-left:1.5rem;padding-right:1.5rem;}</style><div class="MuiBox-root css-skmavs"><style data-emotion="css j3rjqe">.css-j3rjqe{margin:0;font-size:2rem;font-weight:600;font-style:normal;font-family:"Poppins";line-height:3rem;color:#666666;color:#282a36;font-size:1.5rem;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";line-height:1.25;margin-top:24px;margin-bottom:16px;padding-bottom:0.3em;border-bottom:1px solid #d8dee4;}</style><h2 class="MuiTypography-root MuiTypography-h2 css-j3rjqe">文档内容是否有帮助?</h2><style data-emotion="css n4khra">.css-n4khra{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-bottom:48px;}.css-n4khra>:not(style)+:not(style){margin:0;margin-left:16px;}</style><div class="css-n4khra"><style data-emotion="css 11j80f9">.css-11j80f9{background-color:#0ca6f2;box-shadow:none;}.css-11j80f9:hover{background-color:#0A85C2;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.16);}.css-11j80f9 .MuiButton-startIcon{margin-right:4px;}</style><style data-emotion="css 1tojuzz">.css-1tojuzz{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.8125rem;line-height:1.75;min-width:64px;padding:4px 10px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#fff;background-color:#1976d2;box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12);background-color:#0ca6f2;box-shadow:none;}.css-1tojuzz:hover{-webkit-text-decoration:none;text-decoration:none;background-color:#1565c0;box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);}@media (hover: none){.css-1tojuzz:hover{background-color:#1976d2;}}.css-1tojuzz:active{box-shadow:0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12);}.css-1tojuzz.Mui-focusVisible{box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);}.css-1tojuzz.Mui-disabled{color:rgba(0, 0, 0, 0.26);box-shadow:none;background-color:rgba(0, 0, 0, 0.12);}.css-1tojuzz:hover{background-color:#0A85C2;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.16);}.css-1tojuzz .MuiButton-startIcon{margin-right:4px;}</style><style data-emotion="css u3xqyc">.css-u3xqyc{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.8125rem;line-height:1.75;min-width:64px;padding:4px 10px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#fff;background-color:#1976d2;box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12);background-color:#0ca6f2;box-shadow:none;}.css-u3xqyc::-moz-focus-inner{border-style:none;}.css-u3xqyc.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-u3xqyc{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-u3xqyc:hover{-webkit-text-decoration:none;text-decoration:none;background-color:#1565c0;box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);}@media (hover: none){.css-u3xqyc:hover{background-color:#1976d2;}}.css-u3xqyc:active{box-shadow:0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12);}.css-u3xqyc.Mui-focusVisible{box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);}.css-u3xqyc.Mui-disabled{color:rgba(0, 0, 0, 0.26);box-shadow:none;background-color:rgba(0, 0, 0, 0.12);}.css-u3xqyc:hover{background-color:#0A85C2;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.16);}.css-u3xqyc .MuiButton-startIcon{margin-right:4px;}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall FeedbackBtn-thumbUp css-u3xqyc" tabindex="0" type="button" aria-label="Thumb Up"><style data-emotion="css u0g51i">.css-u0g51i{display:inherit;margin-right:8px;margin-left:-2px;}.css-u0g51i>*:nth-of-type(1){font-size:18px;}</style><span class="MuiButton-startIcon MuiButton-iconSizeSmall css-u0g51i"><style data-emotion="css 11aslls">.css-11aslls{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:14px;height:14px;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-11aslls" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ThumbUpOutlinedIcon"><path d="M9 21h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.58 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2zM9 9l4.34-4.34L12 10h9v2l-3 7H9V9zM1 9h4v12H1z"/></svg></span>是</button><button class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall FeedbackBtn-thumbDown css-u3xqyc" tabindex="0" type="button" aria-label="Thumb Down"><span class="MuiButton-startIcon MuiButton-iconSizeSmall css-u0g51i"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-11aslls" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ThumbDownOutlinedIcon"><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm0 12-4.34 4.34L12 14H3v-2l3-7h9v10zm4-12h4v12h-4z"/></svg></span>否</button></div></div></div><style data-emotion="css 11q09s7">.css-11q09s7{width:17.5rem;}@media (min-width:0px){.css-11q09s7{;}}@media (min-width:600px){.css-11q09s7{display:block;}}</style><div class="MuiBox-root css-11q09s7"><style data-emotion="css nljo0q">.css-nljo0q{position:-webkit-sticky;position:sticky;top:5rem;height:100%;max-height:calc(100vh - 5rem);overflow-y:auto;padding-left:1rem;padding-right:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}</style><div class="MuiBox-root css-nljo0q"><style data-emotion="css 7gtni6">.css-7gtni6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:2rem 0.5rem 1rem 0.5rem;}.css-7gtni6>:not(style)+:not(style){margin:0;margin-top:8px;}</style><div class="css-7gtni6"><style data-emotion="css w6413i">.css-w6413i{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.25rem;}.css-w6413i:hover,.css-w6413i:focus,.css-w6413i:active{color:#0A85C2;}</style><a class="MuiTypography-root MuiTypography-body1 css-w6413i" href="https://download.pingcap.org/tidb-stable-zh-manual.pdf" target="_blank" icon="[object Object]" rel="noreferrer" download=""><style data-emotion="css 1dzhlmu">.css-1dzhlmu{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:1.25rem;height:1.25rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1dzhlmu" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="SimCardDownloadIcon"><path d="M18 2h-8L4 8v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 15-4-4h3V9.02L13 9v4h3l-4 4z"/></svg>下载 PDF</a><a class="MuiTypography-root MuiTypography-body1 css-w6413i" href="https://github.com/pingcap/docs-cn/issues/new?body=File:%20[/release-8.1/tikv-configuration-file.md](https://docs.pingcap.com/zh/tidb/stable/tikv-configuration-file)" target="_blank" icon="[object Object]" rel="noreferrer"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1dzhlmu" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="GitHubIcon"><path d="M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"/></svg>文档反馈</a><a class="MuiTypography-root MuiTypography-body1 css-w6413i" href="https://asktug.com/?utm_source=doc" target="_blank" icon="[object Object]" rel="noreferrer"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1dzhlmu" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="QuestionAnswerIcon"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/></svg>社区交流</a></div><style data-emotion="css nyz3gr">.css-nyz3gr{padding-top:1rem;padding-bottom:2rem;}</style><nav class="MuiBox-root css-nyz3gr" id="toc-container" aria-label="toc"><style data-emotion="css tucxab">.css-tucxab{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#282a36;padding-left:0.5rem;font-family:Helvetica Neue;font-size:0.875rem;font-weight:700;line-height:1.25rem;padding-bottom:0.5rem;}</style><div class="MuiTypography-root MuiTypography-body1 css-tucxab">本页导航</div><style data-emotion="css qoh4zo">.css-qoh4zo{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;list-style:none;padding:0px;}</style><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><style data-emotion="css swx9es">.css-swx9es{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;border-left:1px solid transparent;padding-left:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}.css-swx9es:hover{color:#999999;border-left:1px solid #999999;}</style><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#全局配置">全局配置</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><style data-emotion="css o4rcgq">.css-o4rcgq{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;border-left:1px solid transparent;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}.css-o4rcgq:hover{color:#999999;border-left:1px solid #999999;}</style><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#abort-on-panic">abort-on-panic</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#slow-log-file">slow-log-file</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#slow-log-threshold">slow-log-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#memory-usage-limit">memory-usage-limit</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#log-从-v540-版本开始引入">log 从 v5.4.0 版本开始引入</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#level-从-v540-版本开始引入">level 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#format-从-v540-版本开始引入">format 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-timestamp-从-v540-版本开始引入">enable-timestamp 从 v5.4.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#logfile-从-v540-版本开始引入">log.file 从 v5.4.0 版本开始引入</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#filename-从-v540-版本开始引入">filename 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-size-从-v540-版本开始引入">max-size 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-days-从-v540-版本开始引入">max-days 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-backups-从-v540-版本开始引入">max-backups 从 v5.4.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#server">server</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#addr">addr</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#advertise-addr">advertise-addr</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#status-addr">status-addr</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#status-thread-pool-size">status-thread-pool-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-compression-type">grpc-compression-type</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-concurrency">grpc-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-concurrent-stream">grpc-concurrent-stream</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-memory-pool-quota">grpc-memory-pool-quota</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-raft-conn-num">grpc-raft-conn-num</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-grpc-send-msg-len">max-grpc-send-msg-len</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-stream-initial-window-size">grpc-stream-initial-window-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-keepalive-time">grpc-keepalive-time</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-keepalive-timeout">grpc-keepalive-timeout</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#concurrent-send-snap-limit">concurrent-send-snap-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#concurrent-recv-snap-limit">concurrent-recv-snap-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#end-point-recursion-limit">end-point-recursion-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#end-point-request-max-handle-duration">end-point-request-max-handle-duration</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#snap-io-max-bytes-per-sec">snap-io-max-bytes-per-sec</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-request-batch">enable-request-batch</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#labels">labels</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#background-thread-count">background-thread-count</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#end-point-slow-log-threshold">end-point-slow-log-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-client-queue-size">raft-client-queue-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#simplify-metrics-从-v620-版本开始引入">simplify-metrics 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#forward-max-connections-per-address-从-v500-版本开始引入">forward-max-connections-per-address 从 v5.0.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#readpoolunified">readpool.unified</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#min-thread-count">min-thread-count</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-thread-count">max-thread-count</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stack-size">stack-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-tasks-per-worker">max-tasks-per-worker</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#auto-adjust-pool-size-从-v630-版本开始引入">auto-adjust-pool-size 从 v6.3.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#readpoolstorage">readpool.storage</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#use-unified-pool">use-unified-pool</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#high-concurrency">high-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#normal-concurrency">normal-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#low-concurrency">low-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-tasks-per-worker-high">max-tasks-per-worker-high</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-tasks-per-worker-normal">max-tasks-per-worker-normal</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-tasks-per-worker-low">max-tasks-per-worker-low</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stack-size-1">stack-size</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#readpoolcoprocessor">readpool.coprocessor</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#use-unified-pool-1">use-unified-pool</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#high-concurrency-1">high-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#normal-concurrency-1">normal-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#low-concurrency-1">low-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-tasks-per-worker-high-1">max-tasks-per-worker-high</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-tasks-per-worker-normal-1">max-tasks-per-worker-normal</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-tasks-per-worker-low-1">max-tasks-per-worker-low</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stack-size-2">stack-size</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#storage">storage</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#data-dir">data-dir</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#engine-从-v660-版本开始引入">engine 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#scheduler-concurrency">scheduler-concurrency</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#scheduler-worker-pool-size">scheduler-worker-pool-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#scheduler-pending-write-threshold">scheduler-pending-write-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-async-apply-prewrite">enable-async-apply-prewrite</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#reserve-space">reserve-space</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-ttl">enable-ttl</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ttl-check-poll-interval">ttl-check-poll-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#background-error-recovery-window-从-v610-版本开始引入">background-error-recovery-window 从 v6.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#api-version-从-v610-版本开始引入">api-version 从 v6.1.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#storageblock-cache">storage.block-cache</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#capacity">capacity</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#storageflow-control">storage.flow-control</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable">enable</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#memtables-threshold">memtables-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#l0-files-threshold">l0-files-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#soft-pending-compaction-bytes-limit">soft-pending-compaction-bytes-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#hard-pending-compaction-bytes-limit">hard-pending-compaction-bytes-limit</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#storageio-rate-limit">storage.io-rate-limit</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-bytes-per-sec">max-bytes-per-sec</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#mode">mode</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#pd">pd</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-forwarding-从-v500-版本开始引入">enable-forwarding 从 v5.0.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#endpoints">endpoints</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#retry-interval">retry-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#retry-log-every">retry-log-every</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#retry-max-count">retry-max-count</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#raftstore">raftstore</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#prevote">prevote</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#capacity-1">capacity</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raftdb-path">raftdb-path</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-base-tick-interval">raft-base-tick-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-heartbeat-ticks">raft-heartbeat-ticks</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-election-timeout-ticks">raft-election-timeout-ticks</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-min-election-timeout-ticks">raft-min-election-timeout-ticks</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-max-election-timeout-ticks">raft-max-election-timeout-ticks</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-max-size-per-msg">raft-max-size-per-msg</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-max-inflight-msgs">raft-max-inflight-msgs</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-entry-max-size">raft-entry-max-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-log-compact-sync-interval-从-v53-版本开始引入">raft-log-compact-sync-interval 从 v5.3 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-log-gc-tick-interval">raft-log-gc-tick-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-log-gc-threshold">raft-log-gc-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-log-gc-count-limit">raft-log-gc-count-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-log-gc-size-limit">raft-log-gc-size-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-log-reserve-max-ticks-从-v53-版本开始引入">raft-log-reserve-max-ticks 从 v5.3 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-engine-purge-interval">raft-engine-purge-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-entry-cache-life-time">raft-entry-cache-life-time</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-apply-unpersisted-log-limit-从-v810-版本开始引入">max-apply-unpersisted-log-limit 从 v8.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#hibernate-regions">hibernate-regions</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#split-region-check-tick-interval">split-region-check-tick-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-split-check-diff">region-split-check-diff</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-compact-check-interval">region-compact-check-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-compact-check-step">region-compact-check-step</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-compact-min-tombstones">region-compact-min-tombstones</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-compact-tombstones-percent">region-compact-tombstones-percent</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-compact-min-redundant-rows-从-v710-版本开始引入">region-compact-min-redundant-rows 从 v7.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-compact-redundant-rows-percent-从-v710-版本开始引入">region-compact-redundant-rows-percent 从 v7.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#report-region-buckets-tick-interval-从-v610-版本开始引入">report-region-buckets-tick-interval 从 v6.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#pd-heartbeat-tick-interval">pd-heartbeat-tick-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#pd-store-heartbeat-tick-interval">pd-store-heartbeat-tick-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#snap-mgr-gc-tick-interval">snap-mgr-gc-tick-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#snap-gc-timeout">snap-gc-timeout</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#snap-generator-pool-size-从-v540-版本开始引入">snap-generator-pool-size 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#lock-cf-compact-interval">lock-cf-compact-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#lock-cf-compact-bytes-threshold">lock-cf-compact-bytes-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#notify-capacity">notify-capacity</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#messages-per-tick">messages-per-tick</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-peer-down-duration">max-peer-down-duration</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-leader-missing-duration">max-leader-missing-duration</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#abnormal-leader-missing-duration">abnormal-leader-missing-duration</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#peer-stale-state-check-interval">peer-stale-state-check-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#leader-transfer-max-log-lag">leader-transfer-max-log-lag</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-snapshot-file-raw-size-从-v610-版本开始引入">max-snapshot-file-raw-size 从 v6.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#snap-apply-batch-size">snap-apply-batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#consistency-check-interval">consistency-check-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-store-max-leader-lease">raft-store-max-leader-lease</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#right-derive-when-split">right-derive-when-split</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#merge-max-log-gap">merge-max-log-gap</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#merge-check-tick-interval">merge-check-tick-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#use-delete-range">use-delete-range</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cleanup-import-sst-interval">cleanup-import-sst-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#local-read-batch-size">local-read-batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#apply-yield-write-size-从-v640-版本开始引入">apply-yield-write-size 从 v6.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#apply-max-batch-size">apply-max-batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#apply-pool-size">apply-pool-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#store-max-batch-size">store-max-batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#store-pool-size">store-pool-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#store-io-pool-size-从-v530-版本开始引入">store-io-pool-size 从 v5.3.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#future-poll-size">future-poll-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cmd-batch">cmd-batch</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#inspect-interval">inspect-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#raft-write-size-limit-从-v530-版本开始引入">raft-write-size-limit 从 v5.3.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#report-min-resolved-ts-interval-从-v600-版本开始引入">report-min-resolved-ts-interval 从 v6.0.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#evict-cache-on-memory-ratio-从-v750-版本开始引入">evict-cache-on-memory-ratio 从 v7.5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#periodic-full-compact-start-times-从-v760-版本开始引入">periodic-full-compact-start-times 从 v7.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#periodic-full-compact-start-max-cpu-从-v760-版本开始引入">periodic-full-compact-start-max-cpu 从 v7.6.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#coprocessor">coprocessor</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#split-region-on-table">split-region-on-table</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#batch-split-limit">batch-split-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-max-size">region-max-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-split-size">region-split-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-max-keys">region-max-keys</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-split-keys">region-split-keys</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#consistency-check-method">consistency-check-method</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#coprocessor-v2">coprocessor-v2</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#coprocessor-plugin-directory">coprocessor-plugin-directory</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-region-bucket-从-v610-版本开始引入">enable-region-bucket 从 v6.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-bucket-size-从-v610-版本开始引入">region-bucket-size 从 v6.1.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#rocksdb">rocksdb</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-background-jobs">max-background-jobs</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-background-flushes">max-background-flushes</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-sub-compactions">max-sub-compactions</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-open-files">max-open-files</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-manifest-file-size">max-manifest-file-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#create-if-missing">create-if-missing</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-recovery-mode">wal-recovery-mode</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-dir">wal-dir</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-ttl-seconds">wal-ttl-seconds</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-size-limit">wal-size-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-total-wal-size">max-total-wal-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stats-dump-period">stats-dump-period</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compaction-readahead-size">compaction-readahead-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#writable-file-max-buffer-size">writable-file-max-buffer-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#use-direct-io-for-flush-and-compaction">use-direct-io-for-flush-and-compaction</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#rate-bytes-per-sec">rate-bytes-per-sec</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#rate-limiter-refill-period">rate-limiter-refill-period</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#rate-limiter-mode">rate-limiter-mode</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#rate-limiter-auto-tuned-从-v50-版本开始引入">rate-limiter-auto-tuned 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-pipelined-write">enable-pipelined-write</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#bytes-per-sync">bytes-per-sync</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-bytes-per-sync">wal-bytes-per-sync</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-max-size">info-log-max-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-roll-time">info-log-roll-time</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-keep-log-file-num">info-log-keep-log-file-num</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-dir">info-log-dir</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-level">info-log-level</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#write-buffer-flush-oldest-first-从-v660-版本开始引入">write-buffer-flush-oldest-first 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#write-buffer-limit-从-v660-版本开始引入">write-buffer-limit 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#track-and-verify-wals-in-manifest-从-v659v715v752v800-版本开始引入">track-and-verify-wals-in-manifest 从 v6.5.9、v7.1.5、v7.5.2、v8.0.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#rocksdbtitan">rocksdb.titan</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enabled">enabled</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#dirname">dirname</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#disable-gc">disable-gc</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-background-gc">max-background-gc</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#rocksdbdefaultcf--rocksdbwritecf--rocksdblockcf">rocksdb.defaultcf | rocksdb.writecf | rocksdb.lockcf</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#block-size">block-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#block-cache-size">block-cache-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#disable-block-cache">disable-block-cache</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cache-index-and-filter-blocks">cache-index-and-filter-blocks</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#pin-l0-filter-and-index-blocks">pin-l0-filter-and-index-blocks</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#use-bloom-filter">use-bloom-filter</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#optimize-filters-for-hits">optimize-filters-for-hits</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#optimize-filters-for-memory-从-v720-版本开始引入">optimize-filters-for-memory 从 v7.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#whole-key-filtering">whole-key-filtering</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#bloom-filter-bits-per-key">bloom-filter-bits-per-key</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#block-based-bloom-filter">block-based-bloom-filter</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ribbon-filter-above-level-从-v720-版本开始引入">ribbon-filter-above-level 从 v7.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#read-amp-bytes-per-bit">read-amp-bytes-per-bit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compression-per-level">compression-per-level</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#bottommost-level-compression">bottommost-level-compression</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#write-buffer-size">write-buffer-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-write-buffer-number">max-write-buffer-number</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#min-write-buffer-number-to-merge">min-write-buffer-number-to-merge</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-bytes-for-level-base">max-bytes-for-level-base</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#target-file-size-base">target-file-size-base</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#level0-file-num-compaction-trigger">level0-file-num-compaction-trigger</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#level0-slowdown-writes-trigger">level0-slowdown-writes-trigger</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#level0-stop-writes-trigger">level0-stop-writes-trigger</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-compaction-bytes">max-compaction-bytes</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compaction-pri">compaction-pri</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#dynamic-level-bytes">dynamic-level-bytes</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#num-levels">num-levels</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-bytes-for-level-multiplier">max-bytes-for-level-multiplier</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compaction-style">compaction-style</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#disable-auto-compactions">disable-auto-compactions</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#soft-pending-compaction-bytes-limit-1">soft-pending-compaction-bytes-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#hard-pending-compaction-bytes-limit-1">hard-pending-compaction-bytes-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-compaction-guard">enable-compaction-guard</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compaction-guard-min-output-file-size">compaction-guard-min-output-file-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compaction-guard-max-output-file-size">compaction-guard-max-output-file-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#format-version-从-v620-版本开始引入">format-version 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ttl-从-v720-版本开始引入">ttl 从 v7.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#periodic-compaction-seconds-从-v720-版本开始引入">periodic-compaction-seconds 从 v7.2.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#rocksdbdefaultcftitan">rocksdb.defaultcf.titan</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#min-blob-size">min-blob-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#blob-file-compression">blob-file-compression</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#zstd-dict-size">zstd-dict-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#blob-cache-size">blob-cache-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#shared-blob-cache从-v800-版本开始引入">shared-blob-cache(从 v8.0.0 版本开始引入)</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#min-gc-batch-size">min-gc-batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-gc-batch-size">max-gc-batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#discardable-ratio">discardable-ratio</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#sample-ratio">sample-ratio</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#merge-small-file-threshold">merge-small-file-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#blob-run-mode">blob-run-mode</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#level-merge">level-merge</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#raftdb">raftdb</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-background-jobs-1">max-background-jobs</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-sub-compactions-1">max-sub-compactions</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-open-files-1">max-open-files</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-manifest-file-size-1">max-manifest-file-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#create-if-missing-1">create-if-missing</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stats-dump-period-1">stats-dump-period</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-dir-1">wal-dir</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-ttl-seconds-1">wal-ttl-seconds</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-size-limit-1">wal-size-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-total-wal-size-1">max-total-wal-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compaction-readahead-size-1">compaction-readahead-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#writable-file-max-buffer-size-1">writable-file-max-buffer-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#use-direct-io-for-flush-and-compaction-1">use-direct-io-for-flush-and-compaction</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-pipelined-write-1">enable-pipelined-write</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#allow-concurrent-memtable-write">allow-concurrent-memtable-write</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#bytes-per-sync-1">bytes-per-sync</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wal-bytes-per-sync-1">wal-bytes-per-sync</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-max-size-1">info-log-max-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-roll-time-1">info-log-roll-time</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-keep-log-file-num-1">info-log-keep-log-file-num</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-dir-1">info-log-dir</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#info-log-level-1">info-log-level</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#raft-engine">raft-engine</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-1">enable</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#dir">dir</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#batch-compression-threshold">batch-compression-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#bytes-per-sync-2">bytes-per-sync</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#target-file-size">target-file-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#purge-threshold">purge-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#recovery-mode">recovery-mode</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#recovery-read-block-size">recovery-read-block-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#recovery-threads">recovery-threads</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#memory-limit">memory-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#format-version-从-v630-版本开始引入">format-version 从 v6.3.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-log-recycle-从-v630-版本开始引入">enable-log-recycle 从 v6.3.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#prefill-for-recycle-从-v700-版本开始引入">prefill-for-recycle 从 v7.0.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#security">security</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ca-path">ca-path</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cert-path">cert-path</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#key-path">key-path</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cert-allowed-cn">cert-allowed-cn</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#redact-info-log-从-v408-版本开始引入">redact-info-log 从 v4.0.8 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#securityencryption">security.encryption</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#data-encryption-method">data-encryption-method</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#data-key-rotation-period">data-key-rotation-period</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-file-dictionary-log">enable-file-dictionary-log</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#master-key">master-key</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#previous-master-key">previous-master-key</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#import">import</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#num-threads">num-threads</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stream-channel-window">stream-channel-window</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#memory-use-ratio-从-v650-版本开始引入">memory-use-ratio 从 v6.5.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#gc">gc</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#batch-keys">batch-keys</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-write-bytes-per-sec">max-write-bytes-per-sec</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-compaction-filter-从-v50-版本开始引入">enable-compaction-filter 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ratio-threshold">ratio-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#num-threads-从-v658v714v751-和-v760-版本开始引入">num-threads 从 v6.5.8、v7.1.4、v7.5.1 和 v7.6.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#backup">backup</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#num-threads-1">num-threads</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#batch-size">batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#sst-max-size">sst-max-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-auto-tune-从-v54-版本开始引入">enable-auto-tune 从 v5.4 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#s3-multi-part-size-从-v532-版本开始引入">s3-multi-part-size 从 v5.3.2 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#backuphadoop">backup.hadoop</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#home">home</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#linux-user">linux-user</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#log-backup">log-backup</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-从-v620-版本开始引入">enable 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#file-size-limit-从-v620-版本开始引入">file-size-limit 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#initial-scan-pending-memory-quota-从-v620-版本开始引入">initial-scan-pending-memory-quota 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#initial-scan-rate-limit-从-v620-版本开始引入">initial-scan-rate-limit 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-flush-interval-从-v620-版本开始引入">max-flush-interval 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#num-threads-从-v620-版本开始引入">num-threads 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#temp-path-从-v620-版本开始引入">temp-path 从 v6.2.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#cdc">cdc</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#min-ts-interval">min-ts-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#old-value-cache-memory-quota">old-value-cache-memory-quota</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#sink-memory-quota">sink-memory-quota</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#incremental-scan-speed-limit">incremental-scan-speed-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#incremental-scan-threads">incremental-scan-threads</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#incremental-scan-concurrency">incremental-scan-concurrency</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#resolved-ts">resolved-ts</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-2">enable</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#advance-ts-interval">advance-ts-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#scan-lock-pool-size">scan-lock-pool-size</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#pessimistic-txn">pessimistic-txn</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wait-for-lock-timeout">wait-for-lock-timeout</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#wake-up-delay-duration">wake-up-delay-duration</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#pipelined">pipelined</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#in-memory-从-v600-版本开始引入">in-memory 从 v6.0.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#quota">quota</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-delay-duration-从-v600-版本开始引入">max-delay-duration 从 v6.0.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#前台限流">前台限流</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><style data-emotion="css 18eqjoz">.css-18eqjoz{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;border-left:1px solid transparent;padding-left:2.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}.css-18eqjoz:hover{color:#999999;border-left:1px solid #999999;}</style><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#foreground-cpu-time-从-v600-版本开始引入">foreground-cpu-time 从 v6.0.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#foreground-write-bandwidth-从-v600-版本开始引入">foreground-write-bandwidth 从 v6.0.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#foreground-read-bandwidth-从-v600-版本开始引入-">foreground-read-bandwidth 从 v6.0.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#后台限流">后台限流</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#background-cpu-time-从-v620-版本开始引入">background-cpu-time 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#background-write-bandwidth-从-v620-版本开始引入">background-write-bandwidth 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#background-read-bandwidth-从-v620-版本开始引入">background-read-bandwidth 从 v6.2.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#enable-auto-tune-从-v620-版本开始引入">enable-auto-tune 从 v6.2.0 版本开始引入</a></li></ul></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#causal-ts-从-v610-版本开始引入">causal-ts 从 v6.1.0 版本开始引入</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#alloc-ahead-buffer-从-v640-版本开始引入">alloc-ahead-buffer 从 v6.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#renew-interval">renew-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#renew-batch-min-size">renew-batch-min-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#renew-batch-max-size-从-v640-版本开始引入">renew-batch-max-size 从 v6.4.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#resource-control">resource-control</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enabled-从-v660-版本开始引入">enabled 从 v6.6.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#split">split</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#byte-threshold-从-v50-版本开始引入">byte-threshold 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#qps-threshold">qps-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#region-cpu-overload-threshold-ratio-从-v620-版本开始引入">region-cpu-overload-threshold-ratio 从 v6.2.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#memory-从-v750-版本开始引入">memory 从 v7.5.0 版本开始引入</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-heap-profiling-从-v750-版本开始引入">enable-heap-profiling 从 v7.5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#profiling-sample-per-bytes-从-v750-版本开始引入">profiling-sample-per-bytes 从 v7.5.0 版本开始引入</a></li></ul></li></ul></nav></div></div><style data-emotion="css kpren5">.css-kpren5{padding:1rem;}@media (min-width:600px){.css-kpren5{;}}</style><div class="MuiBox-root css-kpren5"><div class="MuiBox-root css-0"><style data-emotion="css 1ea16oy">.css-1ea16oy{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:5px 15px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border:1px solid rgba(25, 118, 210, 0.5);color:#1976d2;width:100%;}.css-1ea16oy:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);border:1px solid #1976d2;}@media (hover: none){.css-1ea16oy:hover{background-color:transparent;}}.css-1ea16oy.Mui-disabled{color:rgba(0, 0, 0, 0.26);border:1px solid rgba(0, 0, 0, 0.12);}</style><style data-emotion="css 1eluyo9">.css-1eluyo9{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:5px 15px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border:1px solid rgba(25, 118, 210, 0.5);color:#1976d2;width:100%;}.css-1eluyo9::-moz-focus-inner{border-style:none;}.css-1eluyo9.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1eluyo9{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1eluyo9:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);border:1px solid #1976d2;}@media (hover: none){.css-1eluyo9:hover{background-color:transparent;}}.css-1eluyo9.Mui-disabled{color:rgba(0, 0, 0, 0.26);border:1px solid rgba(0, 0, 0, 0.12);}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium css-1eluyo9" tabindex="0" type="button" id="toc-mobile-button" aria-haspopup="true">本页导航<span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div></div></div><style data-emotion="css 18rapy9">.css-18rapy9{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:fixed;bottom:1rem;right:1rem;}</style><div class="MuiBox-root css-18rapy9"/></div></main></div></div><style data-emotion="css meijt3">.css-meijt3{background-color:#20222B;padding:3.5rem 0;}</style><footer class="MuiBox-root css-meijt3"><style data-emotion="css 1qsxih2">.css-1qsxih2{width:100%;margin-left:auto;box-sizing:border-box;margin-right:auto;display:block;padding-left:16px;padding-right:16px;}@media (min-width:600px){.css-1qsxih2{padding-left:24px;padding-right:24px;}}@media (min-width:1200px){.css-1qsxih2{max-width:1200px;}}</style><div class="MuiContainer-root MuiContainer-maxWidthLg css-1qsxih2"><style data-emotion="css ha8tv0">.css-ha8tv0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;row-gap:4rem;}@media (min-width:0px){.css-ha8tv0{-webkit-box-flex-wrap:wrap;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}}@media (min-width:900px){.css-ha8tv0{-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}}</style><div class="css-ha8tv0"><style data-emotion="css 1m5txad">.css-1m5txad{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:2rem;}@media (min-width:0px){.css-1m5txad{;}}@media (min-width:900px){.css-1m5txad{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}</style><div class="css-1m5txad"><style data-emotion="css 1pmugoj">.css-1pmugoj{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:6.125rem;height:1.625rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1pmugoj" focusable="false" aria-hidden="true" viewbox="0 0 98 26" fill="none"><path d="M39.8024 6.68462H38.2456V8.23794H39.8024V6.68462Z" fill="white"/><path d="M39.8024 10.1767H38.2456V19.6531H39.8024V10.1767Z" fill="white"/><path d="M45.8612 9.58899C45.2783 9.57411 44.6988 9.67987 44.1589 9.89959C43.6191 10.1193 43.1308 10.4482 42.7247 10.8656C42.3149 11.2856 41.9939 11.7834 41.7807 12.3295C41.5675 12.8756 41.4664 13.4589 41.4835 14.0448V19.6417H42.9886V13.9169C42.9819 13.5402 43.0543 13.1663 43.2012 12.8192C43.3482 12.4722 43.5663 12.1597 43.8416 11.9018C44.1029 11.6309 44.4167 11.4157 44.7638 11.2694C45.111 11.1231 45.4843 11.0487 45.8612 11.0507C46.2338 11.0465 46.6033 11.1191 46.9465 11.2639C47.2897 11.4087 47.5993 11.6226 47.8559 11.8923C48.1311 12.1509 48.35 12.4633 48.4991 12.8099C48.6481 13.1566 48.7241 13.5302 48.7222 13.9074V19.6417H50.2274V14.0448C50.2442 13.4571 50.1409 12.8722 49.9239 12.3257C49.7069 11.7791 49.3807 11.2823 48.9651 10.8656C48.565 10.4493 48.0824 10.1208 47.5479 9.90096C47.0135 9.68116 46.439 9.57491 45.8612 9.58899Z" fill="white"/><path d="M61.7596 18.7143V14.6459C61.7756 13.9638 61.6477 13.2859 61.3841 12.6564C61.1205 12.0268 60.7272 11.4596 60.2296 10.9916C59.7774 10.5253 59.2376 10.1525 58.6411 9.89442C58.0445 9.63633 57.4028 9.49802 56.7526 9.48739C56.1024 9.47676 55.4565 9.59401 54.8518 9.83245C54.247 10.0709 53.6953 10.4259 53.228 10.8771C53.1687 10.9343 53.1114 10.9935 53.054 11.0526C52.1288 12.0089 51.6213 13.2921 51.6426 14.6211C51.6367 15.3083 51.7691 15.9897 52.0319 16.6249C52.2947 17.2601 52.6826 17.8363 53.1726 18.3193C53.6426 18.8105 54.2127 19.1955 54.8445 19.4484C55.4763 19.7012 56.155 19.8159 56.835 19.7848C57.4825 19.769 58.1204 19.6247 58.7114 19.3603C59.3025 19.0959 59.8348 18.7167 60.2774 18.2448V18.8917M60.2774 18.8784C60.2792 19.3029 60.1895 19.7229 60.0143 20.1098C59.839 20.4967 59.5825 20.8414 59.2619 21.1206C58.947 21.4286 58.5743 21.6715 58.165 21.8353C57.7557 21.999 57.318 22.0804 56.877 22.0747C56.1126 22.0789 55.368 21.8321 54.758 21.3725C54.2743 21.0384 53.885 20.5856 53.6277 20.0577L52.4363 20.7466C52.735 21.3328 53.1594 21.8461 53.6794 22.2503C54.5478 22.9254 55.6137 23.2986 56.7145 23.3132H56.9402C58.1311 23.32 59.2863 22.9079 60.2029 22.1491C60.6874 21.7899 61.0799 21.3213 61.3481 20.7816C61.6163 20.242 61.7528 19.6467 61.7462 19.0444V18.7009M60.2488 14.7337C60.2385 15.6811 59.86 16.5876 59.1931 17.2621C58.8825 17.6017 58.5031 17.8716 58.0801 18.0539C57.6571 18.2362 57.2001 18.3266 56.7393 18.3193C56.267 18.3286 55.7979 18.24 55.3617 18.059C54.9255 17.878 54.5317 17.6086 54.2053 17.2678C53.5237 16.5954 53.1319 15.6842 53.1134 14.728C53.0948 13.7719 53.4509 12.8462 54.1059 12.148C54.4082 11.7918 54.7822 11.5029 55.2036 11.3001C55.625 11.0973 56.0843 10.985 56.5519 10.9706H56.7432C57.2041 10.9639 57.6609 11.0579 58.0815 11.2462C58.5021 11.4344 58.8763 11.7123 59.1778 12.0602C59.5361 12.4039 59.8168 12.8201 60.0008 13.2808C60.1849 13.7416 60.2681 14.2363 60.2449 14.7317L60.2488 14.7337Z" fill="white"/><path d="M73.3512 16.0866L73.3149 16.1362C72.8848 16.8154 72.2936 17.3784 71.5936 17.7754C70.8841 18.2096 70.0697 18.4431 69.2374 18.4509C67.87 18.4509 66.6651 17.9014 65.6726 16.8251C64.7087 15.7657 64.1956 14.3738 64.242 12.9437C64.2483 11.5757 64.773 10.2606 65.7108 9.26268C66.1382 8.77658 66.6651 8.38758 67.256 8.12193C67.8469 7.85627 68.488 7.72014 69.1361 7.72272C70.9434 7.70936 72.2974 8.44785 73.29 9.98782L73.3149 10.0393H73.3397L74.5063 9.31229C74.0185 8.49472 73.3596 7.79176 72.5747 7.25138C71.5806 6.59524 70.416 6.24307 69.224 6.23809C68.3844 6.21999 67.5505 6.38084 66.7781 6.70991C66.0057 7.03898 65.3126 7.52869 64.745 8.14635C63.5 9.42679 62.8631 11.0679 62.8631 13.0067C62.8348 14.8078 63.4994 16.5513 64.7201 17.8785C65.9499 19.2142 67.4416 19.8802 69.1495 19.8802H69.2107C71.4578 19.8306 73.3149 18.7353 74.4929 16.8003L73.3512 16.0866Z" fill="white"/><path d="M82.1104 6.43273H80.5211L74.5924 19.6417H76.4877L78.3179 15.2527L78.9586 13.8883L81.3435 8.29901L83.6786 13.8826H80.3298L79.7159 15.247H84.2198L86.0635 19.636H87.7331L82.1104 6.43273Z" fill="white"/><path d="M96.3947 7.63303C95.4904 6.83506 94.3158 6.41006 93.1091 6.44418H88.8098V19.6398H90.3646V14.4703V13.0811V7.87347H93.1435C93.8829 7.85905 94.6034 8.10726 95.1765 8.5738C95.4521 8.77883 95.6784 9.04265 95.8389 9.34604C95.9993 9.64943 96.0899 9.98473 96.104 10.3275C96.1399 10.7052 96.0833 11.0859 95.9391 11.437C95.7948 11.788 95.5672 12.0988 95.2759 12.3426C94.7187 12.8445 93.9895 13.1136 93.2391 13.0945H91.6135V14.4837H93.4839C94.5638 14.4995 95.6076 14.0958 96.3947 13.3578C96.7877 13.0165 97.103 12.5952 97.3194 12.1222C97.5358 11.6492 97.6483 11.1355 97.6493 10.6156C97.6813 10.056 97.5849 9.49648 97.3675 8.97963C97.1501 8.46277 96.8174 8.00222 96.3947 7.63303Z" fill="white"/><path d="M35.4611 7.63303C34.5559 6.8351 33.3808 6.41014 32.1735 6.44418H27.8819V19.6398H29.4386V14.4703V13.0811V7.87347H32.2232C32.9628 7.85788 33.6838 8.10622 34.2562 8.5738C34.5326 8.77806 34.7595 9.04172 34.9201 9.34527C35.0806 9.64882 35.1707 9.9845 35.1837 10.3275C35.2205 10.7053 35.1643 11.0863 35.02 11.4374C34.8756 11.7886 34.6476 12.0993 34.3556 12.3426C33.7975 12.848 33.0646 13.1176 32.3112 13.0945H30.6932V14.4837H32.5617C33.6423 14.4998 34.6868 14.096 35.4744 13.3578C35.8649 13.017 36.1782 12.5973 36.3939 12.1265C36.6095 11.6558 36.7224 11.1447 36.7252 10.6271C36.76 10.0646 36.664 9.50163 36.4447 8.98225C36.2254 8.46287 35.8888 8.00111 35.4611 7.63303Z" fill="white"/><path d="M45.9376 9.60044C45.3565 9.58541 44.7786 9.69114 44.2406 9.91092C43.7026 10.1307 43.2164 10.4597 42.8126 10.8771C42.403 11.2947 42.0819 11.7905 41.8687 12.3348C41.6554 12.879 41.5543 13.4606 41.5714 14.0448V19.6169H43.0766V13.9074C43.0699 13.5307 43.1423 13.1568 43.2892 12.8097C43.4361 12.4626 43.6542 12.1501 43.9295 11.8923C44.1906 11.621 44.5043 11.4056 44.8515 11.2593C45.1987 11.113 45.5722 11.0387 45.9491 11.0412C46.3208 11.0379 46.6891 11.1119 47.0305 11.2584C47.372 11.405 47.6791 11.6208 47.9324 11.8923C48.2076 12.1508 48.4264 12.4632 48.5752 12.8099C48.7239 13.1566 48.7994 13.5302 48.7968 13.9074V19.6169H50.3038V14.0448C50.3207 13.4605 50.2193 12.8788 50.0057 12.3345C49.7922 11.7903 49.4707 11.2946 49.0607 10.8771C48.6549 10.463 48.1685 10.1361 47.6315 9.9166C47.0944 9.69706 46.518 9.58946 45.9376 9.60044Z" fill="white"/><path d="M20.3582 4.0798L6.31671 0.0610093C6.1291 0.00562615 5.9324 -0.0123436 5.73783 0.00812623C5.54326 0.028596 5.35463 0.0871044 5.18272 0.180311C5.01082 0.273517 4.85899 0.399596 4.73592 0.551349C4.61284 0.703102 4.52093 0.877557 4.46543 1.06475C4.42506 1.19845 4.40445 1.3373 4.40423 1.47694V3.28978L2.65622 2.79172C2.43668 2.72681 2.20475 2.71529 1.97983 2.75811C1.75491 2.80094 1.54354 2.89687 1.36338 3.03789C1.17948 3.17495 1.03015 3.3529 0.927234 3.55762C0.824319 3.76233 0.770656 3.98817 0.770508 4.21719L0.770508 24.5249C0.772032 24.7498 0.824418 24.9714 0.923761 25.1733C1.0231 25.3752 1.16684 25.5521 1.34425 25.6908C1.60756 25.8896 1.92825 25.998 2.25842 25.9999C2.37094 25.9985 2.4828 25.9824 2.59119 25.9522L13.63 23.3227C13.9565 23.2518 14.2487 23.0711 14.4576 22.8109C14.6665 22.5507 14.7795 22.2268 14.7775 21.8934V16.264L20.3008 14.9282C20.6296 14.8562 20.9233 14.6731 21.1324 14.4099C21.3414 14.1467 21.453 13.8195 21.4483 13.4837V5.49572C21.4483 5.17286 21.3414 4.85904 21.1443 4.603C20.9472 4.34696 20.6708 4.16304 20.3582 4.0798ZM6.13503 16.8651C6.08029 16.8782 6.02258 16.8693 5.97438 16.8403C5.95046 16.8258 5.92969 16.8067 5.91327 16.7841C5.89685 16.7615 5.88511 16.7358 5.87875 16.7086C5.87684 16.6909 5.87684 16.673 5.87875 16.6552L5.85963 5.20567L13.0831 7.25132C13.154 7.2719 13.2163 7.31479 13.2607 7.37359C13.3052 7.4324 13.3294 7.50397 13.3298 7.57763V15.1343L6.13503 16.8651ZM5.86154 18.3574H5.88831C6.00362 18.3599 6.11875 18.3471 6.23065 18.3192L13.3298 16.6018V21.3724L13.3183 21.6548C13.3178 21.7314 13.2926 21.8058 13.2464 21.8669C13.2003 21.9281 13.1356 21.9728 13.062 21.9945L2.49174 24.4962C2.46455 24.5029 2.43629 24.5039 2.40867 24.4993C2.38105 24.4948 2.35466 24.4846 2.33109 24.4695C2.30718 24.455 2.28641 24.4359 2.26999 24.4133C2.25357 24.3907 2.24183 24.365 2.23547 24.3379C2.23356 24.3207 2.23356 24.3034 2.23547 24.2863V4.45C2.2344 4.39762 2.25373 4.34687 2.2894 4.30843C2.32507 4.26999 2.3743 4.24686 2.42672 4.24391C2.45024 4.24466 2.47348 4.24917 2.49557 4.25727L4.40805 4.79539V16.8842C4.40629 17.0767 4.44253 17.2676 4.51472 17.4461C4.5869 17.6245 4.69362 17.7871 4.82877 17.9244C4.96391 18.0618 5.12485 18.1712 5.30238 18.2464C5.47991 18.3217 5.67057 18.3614 5.86345 18.3631L5.86154 18.3574ZM13.7027 5.92699L5.86154 3.69433L5.84815 1.71738C5.84814 1.66034 5.87059 1.60557 5.91065 1.56489C5.95072 1.5242 6.00519 1.50084 6.06235 1.49984H6.12546L19.7232 5.37932C19.7972 5.40126 19.8617 5.44709 19.9067 5.50961C19.9517 5.57213 19.9746 5.64779 19.9718 5.72472L19.9833 13.2738C19.9879 13.3477 19.9655 13.4208 19.9201 13.4795C19.8747 13.5381 19.8095 13.5782 19.7366 13.5925L14.7699 14.787V7.35818C14.7696 7.03703 14.6652 6.72459 14.4721 6.46763C14.2791 6.21067 14.0078 6.023 13.6989 5.93272L13.7027 5.92699Z" fill="white"/></svg><style data-emotion="css 151f6uh">.css-151f6uh{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex-wrap:wrap;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}@media (min-width:0px){.css-151f6uh{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:1rem;}}@media (min-width:900px){.css-151f6uh{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:0;}}</style><div class="css-151f6uh"><style data-emotion="css 1odbrpm">.css-1odbrpm{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;color:#e5e5e5;padding-top:0.5rem;padding-bottom:0.5rem;}.css-1odbrpm>:not(style)+:not(style){margin:0;margin-left:16px;}</style><div class="css-1odbrpm"><style data-emotion="css s0h87z">.css-s0h87z{text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-s0h87z:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-s0h87z:hover{background-color:transparent;}}.css-s0h87z.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}</style><style data-emotion="css 1deacqj">.css-1deacqj{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-1deacqj::-moz-focus-inner{border-style:none;}.css-1deacqj.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1deacqj{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1deacqj:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1deacqj:hover{background-color:transparent;}}.css-1deacqj.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}</style><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="github" href="https://github.com/pingcap" target="_blank"><style data-emotion="css vubbuv">.css-vubbuv{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="GitHubIcon"><path d="M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="asktug" href="https://asktug.com/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 40 40"><g xmlns="http://www.w3.org/2000/svg" data-name="组 4428" fill="currentColor"><g data-name="组 4427"><path d="m11.261 20.637-.172-.172.007.008-.007-.007-.074.068v.044l-.022-.024-.109.109-.043.681.174-.175v.008l.4-.4-.145-.146Z" data-name="路径 13710" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/><path d="M20.011 8.611a8.61 8.61 0 0 0-14.78-6.006L2.695 5.147c-.112.1-.22.211-.321.315L-.001 7.849l.306.33a8.189 8.189 0 0 1 1.772-1.155l.035-.017 1.2-1.2a7.709 7.709 0 0 1 11.02 10.757L13 17.901l-.016.034a8.182 8.182 0 0 1-1.294 1.931l.327.309 2.4-2.4c.2-.183.395-.385.576-.59l2.041-2.05a8.7 8.7 0 0 0 .913-.916l.346-.348-.034-.039a8.641 8.641 0 0 0 1.752-5.221Zm-2.841 2.841A8.627 8.627 0 0 0 5.83 3.279l.042-.042a7.71 7.71 0 0 1 11.449 10.312l-.055.065a7.917 7.917 0 0 1-.551.581 8.622 8.622 0 0 0 .455-2.744Z" data-name="路径 13711" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/></g><path d="M1421.629 1558.829a8.629 8.629 0 0 0-2.129 16.992v5.932l7.775-7.775a8.628 8.628 0 0 0-5.651-15.148Zm-.011 5.995v7.883l-2.266-1.307v-5.269l-2.267 1.309v-2.617l4.533-2.617 2.266 1.308Zm4.554 5.26-2.275 1.313v-5.247l2.275-1.315Z" data-name="路径 13712" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909)"/></g></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="twitter" href="https://twitter.com/PingCAP" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="TwitterIcon"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="facebook" href="https://facebook.com/pingcap2015" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="FacebookIcon"><path d="M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="linkedin" href="https://linkedin.com/company/pingcap" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LinkedInIcon"><path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="slack" href="https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-docs" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M6 15a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2h2v2m1 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-5m2-8a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2v2H9m0 1a2 2 0 0 1 2 2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5m8 2a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-2v-2m-1 0a2 2 0 0 1-2 2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5m-2 8a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-2h2m0-1a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-5Z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="youtube" href="https://youtube.com/channel/UCuq4puT32DzHKT5rU1IZpIA" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="YouTubeIcon"><path d="M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="stackOverflow" href="https://stackoverflow.com/questions/tagged/tidb" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M18.372 20.222v-5.358h1.79V22H4v-7.136h1.79v5.358h12.582Z"/><path fill="currentColor" d="m7.768 14.356l8.79 1.824l.372-1.755L8.14 12.6l-.372 1.756Zm1.162-4.157l8.14 3.764l.744-1.617l-8.14-3.787l-.744 1.64Zm2.256-3.973l6.907 5.705l1.14-1.363l-6.907-5.704l-1.14 1.362ZM15.651 2L14.21 3.062l5.35 7.16L21 9.159L15.651 2Zm-8.07 16.42h8.977v-1.778H7.581v1.778Z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="discord" href="https://discord.gg/DQZ2dy3cuc?utm_source=doc" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path d="M18.9419 5.26946C17.6279 4.66787 16.2407 4.24108 14.8158 4C14.6208 4.34857 14.4443 4.70721 14.2872 5.0744C12.7694 4.84568 11.2258 4.84568 9.70801 5.0744C9.55079 4.70725 9.37437 4.34861 9.17946 4C7.75361 4.24312 6.3655 4.67092 5.05016 5.27261C2.43887 9.13606 1.73099 12.9036 2.08493 16.6176C3.61417 17.7474 5.32582 18.6067 7.14548 19.1581C7.55522 18.607 7.91778 18.0224 8.22933 17.4104C7.63759 17.1894 7.06646 16.9167 6.52255 16.5955C6.6657 16.4917 6.8057 16.3847 6.94098 16.2809C8.52364 17.0252 10.251 17.4111 12 17.4111C13.7489 17.4111 15.4763 17.0252 17.0589 16.2809C17.1958 16.3926 17.3358 16.4996 17.4774 16.5955C16.9324 16.9172 16.3602 17.1904 15.7675 17.412C16.0786 18.0236 16.4412 18.6078 16.8513 19.1581C18.6725 18.6089 20.3855 17.75 21.915 16.6191C22.3303 12.3121 21.2055 8.57919 18.9419 5.26946ZM8.67765 14.3335C7.69134 14.3335 6.87649 13.4384 6.87649 12.3372C6.87649 11.2361 7.66302 10.3332 8.6745 10.3332C9.68598 10.3332 10.4945 11.2361 10.4772 12.3372C10.4599 13.4384 9.68284 14.3335 8.67765 14.3335ZM15.3223 14.3335C14.3344 14.3335 13.5227 13.4384 13.5227 12.3372C13.5227 11.2361 14.3092 10.3332 15.3223 10.3332C16.3353 10.3332 17.1376 11.2361 17.1203 12.3372C17.103 13.4384 16.3275 14.3335 15.3223 14.3335Z" fill="white"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="reddit" href="https://reddit.com/r/TiDB/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="RedditIcon"><path d="M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"/></svg></a></div></div></div><style data-emotion="css 1yi9cru">.css-1yi9cru{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:0.75rem;min-width:6.75rem;}</style><div class="css-1yi9cru"><style data-emotion="css u73tmc">.css-u73tmc{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#7E7F86;}</style><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">产品</div><style data-emotion="css 1q3grm8">.css-1q3grm8{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}</style><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/product/#SelectProduct" style="text-decoration:none"><style data-emotion="css rmfl9z">.css-rmfl9z{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#e5e5e5;}</style><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiDB</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://www.pingcap.com/tidb-dedicated/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiDB Dedicated</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://www.pingcap.com/tidb-serverless/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiDB Serverless</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">生态</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://github.com/tikv/tikv" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiKV</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://github.com/pingcap/tiflash" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiFlash</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://ossinsight.io/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">OSS Insight</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">资源</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://docs.pingcap.com/zh/tidb/dev/tidb-roadmap" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiDB 路线图</div></a><a style="text-decoration:none" sx="[object Object]" hreflang="zh" href="/zh/tidb/stable/faq-overview"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">常见问题解答</div></a><a style="text-decoration:none" sx="[object Object]" hreflang="zh" href="/zh/tidb/stable/dev-guide-overview"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">开发者手册</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/blog/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">博客</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/education/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">Education</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">支持</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://asktug.com" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">社区</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/contact/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">联系我们</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">公司</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/about-us?tab=companyOverview" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">关于我们</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://careers.pingcap.com" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">招贤纳士</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/about-us?tab=news" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">新闻报道</div></a></div></div><style data-emotion="css 1207o6v">.css-1207o6v{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:4.5rem;gap:2.5rem;}@media (min-width:900px){.css-1207o6v{;}}</style><div class="css-1207o6v"><div class="css-151f6uh"><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="github" href="https://github.com/pingcap" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="GitHubIcon"><path d="M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="asktug" href="https://asktug.com/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 40 40"><g xmlns="http://www.w3.org/2000/svg" data-name="组 4428" fill="currentColor"><g data-name="组 4427"><path d="m11.261 20.637-.172-.172.007.008-.007-.007-.074.068v.044l-.022-.024-.109.109-.043.681.174-.175v.008l.4-.4-.145-.146Z" data-name="路径 13710" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/><path d="M20.011 8.611a8.61 8.61 0 0 0-14.78-6.006L2.695 5.147c-.112.1-.22.211-.321.315L-.001 7.849l.306.33a8.189 8.189 0 0 1 1.772-1.155l.035-.017 1.2-1.2a7.709 7.709 0 0 1 11.02 10.757L13 17.901l-.016.034a8.182 8.182 0 0 1-1.294 1.931l.327.309 2.4-2.4c.2-.183.395-.385.576-.59l2.041-2.05a8.7 8.7 0 0 0 .913-.916l.346-.348-.034-.039a8.641 8.641 0 0 0 1.752-5.221Zm-2.841 2.841A8.627 8.627 0 0 0 5.83 3.279l.042-.042a7.71 7.71 0 0 1 11.449 10.312l-.055.065a7.917 7.917 0 0 1-.551.581 8.622 8.622 0 0 0 .455-2.744Z" data-name="路径 13711" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/></g><path d="M1421.629 1558.829a8.629 8.629 0 0 0-2.129 16.992v5.932l7.775-7.775a8.628 8.628 0 0 0-5.651-15.148Zm-.011 5.995v7.883l-2.266-1.307v-5.269l-2.267 1.309v-2.617l4.533-2.617 2.266 1.308Zm4.554 5.26-2.275 1.313v-5.247l2.275-1.315Z" data-name="路径 13712" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909)"/></g></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="twitter" href="https://twitter.com/PingCAP" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="TwitterIcon"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="facebook" href="https://facebook.com/pingcap2015" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="FacebookIcon"><path d="M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="linkedin" href="https://linkedin.com/company/pingcap" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LinkedInIcon"><path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="slack" href="https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-docs" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M6 15a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2h2v2m1 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-5m2-8a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2v2H9m0 1a2 2 0 0 1 2 2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5m8 2a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-2v-2m-1 0a2 2 0 0 1-2 2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5m-2 8a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-2h2m0-1a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-5Z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="youtube" href="https://youtube.com/channel/UCuq4puT32DzHKT5rU1IZpIA" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="YouTubeIcon"><path d="M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="stackOverflow" href="https://stackoverflow.com/questions/tagged/tidb" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M18.372 20.222v-5.358h1.79V22H4v-7.136h1.79v5.358h12.582Z"/><path fill="currentColor" d="m7.768 14.356l8.79 1.824l.372-1.755L8.14 12.6l-.372 1.756Zm1.162-4.157l8.14 3.764l.744-1.617l-8.14-3.787l-.744 1.64Zm2.256-3.973l6.907 5.705l1.14-1.363l-6.907-5.704l-1.14 1.362ZM15.651 2L14.21 3.062l5.35 7.16L21 9.159L15.651 2Zm-8.07 16.42h8.977v-1.778H7.581v1.778Z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="discord" href="https://discord.gg/DQZ2dy3cuc?utm_source=doc" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path d="M18.9419 5.26946C17.6279 4.66787 16.2407 4.24108 14.8158 4C14.6208 4.34857 14.4443 4.70721 14.2872 5.0744C12.7694 4.84568 11.2258 4.84568 9.70801 5.0744C9.55079 4.70725 9.37437 4.34861 9.17946 4C7.75361 4.24312 6.3655 4.67092 5.05016 5.27261C2.43887 9.13606 1.73099 12.9036 2.08493 16.6176C3.61417 17.7474 5.32582 18.6067 7.14548 19.1581C7.55522 18.607 7.91778 18.0224 8.22933 17.4104C7.63759 17.1894 7.06646 16.9167 6.52255 16.5955C6.6657 16.4917 6.8057 16.3847 6.94098 16.2809C8.52364 17.0252 10.251 17.4111 12 17.4111C13.7489 17.4111 15.4763 17.0252 17.0589 16.2809C17.1958 16.3926 17.3358 16.4996 17.4774 16.5955C16.9324 16.9172 16.3602 17.1904 15.7675 17.412C16.0786 18.0236 16.4412 18.6078 16.8513 19.1581C18.6725 18.6089 20.3855 17.75 21.915 16.6191C22.3303 12.3121 21.2055 8.57919 18.9419 5.26946ZM8.67765 14.3335C7.69134 14.3335 6.87649 13.4384 6.87649 12.3372C6.87649 11.2361 7.66302 10.3332 8.6745 10.3332C9.68598 10.3332 10.4945 11.2361 10.4772 12.3372C10.4599 13.4384 9.68284 14.3335 8.67765 14.3335ZM15.3223 14.3335C14.3344 14.3335 13.5227 13.4384 13.5227 12.3372C13.5227 11.2361 14.3092 10.3332 15.3223 10.3332C16.3353 10.3332 17.1376 11.2361 17.1203 12.3372C17.103 13.4384 16.3275 14.3335 15.3223 14.3335Z" fill="white"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="reddit" href="https://reddit.com/r/TiDB/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="RedditIcon"><path d="M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"/></svg></a></div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1pmugoj" focusable="false" aria-hidden="true" viewbox="0 0 98 26" fill="none"><path d="M39.8024 6.68462H38.2456V8.23794H39.8024V6.68462Z" fill="white"/><path d="M39.8024 10.1767H38.2456V19.6531H39.8024V10.1767Z" fill="white"/><path d="M45.8612 9.58899C45.2783 9.57411 44.6988 9.67987 44.1589 9.89959C43.6191 10.1193 43.1308 10.4482 42.7247 10.8656C42.3149 11.2856 41.9939 11.7834 41.7807 12.3295C41.5675 12.8756 41.4664 13.4589 41.4835 14.0448V19.6417H42.9886V13.9169C42.9819 13.5402 43.0543 13.1663 43.2012 12.8192C43.3482 12.4722 43.5663 12.1597 43.8416 11.9018C44.1029 11.6309 44.4167 11.4157 44.7638 11.2694C45.111 11.1231 45.4843 11.0487 45.8612 11.0507C46.2338 11.0465 46.6033 11.1191 46.9465 11.2639C47.2897 11.4087 47.5993 11.6226 47.8559 11.8923C48.1311 12.1509 48.35 12.4633 48.4991 12.8099C48.6481 13.1566 48.7241 13.5302 48.7222 13.9074V19.6417H50.2274V14.0448C50.2442 13.4571 50.1409 12.8722 49.9239 12.3257C49.7069 11.7791 49.3807 11.2823 48.9651 10.8656C48.565 10.4493 48.0824 10.1208 47.5479 9.90096C47.0135 9.68116 46.439 9.57491 45.8612 9.58899Z" fill="white"/><path d="M61.7596 18.7143V14.6459C61.7756 13.9638 61.6477 13.2859 61.3841 12.6564C61.1205 12.0268 60.7272 11.4596 60.2296 10.9916C59.7774 10.5253 59.2376 10.1525 58.6411 9.89442C58.0445 9.63633 57.4028 9.49802 56.7526 9.48739C56.1024 9.47676 55.4565 9.59401 54.8518 9.83245C54.247 10.0709 53.6953 10.4259 53.228 10.8771C53.1687 10.9343 53.1114 10.9935 53.054 11.0526C52.1288 12.0089 51.6213 13.2921 51.6426 14.6211C51.6367 15.3083 51.7691 15.9897 52.0319 16.6249C52.2947 17.2601 52.6826 17.8363 53.1726 18.3193C53.6426 18.8105 54.2127 19.1955 54.8445 19.4484C55.4763 19.7012 56.155 19.8159 56.835 19.7848C57.4825 19.769 58.1204 19.6247 58.7114 19.3603C59.3025 19.0959 59.8348 18.7167 60.2774 18.2448V18.8917M60.2774 18.8784C60.2792 19.3029 60.1895 19.7229 60.0143 20.1098C59.839 20.4967 59.5825 20.8414 59.2619 21.1206C58.947 21.4286 58.5743 21.6715 58.165 21.8353C57.7557 21.999 57.318 22.0804 56.877 22.0747C56.1126 22.0789 55.368 21.8321 54.758 21.3725C54.2743 21.0384 53.885 20.5856 53.6277 20.0577L52.4363 20.7466C52.735 21.3328 53.1594 21.8461 53.6794 22.2503C54.5478 22.9254 55.6137 23.2986 56.7145 23.3132H56.9402C58.1311 23.32 59.2863 22.9079 60.2029 22.1491C60.6874 21.7899 61.0799 21.3213 61.3481 20.7816C61.6163 20.242 61.7528 19.6467 61.7462 19.0444V18.7009M60.2488 14.7337C60.2385 15.6811 59.86 16.5876 59.1931 17.2621C58.8825 17.6017 58.5031 17.8716 58.0801 18.0539C57.6571 18.2362 57.2001 18.3266 56.7393 18.3193C56.267 18.3286 55.7979 18.24 55.3617 18.059C54.9255 17.878 54.5317 17.6086 54.2053 17.2678C53.5237 16.5954 53.1319 15.6842 53.1134 14.728C53.0948 13.7719 53.4509 12.8462 54.1059 12.148C54.4082 11.7918 54.7822 11.5029 55.2036 11.3001C55.625 11.0973 56.0843 10.985 56.5519 10.9706H56.7432C57.2041 10.9639 57.6609 11.0579 58.0815 11.2462C58.5021 11.4344 58.8763 11.7123 59.1778 12.0602C59.5361 12.4039 59.8168 12.8201 60.0008 13.2808C60.1849 13.7416 60.2681 14.2363 60.2449 14.7317L60.2488 14.7337Z" fill="white"/><path d="M73.3512 16.0866L73.3149 16.1362C72.8848 16.8154 72.2936 17.3784 71.5936 17.7754C70.8841 18.2096 70.0697 18.4431 69.2374 18.4509C67.87 18.4509 66.6651 17.9014 65.6726 16.8251C64.7087 15.7657 64.1956 14.3738 64.242 12.9437C64.2483 11.5757 64.773 10.2606 65.7108 9.26268C66.1382 8.77658 66.6651 8.38758 67.256 8.12193C67.8469 7.85627 68.488 7.72014 69.1361 7.72272C70.9434 7.70936 72.2974 8.44785 73.29 9.98782L73.3149 10.0393H73.3397L74.5063 9.31229C74.0185 8.49472 73.3596 7.79176 72.5747 7.25138C71.5806 6.59524 70.416 6.24307 69.224 6.23809C68.3844 6.21999 67.5505 6.38084 66.7781 6.70991C66.0057 7.03898 65.3126 7.52869 64.745 8.14635C63.5 9.42679 62.8631 11.0679 62.8631 13.0067C62.8348 14.8078 63.4994 16.5513 64.7201 17.8785C65.9499 19.2142 67.4416 19.8802 69.1495 19.8802H69.2107C71.4578 19.8306 73.3149 18.7353 74.4929 16.8003L73.3512 16.0866Z" fill="white"/><path d="M82.1104 6.43273H80.5211L74.5924 19.6417H76.4877L78.3179 15.2527L78.9586 13.8883L81.3435 8.29901L83.6786 13.8826H80.3298L79.7159 15.247H84.2198L86.0635 19.636H87.7331L82.1104 6.43273Z" fill="white"/><path d="M96.3947 7.63303C95.4904 6.83506 94.3158 6.41006 93.1091 6.44418H88.8098V19.6398H90.3646V14.4703V13.0811V7.87347H93.1435C93.8829 7.85905 94.6034 8.10726 95.1765 8.5738C95.4521 8.77883 95.6784 9.04265 95.8389 9.34604C95.9993 9.64943 96.0899 9.98473 96.104 10.3275C96.1399 10.7052 96.0833 11.0859 95.9391 11.437C95.7948 11.788 95.5672 12.0988 95.2759 12.3426C94.7187 12.8445 93.9895 13.1136 93.2391 13.0945H91.6135V14.4837H93.4839C94.5638 14.4995 95.6076 14.0958 96.3947 13.3578C96.7877 13.0165 97.103 12.5952 97.3194 12.1222C97.5358 11.6492 97.6483 11.1355 97.6493 10.6156C97.6813 10.056 97.5849 9.49648 97.3675 8.97963C97.1501 8.46277 96.8174 8.00222 96.3947 7.63303Z" fill="white"/><path d="M35.4611 7.63303C34.5559 6.8351 33.3808 6.41014 32.1735 6.44418H27.8819V19.6398H29.4386V14.4703V13.0811V7.87347H32.2232C32.9628 7.85788 33.6838 8.10622 34.2562 8.5738C34.5326 8.77806 34.7595 9.04172 34.9201 9.34527C35.0806 9.64882 35.1707 9.9845 35.1837 10.3275C35.2205 10.7053 35.1643 11.0863 35.02 11.4374C34.8756 11.7886 34.6476 12.0993 34.3556 12.3426C33.7975 12.848 33.0646 13.1176 32.3112 13.0945H30.6932V14.4837H32.5617C33.6423 14.4998 34.6868 14.096 35.4744 13.3578C35.8649 13.017 36.1782 12.5973 36.3939 12.1265C36.6095 11.6558 36.7224 11.1447 36.7252 10.6271C36.76 10.0646 36.664 9.50163 36.4447 8.98225C36.2254 8.46287 35.8888 8.00111 35.4611 7.63303Z" fill="white"/><path d="M45.9376 9.60044C45.3565 9.58541 44.7786 9.69114 44.2406 9.91092C43.7026 10.1307 43.2164 10.4597 42.8126 10.8771C42.403 11.2947 42.0819 11.7905 41.8687 12.3348C41.6554 12.879 41.5543 13.4606 41.5714 14.0448V19.6169H43.0766V13.9074C43.0699 13.5307 43.1423 13.1568 43.2892 12.8097C43.4361 12.4626 43.6542 12.1501 43.9295 11.8923C44.1906 11.621 44.5043 11.4056 44.8515 11.2593C45.1987 11.113 45.5722 11.0387 45.9491 11.0412C46.3208 11.0379 46.6891 11.1119 47.0305 11.2584C47.372 11.405 47.6791 11.6208 47.9324 11.8923C48.2076 12.1508 48.4264 12.4632 48.5752 12.8099C48.7239 13.1566 48.7994 13.5302 48.7968 13.9074V19.6169H50.3038V14.0448C50.3207 13.4605 50.2193 12.8788 50.0057 12.3345C49.7922 11.7903 49.4707 11.2946 49.0607 10.8771C48.6549 10.463 48.1685 10.1361 47.6315 9.9166C47.0944 9.69706 46.518 9.58946 45.9376 9.60044Z" fill="white"/><path d="M20.3582 4.0798L6.31671 0.0610093C6.1291 0.00562615 5.9324 -0.0123436 5.73783 0.00812623C5.54326 0.028596 5.35463 0.0871044 5.18272 0.180311C5.01082 0.273517 4.85899 0.399596 4.73592 0.551349C4.61284 0.703102 4.52093 0.877557 4.46543 1.06475C4.42506 1.19845 4.40445 1.3373 4.40423 1.47694V3.28978L2.65622 2.79172C2.43668 2.72681 2.20475 2.71529 1.97983 2.75811C1.75491 2.80094 1.54354 2.89687 1.36338 3.03789C1.17948 3.17495 1.03015 3.3529 0.927234 3.55762C0.824319 3.76233 0.770656 3.98817 0.770508 4.21719L0.770508 24.5249C0.772032 24.7498 0.824418 24.9714 0.923761 25.1733C1.0231 25.3752 1.16684 25.5521 1.34425 25.6908C1.60756 25.8896 1.92825 25.998 2.25842 25.9999C2.37094 25.9985 2.4828 25.9824 2.59119 25.9522L13.63 23.3227C13.9565 23.2518 14.2487 23.0711 14.4576 22.8109C14.6665 22.5507 14.7795 22.2268 14.7775 21.8934V16.264L20.3008 14.9282C20.6296 14.8562 20.9233 14.6731 21.1324 14.4099C21.3414 14.1467 21.453 13.8195 21.4483 13.4837V5.49572C21.4483 5.17286 21.3414 4.85904 21.1443 4.603C20.9472 4.34696 20.6708 4.16304 20.3582 4.0798ZM6.13503 16.8651C6.08029 16.8782 6.02258 16.8693 5.97438 16.8403C5.95046 16.8258 5.92969 16.8067 5.91327 16.7841C5.89685 16.7615 5.88511 16.7358 5.87875 16.7086C5.87684 16.6909 5.87684 16.673 5.87875 16.6552L5.85963 5.20567L13.0831 7.25132C13.154 7.2719 13.2163 7.31479 13.2607 7.37359C13.3052 7.4324 13.3294 7.50397 13.3298 7.57763V15.1343L6.13503 16.8651ZM5.86154 18.3574H5.88831C6.00362 18.3599 6.11875 18.3471 6.23065 18.3192L13.3298 16.6018V21.3724L13.3183 21.6548C13.3178 21.7314 13.2926 21.8058 13.2464 21.8669C13.2003 21.9281 13.1356 21.9728 13.062 21.9945L2.49174 24.4962C2.46455 24.5029 2.43629 24.5039 2.40867 24.4993C2.38105 24.4948 2.35466 24.4846 2.33109 24.4695C2.30718 24.455 2.28641 24.4359 2.26999 24.4133C2.25357 24.3907 2.24183 24.365 2.23547 24.3379C2.23356 24.3207 2.23356 24.3034 2.23547 24.2863V4.45C2.2344 4.39762 2.25373 4.34687 2.2894 4.30843C2.32507 4.26999 2.3743 4.24686 2.42672 4.24391C2.45024 4.24466 2.47348 4.24917 2.49557 4.25727L4.40805 4.79539V16.8842C4.40629 17.0767 4.44253 17.2676 4.51472 17.4461C4.5869 17.6245 4.69362 17.7871 4.82877 17.9244C4.96391 18.0618 5.12485 18.1712 5.30238 18.2464C5.47991 18.3217 5.67057 18.3614 5.86345 18.3631L5.86154 18.3574ZM13.7027 5.92699L5.86154 3.69433L5.84815 1.71738C5.84814 1.66034 5.87059 1.60557 5.91065 1.56489C5.95072 1.5242 6.00519 1.50084 6.06235 1.49984H6.12546L19.7232 5.37932C19.7972 5.40126 19.8617 5.44709 19.9067 5.50961C19.9517 5.57213 19.9746 5.64779 19.9718 5.72472L19.9833 13.2738C19.9879 13.3477 19.9655 13.4208 19.9201 13.4795C19.8747 13.5381 19.8095 13.5782 19.7366 13.5925L14.7699 14.787V7.35818C14.7696 7.03703 14.6652 6.72459 14.4721 6.46763C14.2791 6.21067 14.0078 6.023 13.6989 5.93272L13.7027 5.92699Z" fill="white"/></svg></div><style data-emotion="css 1xhj18k">.css-1xhj18k{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}</style><div class="css-1xhj18k"><style data-emotion="css g9p39z">.css-g9p39z{margin:0;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:rgba(255, 255, 255, 0.5);padding-top:3rem;}@media (min-width:0px){.css-g9p39z{text-align:center;}}@media (min-width:900px){.css-g9p39z{text-align:left;}}</style><div class="MuiTypography-root MuiTypography-body2 css-g9p39z">© <!-- -->2024<!-- --> PingCAP. All Rights Reserved.</div><style data-emotion="css veaqi">.css-veaqi{-webkit-text-decoration:underline;text-decoration:underline;text-decoration-color:rgba(255, 255, 255, 0.4);color:rgba(255, 255, 255, 0.5);margin-left:.2rem;padding-top:3rem;-webkit-text-decoration:none;text-decoration:none;}.css-veaqi:hover{text-decoration-color:inherit;}@media (min-width:0px){.css-veaqi{text-align:center;}}@media (min-width:900px){.css-veaqi{text-align:left;}}</style><style data-emotion="css 3fy6ny">.css-3fy6ny{margin:0;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:rgba(255, 255, 255, 0.5);-webkit-text-decoration:underline;text-decoration:underline;text-decoration-color:rgba(255, 255, 255, 0.4);color:rgba(255, 255, 255, 0.5);margin-left:.2rem;padding-top:3rem;-webkit-text-decoration:none;text-decoration:none;}.css-3fy6ny:hover{text-decoration-color:inherit;}@media (min-width:0px){.css-3fy6ny{text-align:center;}}@media (min-width:900px){.css-3fy6ny{text-align:left;}}</style><a class="MuiTypography-root MuiTypography-body2 MuiLink-root MuiLink-underlineAlways css-3fy6ny" href="https://cn.pingcap.com/privacy-policy" target="_blank">Privacy Policy.</a></div></div></footer></div><div id="gatsby-announcer" style="top:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0" aria-live="assertive" aria-atomic="true"/></div></body>
推荐文章
重感情的水桶
·
如何在PowerShell中有效地修改HTML字符串?
1 年前
大鼻子的手术刀
·
JS 限制输入框只输入数字和小数点-腾讯云开发者社区-腾讯云
1 年前
坏坏的山羊
·
BorderLayout控件大小的设置_borderlayout()使南北的按钮高度高点_zcsearching的博客-CSDN博客
1 年前
豪爽的冰淇淋
·
QT windows程序移植到Linux下一些问题以及解决方案_qt windows 下开发,linux 运行_兜黎的博客-CSDN博客
1 年前