Have you decided on the Sitecore content management system to deploy your company website? Great choice! As a .NET architecture, there are a few things your developers should keep in mind when it comes to performance, scalability and security.
Sitecore’s robust .NET based architecture is a huge advantage to teams deploying the product. The speed of development and the configurability of the platform allows for amazing results in a very short time. Conversely, the ever expanding scope of the platform has led to a plethora of settings and configurations that may need adjustment for production environments to ensure scalability, security and performance.
Drawn from NLC’s project experience and a host of Sitecore documentation we have assembled this list to help guide you in those steps.
Getting Started – Sitecore and IIS
If you use the executable to install Sitecore, many of these settings are adjusted automatically however that can change from release to release and on some occasions; specific policies on the server may prevent the installer from modifying the configuration.
- Set permissions on /website and /data
- Ensure the data and indexes folders are outside of the web root and update the web.config to point to the data folder
- In IIS ensure that Maximum Worker Processes for the Application Pool is set to 1 (under advanced settings)
- In IIS ensure that Load User Profile settings of the Application Pool is set to "true" (under advanced settings)
- In IIS ensure anonymous access is denied for:
- In IIS Enable HTTP keep alive
- In IIS enable static content compression
- In IIS on the CMS server, enable dynamic content compression
- In IIS disable execute permissions on the upload folder
- In IIS enable content expiration using HTTP response headers, especially for the /sitecore folder (optional)
Unlock the power of the xDB
A look at a day in the life of a Sitecore marketer
Get the whitepaper
Sitecore Configuration Changes
- Ensure the /data and /indexes folders are outside of the web root and update the dataFolder setting to point to the data folder.
- Disable unused search indexes by setting Indexing.UpdateInterval to 00:00:00.
- Update the standard cache sizes for prefetch, data, item and item as recommended (see the scaling guide), and then test for further adjustments.
- Ensure presentation components that are candidates for caching are set to cacheable.
- For 64-bit systems with the available memory, disable cache size limits using Caching.DisableCacheSizeLimits.
- Disable performance counters using Counters.Enabled as they add overhead.
- Disable WebDav by removing the references in <log4net/>, <system.webServer />, <httpHAndlers>.
- Disable memory monitor by removing the hook from <hooks />.
- Restrict access to .XML, .XSLT and .MRT files using the <system.webServer><handlers> section.
- Disable the upload watcher by removing it from the <system.webServer><modules> - Sitecore.Resources.Media.UploadWatcher.
- Optionally disable client RSS feeds by removing the Sitecore.Shell.Feeds.FeedRequestHandler.
- Remove unneeded headers from the responses. For example X-Aspnet-Version, X-Powered-By, X-AspNetMVC-Version.
Some simple adjustments to the configuration of SQL Server can greatly improve the performance of the database environment. Keep in mind that some of these settings may impact the backup approach you employ for MS SQL.
- Set the compatibility level to SQL Server 2008 (100) to take advantage of the latest optimizations.
- Ensure the auto close property is set to false. This ensures that a page will only make one connection.
- Ensure the auto shrink property is set to false to avoid costly dynamic resizing.
- Ensure the recovery model is set to simple to avoid the high overhead of transaction logs.