Question

I'm looking into the possibility of developing sandbox solutions (mainly web parts) for our SharePoint 2010 internet site. One thing that I keep reading is that if the quota is exceeded, then all sandbox solutions within the site collection will become unavailable until the quota is reset at midnight. Since this is an customer facing, internet site, we would not want this to ever happen. Ideally, when the warning email gets sent out, we would want an admin to somehow reset quota. Also, if the quota were ever exceeded and the sandbox was shutdown, we would want the admin to be able to restore the sandbox and reset the quota.

Is it possible to reset the quota for a sandbox that is nearing or has exceeded its quota? Also, feel free to comment on the wisdom of using sandbox solutions on an customer facing, internet site.

Thanks!

Was it helpful?

Solution

The quota is set in Central Administration -> Applications -> Site Collections -> Quotas and locks. You can set the limit for the site collection and the level at which an email is sent to the admin.

You can set it to a very high value. You can also set the resource quotas by using PowerShell, and also set the metrics used to arrive at the resource point usage, although this is at the farm level. You could use this to disable quota limits altogether, but if you do that you might as well just deploy them as farm solutions.

OTHER TIPS

Why don't you simply set the maximum quota to a level that will never be reached in a day?

One word of wisdom is to know how many people will be visiting your site :)

As you asked for resetting and not changing the quota this is the way to do it (had the same problem because Sharepoint somehow gave me 34 billion resource points, so changing the quota didn't work for me...) with Powershell:

# from http://www.threewill.com/2012/03/flooding-the-sandbox/
cls
$url = "http://servername/"
$WebApp = Get-SPWebApplication $url
Add-PSSnapin Microsoft.Sharepoint.Powershell -ErrorAction SilentlyContinue
# timer job to reset daily status
$name = "job-solution-daily-resource-usage"
$job = Get-SPTimerJob | ?{$_.Name -match $name} | ?{$_.Parent -eq $WebApp}
Start-SPTimerJob -Identity $job
Write-Host $job.Name " startet"
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top