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.
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:
- Use CPU affinity masks for both SQL and IIS/ASP to isolate the two on separate cores.
- Configure SQL to reserve less RAM so that it leaves free memory for IIS/ASP.
- Recycle app pool aggressively.
- SQL database and log files on different disks.
So my questions are:
- What ratio should CPU's be masked? Are we talking 1 cpu for web, and 3 for SQL, or split down the middle?
- Same as above, what ratio? If I have 4GB of ram, Should I give SQL 3GB and IIS 1, or 2GB each?
- I have three Hard Drives. How should I split everything up? I'm assuming 1st drive: OS & IIS, 2nd drive: SQL Installation & SQL Logs, 3rd drive: SQL Data