Configure load balancing for sandboxed solutions (SharePoint Foundation 2010)

 

Applies to: SharePoint Foundation 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 Foundation 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 Foundation uses remote load balancing.

The more you isolate sandboxed solutions, the better your ability to protect the main part of your SharePoint Foundation 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 Foundation 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

  1. 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.
  2. On the home page of the Central Administration Web site, click System Settings.

  3. On the System Settings page, in the Farm Management section, click Manage user solutions.

  4. 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.

  5. Click OK.

See Also

Concepts

Sandboxed solutions overview (SharePoint Foundation 2010)
Plan sandboxed solutions (SharePoint Foundation 2010)
Block or unblock a sandboxed solution (SharePoint Foundation 2010)
Enable sandboxed solutions on the farm (SharePoint Foundation 2010)
Configure sandboxed solutions service tiers (SharePoint Foundation 2010)
Configure resource points for sandboxed solutions (SharePoint Foundation 2010)