Use the Precompiler tool in a load balanced setup
The following article explains how to use Sitefinity CMS page precompiler for sites deployed in load balanced setup and how to deploy the precompilation assemblies at more than one server.
For more information, see For developers: Precompiler tool.
The tool precompiles frontend pages, backend pages, or a custom set of pages . Precompiling the backend significantly improves the backend user experience of the site. You should precompile the backend pages of the site once and repeat this only when new backend pages are added, usually when new dynamic modules are added to the site or new modules are activated.
You generate the precompilation assemblies once and then distribute them to multiple servers running the operation only once.
To deploy the precompiler in a load balanced setup, perform the following:
- Run the Precompiler tool on the development environment to start precompiling against the live site.
This way, if there is a problem with rendering a certain page or 404 on any page, it will be recorded in the precompiler log, located in
- Bring one of the NLB servers down, and deploy the precompiled assemblies in its
This way, the site on this node will restart and uses the precompiled assemblies.
- After the first server restarts and the site loads, perform the same for the rest of the servers for the NLB setup.
Take down one server at a time.