Skip to content

Commit a79f713

Browse files
committed
Removed server.threads & javascript.v8-contexts from generated arangod.conf files. No longer needed/wanted
1 parent 3758601 commit a79f713

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

service/arangod_config_builder.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,7 @@ func createArangodConf(log *logging.Logger, bsCfg BootstrapConfig, myHostDir, my
7070
}
7171

7272
// Arangod.conf does not exist. Create it.
73-
var threads, v8Contexts string
7473
logLevel := "INFO"
75-
switch serverType {
76-
// Parameters are: port, server threads, log level, v8-contexts
77-
case ServerTypeAgent:
78-
threads = "8"
79-
v8Contexts = "1"
80-
case ServerTypeDBServer:
81-
threads = "4"
82-
v8Contexts = "4"
83-
case ServerTypeCoordinator, ServerTypeSingle, ServerTypeResilientSingle:
84-
threads = "16"
85-
v8Contexts = "4"
86-
}
8774
listenAddr := "[::]"
8875
if bsCfg.DisableIPv6 {
8976
listenAddr = "0.0.0.0"
@@ -93,7 +80,6 @@ func createArangodConf(log *logging.Logger, bsCfg BootstrapConfig, myHostDir, my
9380
Name: "server",
9481
Settings: map[string]string{
9582
"endpoint": fmt.Sprintf("%s://%s:%s", scheme, listenAddr, myPort),
96-
"threads": threads,
9783
"authentication": "false",
9884
},
9985
}
@@ -112,12 +98,6 @@ func createArangodConf(log *logging.Logger, bsCfg BootstrapConfig, myHostDir, my
11298
"level": logLevel,
11399
},
114100
},
115-
&configSection{
116-
Name: "javascript",
117-
Settings: map[string]string{
118-
"v8-contexts": v8Contexts,
119-
},
120-
},
121101
}
122102
if bsCfg.SslKeyFile != "" {
123103
sslSection := &configSection{

0 commit comments

Comments
 (0)