Configure load balancing for sandboxed solutions (SharePoint Foundation 2010)

 

Si applica a: SharePoint Foundation 2010

Ultima modifica dell'argomento: 2016-10-17

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 Panoramica delle soluzioni in modalità sandbox (SharePoint Foundation 2010).

UNRESOLVED_TOKEN_VAL(SandboxSolutions)

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

Panoramica delle soluzioni in modalità sandbox (SharePoint Foundation 2010)
Pianificare le soluzioni in modalità sandbox (SharePoint Foundation 2010)
Block or unblock a sandboxed solution (SharePoint Foundation 2010)
Enable sandboxed solutions on the farm (SharePoint Foundation 2010)
Configurare livelli per il servizio di soluzioni in modalità sandbox (SharePoint Foundation 2010)
Configurare punti di risorse per le soluzioni in modalità sandbox (SharePoint Foundation 2010)