Never let your sense of morals prevent you from doing what is right.

19,820 点击次数

日期: 2022年2月7日

  • SolarWinds数据库完全优化手册

    SolarWinds数据库完全优化手册

    适用范围:SQL Server 2016及以上版本

    打开并登录SQL Server的SSMS,完成如下设置后重启数据库服务器

    最大服务器内存

    位置:右键单击数据库,单击属性

    位置:服务器属性内存最大服务器内存

    修改:至少设置为总内存的85%

    并行的开销阈值

    位置:服务器属性高级并行的开销阈值(Cost Threshold for Parallelism)

    修改:通常默认为5,建议设置为50

    Max DOP

    位置:右键单击SolarWinds的每一个数据库(SolarWindsOrion、SolarWindsOrionLog、SolarWindsFlowStorage),然后单击属性

    位置:数据库属性选项Max DOP(Max Degree Of Parallelism)

    修改:默认为0,改为4

    查询优化器修补程序

    位置:数据库属性选项查询优化器修补程序(Query Optimizer Fixes)

    修改:默认为关闭,改为打开

    参考原文

    出处:SolarWinds Web ConsoleSettingsMy Orion DeploymentDeployment Health

    Cost Threshold for Parallelism specifies when the SQL server creates and runs parallel plans for queries. The current value of Cost Threshold for Parallelism is ‘5’, consider using 50 and adjust as necessary. Max Degree Of Parallelism (MAXDOP) specifies the number of processors used to execute a query in a parallel plan. Use the number of physical cores in a single CPU socket. The current value of MAXDOP is ‘0’, the recommended value is ‘4’. Make sure the Query Optimizer Fixes setting is ‘ON’.