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

Notification

Icon
Error

NCrunch Grid Node server pre-configuration
avishnyakov
#1 Posted : Wednesday, January 17, 2018 7:26:41 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/12/2015(UTC)
Posts: 27
Location: Australia

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Where does grid node store its configuration and how pre-create it?

In our scenarios, we use PowerShell DSC to deploy 8-10 grid nodes. Installation is a no-brainer, changing service to run under particular creds is also okay, but pre-configuring grid node with setting file is a bit of a mystery.

What's the right process to get it done?
In particular, where does grid node store its configuration?
Is it possible to re-create this configuration so that deploying 8-10 grid nodes won't be a problem?

More of a follow up on my old question "Distributed processing node list recommended practices". Used to do it manually, but now wanna fully automated, unattended solution for deploying and bringing up grid nodes
> http://forum.ncrunch.net...commended-practises.aspx
Remco
#2 Posted : Wednesday, January 17, 2018 7:54:11 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,327

Thanks: 700 times
Was thanked: 866 time(s) in 824 post(s)
Hi, thanks for posting.

The settings are stored in the registry, under HKLM\SOFTWARE\Remco Software\NCrunch Grid Node. I'd suggest just doing a registry export of this key on a pre-configured node into a .reg file, then importing on any machine you want to run the node on.
avishnyakov
#3 Posted : Thursday, January 18, 2018 6:33:36 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/12/2015(UTC)
Posts: 27
Location: Australia

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Looks good. Would the password value remain the same across different VMs?
Remco
#4 Posted : Thursday, January 18, 2018 8:45:59 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,327

Thanks: 700 times
Was thanked: 866 time(s) in 824 post(s)
avishnyakov;11711 wrote:
Looks good. Would the password value remain the same across different VMs?


Yes, the hash should be the same across environments.
avishnyakov
#5 Posted : Monday, January 22, 2018 2:43:00 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/12/2015(UTC)
Posts: 27
Location: Australia

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Remco;11712 wrote:
avishnyakov;11711 wrote:
Looks good. Would the password value remain the same across different VMs?


Yes, the hash should be the same across environments.



Works well, thanks! Here is DSC magic for other folks who may be interested. A very minimal config with snapshot folder and password set, enough to get GridNode up and running.
I would recommend to install GridNode manually, then set a password via UI, and then grab it from the registry.

Configuration Install_NCrunchGridNodeServer
{
Import-DscResource -Module CChoco

Node localhost
{
cChocoPackageInstaller NCrunchGrid
{
Name = 'ncrunch-gridnodeserver'
Ensure = 'Present'
AutoUpgrade = $false
Version = $Node.PackageVersion
}

File NCrunchGridWorkingFolder {
DependsOn = "[cChocoPackageInstaller]NCrunchGrid"
Type = 'Directory'
DestinationPath = 'C:\_ncrunch'
Ensure = "Present"
}

Registry NCrunchGridRegPassword {
DependsOn = "[File]NCrunchGridWorkingFolder"
Ensure = "Present"
Key = "HKLM:\SOFTWARE\Remco Software\NCrunch Grid Node"
ValueName = "Password"
ValueData = "l1baZf5Srvt2UfUmYpuaBM9hGRcsqjv+An/SokCfzk8="
ValueType = "String"
}

Registry NCrunchGridRegWorkingDir {
DependsOn = "[File]NCrunchGridWorkingFolder"
Ensure = "Present"
Key = "HKLM:\SOFTWARE\Remco Software\NCrunch Grid Node"
ValueName = "SnapshotStorageDirectory"
ValueData = "C:\_ncrunch"
ValueType = "String"
}

Service NCrunchGridService
{
DependsOn = "[Registry]NCrunchGridRegPassword", "[Registry]NCrunchGridRegWorkingDir"

Name = "NCrunchGridNode"
StartupType = "Automatic"
State = "Running"

Credential = $domainUserCreds
}
}
}
1 user thanked avishnyakov for this useful post.
Remco on 1/22/2018(UTC)
Users browsing this topic
Guest (3)
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.040 seconds.