IIS和SQL在同一台机器上的最佳性能 [英] IIS and SQL on same machine best performance

查看:92
本文介绍了IIS和SQL在同一台机器上的最佳性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于这个主题有类似的问题,例如我什么时候可以在同一台机器上托管IIS和SQL Server?但我正在寻找更多。

There are similar questions out there on this topic, such as When can I host IIS and SQL Server on the same machine? but I'm looking for more.

我是寻找在同一台机器上设置IIS和SQL服务器的最佳方法。

I'm looking for the most optimal way to setup IIS and SQL server on the same machine.

到目前为止,我有以下内容:

So far, I've got the following:


  1. 对SQL和IIS / ASP使用CPU关联掩码将两者隔离在单独的核心上。

  2. 配置SQL以保留较少的RAM因此它为IIS / ASP留下了空闲内存。

  3. 积极地回收应用程序池。

  4. 不同磁盘上的SQL数据库和日志文件。

  1. Use CPU affinity masks for both SQL and IIS/ASP to isolate the two on separate cores.
  2. Configure SQL to reserve less RAM so that it leaves free memory for IIS/ASP.
  3. Recycle app pool aggressively.
  4. SQL database and log files on different disks.

所以我的问题是:


  1. 应该是多少比率CPU被掩盖了吗?我们在谈论1个cpu用于web,3个用于SQL,还是拆分中间?

  2. 与上面相同,比例是多少?如果我有4GB的RAM,我应该给SQL 3GB和IIS 1,或者每个2GB吗?

  3. 我有三个硬盘。我应该如何拆分一切?我假设第一个驱动器:OS& IIS,第二个驱动器:SQL安装& SQL日志,第3个驱动器:SQL数据


推荐答案

这将高度依赖于应用程序。

This is going to be highly application dependent.

我将使用的前4个建议中唯一的东西是4号。在系统驱动器上安装SQL并将数据库放在D:上,E上的日志文件: 。

The only thing from the first 4 suggestions I would use is number 4. Install SQL on the system drive and put the databases on D:, the log files on E:.

我不会做任何其他事情,特别是积极地回收应用程序池。你只会不必要地浪费CPU时间。除非应用程序泄漏内存,否则您无法积极地回收应用程序池。

I wouldn't do any of the other things, especially aggressively recycling the application pool. You'll just eat up CPU time unnecessarily. Unless the application is leaking memory you gain nothing from aggressively recycling the app pool.

您应该监控您的应用程序并查看有意义的内容。

You should monitor your application and see what makes sense.

资料来源:我是一家网络托管公司的Windows基础架构负责人,并设计并实施了一些世界上最大的基于微软的网络基础设施。

Source: I am head of Windows infrastructure for a web hosting company and have designed and implemented some of the biggest Microsoft based web infrastructures in the world.

这篇关于IIS和SQL在同一台机器上的最佳性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆