简体   繁体   English

2个SQL服务器,但不同的tempdb IO模式(在1时峰值)上下波动5MB /秒-0.2MB /秒

[英]2 SQL servers but different tempdb IO pattern on 1 spikes up and down 5MB/sec-0.2MB/sec

I have 2 MSSQL servers (lets call then SQL1 and SQL2) running a total of 1866 databases 我有2个MSSQL服务器(让它们分别调用SQL1和SQL2),总共运行1866个数据库

  • SQL1 has 993 databases (993203 registered users) SQL1有993个数据库(993203注册用户)
  • SQL2 have 873 databases (931259 registered users) Each SQL server has a copy of a InternalMaster database (for some shared table data) and then multiple customers, 1 database per customer (Customer/client not registered user). SQL2具有873个数据库(931259个注册用户),每个SQL Server都有一个InternalMaster数据库的副本(用于某些共享表数据),然后有多个客户,每个客户1个数据库(客户/客户未注册用户)。

At the time of writing this we had just over 10,000 users online using our software. 在撰写本文时,我们的软件在线用户已超过10,000。

SQL2 behaves as expected and Database I/O is generally 0.2MB/sec and goes up and down in a normal flow, IO's goes up on certain reports and queries and so on in a random fashion. SQL2的行为符合预期,并且数据库I / O通常为0.2MB /秒,并且以正常流的速度上下移动,某些报表和查询的IO则以随机方式增加。 SQL2数据库I / O和批处理请求

However SQL1 has a constant pattern almost like a life support machine. 但是,SQL1具有恒定模式,几乎就像生命支持机器一样。 SQL1数据库I / O和批处理请求

I don't understand why both servers which have the same infrastructure, work so differently? 我不明白为什么两个具有相同基础结构的服务器的工作方式如此不同? The spike starts at around 2MB/sec and then increases to a max of around 6MB/sec. 峰值开始于大约2MB /秒,然后增加到大约6MB /秒的最大值。 Both servers have identical IOPS provisions of data, log and transaction partitions and identical AWS specs. 这两台服务器都具有相同的IOPS数据,日志和事务分区以及相同的AWS规范。 The Data file I/O shows that tempdb is the culprit of this spike. 数据文件I / O显示tempdb是此尖峰的罪魁祸首。

SQL1数据文件IO

Any advice would be great as I just can't get my head around how 1 tempdb would act different to another when running the same software and setup on both servers. 任何建议都是不错的选择,因为我无法理解在两个服务器上运行相同软件并进行设置时,1 tempdb会如何表现出不同。

Regards 问候

Liam 利亚姆

Liam, 利亚姆,

Please see this website that explains how to configure TEMPDB. 请访问该网站,该网站说明了如何配置TEMPDB。 By looking at the image, you only have one file for the TEMPDB database. 通过查看图像,TEMPDB数据库只有一个文件。

http://www.brentozar.com/sql/tempdb-performance-and-configuration/ http://www.brentozar.com/sql/tempdb-performance-and-configuration/

Hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM