public void Install() { if (Directory.Exists(ClusterDir)) { _commandRunner.Debug($"Found and using cluster installed at `{ClusterDir}`."); // no need to redownload and change the password if already downloaded locally return; } _commandRunner.RunCommand("neoctrl-cluster", new[] { "install", "--cores", $"{Cores}", //"--read-replicas", $"{ReadReplicas}", TODO "--password", Password, BoltkitHelper.ServerVersion(), ClusterDir }); _commandRunner.Debug($"Installed cluster at `{ClusterDir}`."); }
public void Install() { if (Directory.Exists(HomeDir)) { _commandRunner.Debug($"Found and using server installed at `{HomeDir}`."); } else { var args = new List <string>(); args.AddRange(BoltkitHelper.BoltkitArgs.Split(null)); args.Add($"\"{BoltkitHelper.TargetDir}\""); var tempHomeDir = _commandRunner.RunCommand("neoctrl-install", args.ToArray()).Single(); _commandRunner.Debug($"Downloaded server at `{tempHomeDir}`, now renaming to `{HomeDir}`."); Directory.Move(tempHomeDir, HomeDir); _commandRunner.Debug($"Installed server at `{HomeDir}`."); } _commandRunner.RunCommand("neoctrl-create-user", $"\"{HomeDir}\"", "neo4j", Password); if (BoltkitHelper.IPV6Available() && BoltkitHelper.IPV6Enabled()) { DefaultConfig[ListenAddr] = Ipv6EnabledAddr; } UpdateSettings(DefaultConfig); }
public void Install() { if (Directory.Exists(HomeDir)) { _commandRunner.Debug($"Found and using server installed at `{HomeDir}`."); } else { var args = new List <string>(); args.AddRange(BoltkitHelper.BoltkitArgs.Split(null)); args.Add($"\"{BoltkitHelper.TargetDir}\""); var tempHomeDir = _commandRunner.RunCommand("neoctrl-install", args.ToArray()).Single(); _commandRunner.Debug($"Downloaded server at `{tempHomeDir}`, now renaming to `{HomeDir}`."); Directory.Move(tempHomeDir, HomeDir); _commandRunner.Debug($"Installed server at `{HomeDir}`."); } _commandRunner.RunCommand("neoctrl-create-user", $"\"{HomeDir}\"", "neo4j", Password); UpdateSettings(new Dictionary <string, string> { { ListenAddr, Ipv6EnabledAddr } }); // This is added because current default for `dbms.connector.bolt.thread_pool_max_size` is `400` // which is lower than Driver's default max pool size setting of `500`. This is added because // soak tests were failing // TODO: Remove/Revise after 3.4.0 config defaults are finalised. if (ServerVersion.Version(BoltkitHelper.ServerVersion()) >= ServerVersion.V3_4_0) { UpdateSettings(new Dictionary <string, string> { { MaxThreadPoolSize, Pool500 } }); } }
public void Install() { if (Directory.Exists(HomeDir)) { _commandRunner.Debug($"Found and using server intalled at `{HomeDir}`."); } else { var args = new List <string>(); args.AddRange(BoltkitHelper.BoltkitArgs.Split(null)); args.Add(BoltkitHelper.TargetDir); var tempHomeDir = _commandRunner.RunCommand("neoctrl-install", args.ToArray()).Single(); _commandRunner.Debug($"Downloaded server at `{tempHomeDir}`, now renaming to `{HomeDir}`."); Directory.Move(tempHomeDir, HomeDir); _commandRunner.Debug($"Installed server at `{HomeDir}`."); } _commandRunner.RunCommand("neoctrl-create-user", HomeDir, "neo4j", Password); UpdateSettings(new Dictionary <string, string> { { ListenAddr, Ipv6EnabledAddr } }); }