Your SQL Servers Are Misconfigured...

Your SQL Servers Are Misconfigured...

... and it’s probably NOT your fault.

I was talking to a CIO last week about her SQL Server performance, which was horrible. It is a very current server, with plenty of RAM, CPU and SSDs. SQL 2014 Enterprise.

I asked her who did the install. “The 3rd party software vendor’s team.”

Common scenario. Too common. Like “90% of the servers I see” level of common.

The issue boiled down to the installation being done with all Microsoft out-of-the-box defaults, and zero post-install configuration. This is pretty standard when non-DBAs do SQL Server installs. Nothing wrong with that, but you may find you are robbing yourself of a LOT of free performance.

Most of the defaults that are in the SQL Server installer are set up to make sure the performance is acceptable on a very modest server. Until version 2016, the installer had not changed much.

There are a number of instance level settings in SQL Server that need to be set that are specific to your environment and the workload you are going to run against it. 

The problem is that in a large number of organizations, the person doing the installation of SQL Server is a Developer, or a SysAdmin running a script.  Both are great at their core jobs, but does either of them know what “Cost Threshold for Parallelism” is? Or “Optimize for Ad Hoc Workloads”? Or if they should be tweaked?

Likewise, if you are running SQL Server installed from a script that came with a 3rd party software product, you very likely have the “safest” possible settings in place.

Some of the most common things I see:

·        Instant File Initialization not enabled

·        Cost Threshold for Parallelism not set correctly

·        MAXDOP set to 1 or ALL CPUs

·        MAX Memory left at default

·        MAX Memory left at default on a multi-instance server

·        Default file locations for system databases, or all

·        No maintenance processes

That is the short list, not in order of priority.

Back to the CIO…we made some very basic changes, restarted the SQL Instance and BAM! Massive performance gains without changing hardware, upgrading SQL, etc. Just a few hours of my time.

If you don’t have a Database Admin and your SQL Server is struggling to keep up, this may be the issue. It may not, but it is worth looking into. Its even a good idea from time-to-time to have someone else come in and run a Health Check.  Even the best DBA can miss things.

Kevin3NF

Iván Martín

.NET Developer en EO Soluciones

6 年

Uuuuh yeah!!

回复

Good points Kevin - couldn't agree more about the gap between Sysadmins and application Developers. Unfortunately this happens very frequently at organizations - rarely either role has the expertise to tune SQL configuration settings or understand how queries work and improve their performance.?

Pedro Javier Gutierrez Armas

SQL Dev/ Data Engineer / Data Analyst / Data Integration

6 年

A great post. Those config "tricks" that a person with a experience as DBA know, can make a great impact on performance aspect. I always run a check list over the new databases that of which I'm in charge, from Server config up to the state of the indexes. Some times there are good config, some time not, some times the problem is related to programming or business rules, that is another subject more complicated to solved in my experience

Sameer Soman

Sr. Manager Data & Analytics @ Baker Hughes | Data Analytics , ESG Reporting and Platform Lead

6 年

Absolutely Correct Kevin. Thanks for sharing your experience

Thomas Bronack

President | Vulnerability Management, Enterprise Resilience and Corporate Certification

6 年

It was great reading this string and I have gained an insight that may support my request to have a professional SQL DBA review our environment.

要查看或添加评论,请登录

Kevin Hill的更多文章

  • SQL Server Source Control on a $0 Budget

    SQL Server Source Control on a $0 Budget

    The Source Control Dilemma Every DBA has been there. Trying to keep track of database schema changes while developers…

    3 条评论
  • My SQL Server is Slow! What Do I Do First?

    My SQL Server is Slow! What Do I Do First?

    It’s a vague but common complaint, frequently with no additional details Before blindly restarting SQL Server, let's…

    18 条评论
  • What IT Leaders Need to Know About SQL Server Performance

    What IT Leaders Need to Know About SQL Server Performance

    IT leaders have a lot on their plates! Budgets, staffing, security, uptime, and keeping everything running smoothly…

    4 条评论
  • Mistakes IT Shops Without a DBA Make

    Mistakes IT Shops Without a DBA Make

    We get it. There’s no budget for a DBA on staff, or even a contract support firm like Dallas DBAs.

    10 条评论
  • SQL Server Time Bombs!

    SQL Server Time Bombs!

    Common Reasons for Emergency SQL calls If you are a production DBA (or Accidental prod DBA) you’ve gotten that frantic…

    10 条评论
  • Careers in Data

    Careers in Data

    Some of the highest paying careers in the field of "data". These are not necessarily specific to SQL Server, or even…

    1 条评论
  • High Availability for Databases: Pros, Cons, and Hidden Costs

    High Availability for Databases: Pros, Cons, and Hidden Costs

    High Availability is a must for critical databases, but is it right for your business? Every company says they want…

    10 条评论
  • Managing Stress for IT Workers

    Managing Stress for IT Workers

    IT professionals often face demanding schedules, tight deadlines, and the pressure of maintaining critical systems…

    3 条评论
  • Critical Thinking is Not Going Away

    Critical Thinking is Not Going Away

    In the ever-changing world of IT, tools and technologies evolve at a breakneck pace. New solutions are introduced…

    5 条评论
  • Staying Focused in 2025

    Staying Focused in 2025

    Top 3 Ways to Stay Focused and Make Progress as an IT Professional System administrators, developers and DBAs are no…

社区洞察

其他会员也浏览了