- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
来自 MySQL8 文档:
When innodb_dedicated_server is enabled, InnoDB automatically configures the following variables:
innodb_buffer_pool_size
innodb_log_file_size
innodb_log_files_in_group (as of MySQL 8.0.14)
innodb_flush_method
Only consider enabling innodb_dedicated_server if the MySQL instance resides on a dedicated server
where it can use all available system resources. Enabling innodb_dedicated_server is not recommended
if the MySQL instance shares system resources with other applications.
假设服务器专用于 MySQL,启用 innodb_dedicated_server 实际上是否比我自己调整这些参数提供更好的性能?
最佳答案
简答:不,它不会比自己设置这些调整选项更能提高性能。
变量 innodb_dedicated_server 在该功能发布时(2017-08-24)有详细说明:
https://mysqlserverteam.com/plan-to-improve-the-out-of-the-box-experience-in-mysql-8-0/
它只是许多调整选项的简写。新变量不会以任何特殊方式提高性能,它与您自己设置其他调整选项完全相同。
当他们宣布该功能时,我在博客上写了以下评论:
I’m sorry, but I don’t like this feature at all. I understand the goalof improving the out-of-the-box experience for naive users, but Idon’t think this solution will be successful at this goal.
Trying to pre-tune a MySQL installation with some formula is aone-size-fits-all solution, and these kinds of solutions areunreliable. We can recall examples of other products that have triedto do this, but eventually removed their auto-tuning features.
It’s not a good assumption that the buffer pool needs as much physicalRAM as you can afford. You already know this, because you need theinnodb_dedicated_server option. Rick mentioned the possibility thatthe dataset is already smaller than RAM. In this case, adding more RAMhas little or no benefit.
Many naive users mistakenly believe (after reading some blog) thatincreasing RAM allocation always increases performance. It’s difficultto explain to them why this is not true.
Likewise innodb log file. We assume that bigger is better, because ofbenchmarks showing that heavy write traffic benefits from bigger logfiles, because of delaying checkpoints. But what if you don’t haveheavy write traffic? What if you use MySQL for a blog or a CMS that is99% reads? The large log file is unnecessary. Sizing it for an assumedworkload or dataset size has a high chance of being the wrong choicefor tuning.
I understand the difficulty of asking users questions duringinstallation. I recently did a project automating MySQL provisioningwith apt. It was annoying having to figure out debconf to work aroundthe installation prompts that do exist (btw, please document MySQL’sdebconf variables!).
There’s also the problem that even if you do prompt the user forinformation, they don’t know the answers to the questions. This isespecially true of the naive users that you’re targeting with thisfeature.
If the installer asks “Do you use MySQL on a dedicated server?” dothey even know what this means? They might think “dedicated” is simplythe opposite of shared hosting.
If the installer asks “Do you want to use all available memory on thissystem?” you will be surprised at how many users think “memory” refersto disk space, not RAM.
In short: (1) Using formulas to tune MySQL is error-prone. (2) Askingusers to make choices without information is error-prone.
I have an alternative suggestion: Make it easier for users to becomeless naive about their choices.
I think users need a kind of friendly cheat-sheet or infographic ofhow to make tuning decisions. This could include a list of questionsabout their data size and workload, and then a list of performanceindicators to monitor and measure, like buffer pool page create rate,and log file write rate. Give tips on how to measure these things,what config options to change, and then how to measure again to verifythat the change had the desired effect.
A simple monitoring tool would also be useful. Nothing sosophisticated as PMM or VividCortex for long-term trending, butsomething more like pt-mext for quick, ephemeral measurements.
The only thing the installation process needs to do is tell the userthat tuning is a thing they need to do (many users don’t realizethis), and refer them to the cheat-sheet documentation.
关于mysql - 启用 innodb_dedicated_server 对性能有好处吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63108914/
如果函数定义顺序不对,Jslint 将指出错误。 显然 jslint 是严格的,但我想知道将函数按顺序排列是否有任何好处。 我的意思是在调用它们之前定义它们。 最佳答案 函数定义(和 var 语句)被
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 8 年前。 Improve this ques
我注意到Flask tutorial涉及到点的使用。看起来它只是用于在本地创建一个轮子,这将使服务器上的设置变得更容易,但作为一个网络开发新手,我很好奇:是否有人真的会一路将他们的网站上传到像 PyP
我一直在阅读有关 jquery live event 的内容,但仍然有点困惑?使用它有什么好处? http://docs.jquery.com/Events/live 我知道它与绑定(bind)类似,
这是我的故事:我已将我的应用迁移到 AndroidX,因为我需要从网上找到的库中获取一些新功能。 问题:我目前遇到了一些问题,因为我现在需要为 Cordova 开发一个插件来实现该应用程序的一部分。
在使用 RAD 或一般不使用单元测试时使用依赖注入(inject)是否有任何好处? 最佳答案 是的,有以下几个好处: 减少依赖 减少依赖携带 更多可重用代码 更多可测试代码 更具可读性的代码 更多引用
我目前正在构建一个通过 MSI Windows Installer 分发的产品。我们的客户正在使用不同的形式(例如我们在他们自己的 MSI 中)集成该产品,使用 Bootstrap /链接器(如 Wi
有人声称 Scala 的类型系统是图灵完备的。我的问题是: 这有正式的证据吗? 简单的计算在 Scala 类型系统中会是什么样子? 这对 Scala 这种语言有什么好处吗?与没有图灵完备类型系统的语言
我开始尝试使用 React,我注意到我正在制作的简单应用程序全部使用 JS。我的 html 页面只是一个空的 body 标签! 所以我有几个问题,因为我是这个框架的新手。 我的整个应用程序应该基本上都
我们有一个相当大的基于 Windows 的 1.1 .NET 应用程序,我们正在考虑升级到 2.0。我们考虑更新的主要原因是我们可以利用 Visual Studio 2008 进行项目的持续开发,以及
我有一个页面,其中内置了基于 ajax 的分页。分页用于页面中的“评论”功能。根据 Google 的网站管理员博客,具有 rel="next"和 rel="prev"值有利于 SEO。 我在头部添加了
我是一名优秀的程序员,十分优秀!