This commit is contained in:
parent
2ab980a9b6
commit
5ec653f170
|
@ -275,6 +275,15 @@ exports.Cluster = class Cluster {
|
|||
|
||||
this._log.debug('%s %s', ES_BIN, args.join(' '));
|
||||
|
||||
options.esEnvVars = options.esEnvVars || {};
|
||||
|
||||
// ES now automatically sets heap size to 50% of the machine's available memory
|
||||
// so we need to set it to a smaller size for local dev and CI
|
||||
// especially because we currently run many instances of ES on the same machine during CI
|
||||
options.esEnvVars.ES_JAVA_OPTS =
|
||||
(options.esEnvVars.ES_JAVA_OPTS ? `${options.esEnvVars.ES_JAVA_OPTS} ` : '') +
|
||||
'-Xms1g -Xmx1g';
|
||||
|
||||
this._process = execa(ES_BIN, args, {
|
||||
cwd: installPath,
|
||||
env: {
|
||||
|
|
Loading…
Reference in a new issue