mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Explicitly set Elasticsearch heap size during CI and local development (#86513)
This commit is contained in:
parent
563fa6de22
commit
646a34043a
2 changed files with 10 additions and 1 deletions
|
@ -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: {
|
||||
|
|
|
@ -147,7 +147,7 @@ def intake(jobName, String script) {
|
|||
// Worker for running functional tests. Runs a setup process (e.g. the kibana build) then executes a map of closures in parallel (e.g. one for each ciGroup)
|
||||
def functional(name, Closure setup, Map processes) {
|
||||
return {
|
||||
parallelProcesses(name: name, setup: setup, processes: processes, delayBetweenProcesses: 20, size: 'xl-highmem')
|
||||
parallelProcesses(name: name, setup: setup, processes: processes, delayBetweenProcesses: 20, size: 'xl')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue