Configure load balancing for sandboxed solutions (SharePoint Server 2010)
Published: May 12, 2010
A sandbox is a restricted execution environment that enables programs to access only certain resources and keeps problems that occur in the sandbox from affecting the rest of the server environment. Solutions that you deploy into a sandbox, which are known as sandboxed solutions, cannot use certain computer and network resources and cannot access content outside the site collection they are deployed in.
You can select one of two load-balancing schemes for sandboxed solutions. Based on the load-balancing scheme, Microsoft SharePoint Server 2010 determines which server to run the solution on. If load balancing is local, the solution runs on the same server that is servicing the request. If load balancing is remote, the server that the solution runs on is selected based on the server that most recently ran the solution (this is known as solution affinity). In either case, the server must be running the sandboxed solutions service. By default, SharePoint Server uses remote load balancing.
The more you isolate sandboxed solutions, the better your ability to protect the main part of your SharePoint Server 2010 site from code that might consume too many resources. You can increase isolation by using remote load balancing and by running the sandboxed solution service only on specific servers.
For more information about sandboxed solutions, see Sandboxed solutions overview (SharePoint Server 2010).
Configure load balancing
Load balancing directly affects the response time of sandboxed solutions. To change the load balancing scheme that is used in your farm, use the following procedure.
To configure load balancing by using Central Administration
Verify that you have the following administrative credentials:
You must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration Web site.
On the home page of the Central Administration Web site, click System Settings.
On the System Settings page, in the Farm Management section, click Manage user solutions.
On the Sandboxed Solution Management page, in the Load Balancing section, select one of the following options:
All sandboxed code runs on the same machine as a request. This load-balancing scheme runs sandboxed code on the same server that handles the rest of the request.
Requests to run sandboxed code are routed by solution affinity. This load-balancing scheme selects the server on which to run sandboxed code based on solution affinity.
ConceptsSandboxed solutions overview (SharePoint Server 2010)
Plan sandboxed solutions (SharePoint Server 2010)
Block or unblock a sandboxed solution (SharePoint Server 2010)
Enable sandboxed solutions on the farm (SharePoint Server 2010)
Configure sandboxed solutions service tiers (SharePoint Server 2010)
Configure resource points for sandboxed solutions (SharePoint Server 2010)