简体   繁体   English

在生产环境中安装sql server时为数据和日志文件选择驱动器的最佳实践?

[英]Best practice in choosing the drives for data and log files while installing sql server in prod environment?

I need to install a SQL server for prod environment. 我需要为产品环境安装SQL Server。 There are only two drives in the system one drive with 120 GB and another with 50 GB. 系统中只有两个驱动器,一个具有120 GB的驱动器,另一个具有50 GB的驱动器。 How to choose the drives to keep the user defined db data and log files and temp db files. 如何选择驱动器以保留用户定义的db数据和日志文件以及temp db文件。

Your question too broad to have simple answer. 您的问题范围太广,无法简单回答。

Take this points into consideration: 请考虑以下几点:

  1. What is the size of user data database? 用户数据数据库的大小是多少?
  2. What is expected growth of user data database? 用户数据数据库的预期增长是多少?
  3. Do you have a lot of queries with #-tables? 您是否对#-tables有很多查询? (tempdb strain) (tempdb应变)
  4. What is expected transaction count in second/minute? 以秒/分钟为单位的预期交易计数是多少?
  5. Use SQLIO to measure speed of your drives. 使用SQLIO测量驱动器的速度。
  6. Do you have ready load tests? 您准备好进行负载测试了吗? (Use them and look in Resource Monitor, check disk queues) (使用它们并在资源监视器中查看,检查磁盘队列)
  7. Which recovery model you are using? 您正在使用哪种恢复模式? (Growth of your log files) (您的日志文件的增长)
  8. Which backup strategy you are planning? 您正在计划哪种备份策略?

It is equally possible: 同样有可能:

  • you don't have to worry with all DBs on default location 您不必担心默认位置上的所有数据库
  • you need faster hardware 您需要更快的硬件

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

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