V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
Aluhao
V2EX  ›  MySQL

MYSQL8 正式环境有必要关闭性能架构 performance_schema=OFF

  •  1
     
  •   Aluhao · 2023-11-07 17:49:33 +08:00 · 1560 views
    This topic created in 438 days ago, the information mentioned may be changed or developed.
    关闭性能架构可以节约少许内存占用,但是会无法获取一些性能指标参数。
    对于 MYSQL 主从,关闭这个 performance_schema=OFF 会不会引发什么问题?
    5 replies    2023-11-09 14:30:08 +08:00
    devopsdogdog
        1
    devopsdogdog  
       2023-11-07 19:37:09 +08:00 via Android
    关了你怎么监控?不缺这点内存,监控价值更大。
    yingqiuQAQ
        2
    yingqiuQAQ  
       2023-11-08 08:57:24 +08:00
    建议先搞清楚主从的原理
    8355
        3
    8355  
       2023-11-08 10:07:43 +08:00
    所以你要等到代码端告警才知道负载又问题?
    fuyufjh
        4
    fuyufjh  
       2023-11-08 13:41:12 +08:00   ❤️ 1
    fyi. 阿里云 RDS ,8GB 及以上内存的实例默认 on ,否则 off
    hcymysql
        5
    hcymysql  
       2023-11-09 14:30:08 +08:00   ❤️ 1
    performance-schema = 1
    performance-schema-instrument = wait/lock/metadata/sql/mdl=ON ,这样就可以了,兼顾性能。
    About   ·   Help   ·   Blog   ·   API   ·   FAQ   ·   Tools   ·   2538 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:56 · PVG 18:56 · LAX 02:56 · JFK 05:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.