Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Managing Grid Node Disk Space
stevewilliams
#1 Posted : Thursday, April 28, 2016 10:27:10 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/28/2016(UTC)
Posts: 4
Location: United Kingdom

Please could you advise on the configuration required to control the housekeeping of folders beneath the Workspace base path when running Grid Node as a Local Service Account?
Remco
#2 Posted : Thursday, April 28, 2016 11:14:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting.

NCrunch creates workspaces as it needs them. This means that the number of workspaces created by the tool can only be controlled indirectly by configuration.

The most significant setting in doing this is the 'Max number of processing threads' setting. When the engine has more processing threads, it will tend to have more test runners open at one time, which generally means that more workspaces will be required if projects are being constantly changed. NCrunch won't interrupt an individual test from running once it's started, and it can't tear down any workspaces being used by a test process. Thus lowering the max number of processing threads will reduce disk consumption at the expense of reduced overall performance.

Another setting that can affect the number of workspaces present at a point in time is the 'Max test runners to pool' setting. When more test runner processes are being pooled between test runs, more processes are running at any one time, and therefore more workspaces are locked.

Broadly speaking, it is not possible to reduce the number of workspaces used by NCrunch without seriously affecting the performance of the engine. If disk consumption is a problem, my advice is generally to try to increase the amount of disk space available or look at reducing the size of the projects/solution by removing any large resource files that may not be required in NCrunch's test environment. Trying to limit the disk consumption of a grid node can in most cases be rather self-defeating, as most people set up grid nodes in an effort to increase engine performance, and by limiting their disk consumption through the above settings they can greatly reduce the advantages of such a setup.
stevewilliams
#3 Posted : Thursday, April 28, 2016 11:23:21 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/28/2016(UTC)
Posts: 4
Location: United Kingdom

Thanks for that. I just want to make sure that it's cleaning up as much as possible after itself.
Are there any settings to control retention periods, or is the default to just clean up all of the time?
Remco
#4 Posted : Thursday, April 28, 2016 7:59:28 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
stevewilliams;8697 wrote:
Thanks for that. I just want to make sure that it's cleaning up as much as possible after itself.
Are there any settings to control retention periods, or is the default to just clean up all of the time?


Once a workspace is created, it is retained for the duration of the session. On a grid node, a session is considered to be bounded by a connection - if a client connected to the grid node disconnects, all workspaces that were created for them will be cleaned up.

If the grid node service experiences abnormal termination, all stale workspaces will be cleaned up when the node next reinitialises.
stevewilliams
#5 Posted : Thursday, April 28, 2016 8:00:39 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/28/2016(UTC)
Posts: 4
Location: United Kingdom

ok thanks
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download