mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
[api docs] Stabilize build (#205432)
The API docs build times have become unstable over the last few months, ranging from 45 to 80 minutes before timing out: https://buildkite.com/elastic/kibana-api-docs-daily/builds?state=failed. When the API docs build times out in the on-merge pipeline, or takes longer than a pull request build, pull requests based on it will also fail due to missing baseline metrics. Testing at https://buildkite.com/elastic/kibana-pull-request/builds/263821 and https://buildkite.com/elastic/kibana-pull-request/builds/263838 indicates consistency and time improvements with more memory. This updates the machine type from n2-standard-4 to n2-highmem-4 and allocates 24gb to the node process.
This commit is contained in:
parent
c59f388e39
commit
68f510eed9
6 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ steps:
|
||||||
image: family/kibana-ubuntu-2004
|
image: family/kibana-ubuntu-2004
|
||||||
imageProject: elastic-images-prod
|
imageProject: elastic-images-prod
|
||||||
provider: gcp
|
provider: gcp
|
||||||
machineType: n2-standard-4
|
machineType: n2-highmem-4
|
||||||
preemptible: true
|
preemptible: true
|
||||||
key: build_api_docs
|
key: build_api_docs
|
||||||
timeout_in_minutes: 50
|
timeout_in_minutes: 50
|
||||||
|
|
|
@ -133,7 +133,7 @@ steps:
|
||||||
image: family/kibana-ubuntu-2004
|
image: family/kibana-ubuntu-2004
|
||||||
imageProject: elastic-images-prod
|
imageProject: elastic-images-prod
|
||||||
provider: gcp
|
provider: gcp
|
||||||
machineType: n2-standard-4
|
machineType: n2-highmem-4
|
||||||
preemptible: true
|
preemptible: true
|
||||||
diskSizeGb: 75
|
diskSizeGb: 75
|
||||||
timeout_in_minutes: 80
|
timeout_in_minutes: 80
|
||||||
|
|
|
@ -136,7 +136,7 @@ steps:
|
||||||
- command: .buildkite/scripts/steps/api_docs/build_api_docs.sh
|
- command: .buildkite/scripts/steps/api_docs/build_api_docs.sh
|
||||||
label: 'Build API Docs'
|
label: 'Build API Docs'
|
||||||
agents:
|
agents:
|
||||||
machineType: n2-standard-4
|
machineType: n2-highmem-4
|
||||||
preemptible: true
|
preemptible: true
|
||||||
diskSizeGb: 75
|
diskSizeGb: 75
|
||||||
key: build_api_docs
|
key: build_api_docs
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -euo pipefail
|
||||||
.buildkite/scripts/bootstrap.sh
|
.buildkite/scripts/bootstrap.sh
|
||||||
|
|
||||||
echo "--- Build API Docs"
|
echo "--- Build API Docs"
|
||||||
node --max-old-space-size=12000 scripts/build_api_docs
|
node --max-old-space-size=24000 scripts/build_api_docs
|
||||||
|
|
||||||
if [[ "${PUBLISH_API_DOCS_CHANGES:-}" == "true" ]]; then
|
if [[ "${PUBLISH_API_DOCS_CHANGES:-}" == "true" ]]; then
|
||||||
echo "--- Store API Docs changes in Buildkite"
|
echo "--- Store API Docs changes in Buildkite"
|
||||||
|
|
|
@ -5,4 +5,4 @@ set -euo pipefail
|
||||||
source .buildkite/scripts/common/util.sh
|
source .buildkite/scripts/common/util.sh
|
||||||
|
|
||||||
echo --- Building api docs
|
echo --- Building api docs
|
||||||
node --max-old-space-size=12000 scripts/build_api_docs
|
node --max-old-space-size=24000 scripts/build_api_docs
|
||||||
|
|
|
@ -7,4 +7,4 @@ export DISABLE_BOOTSTRAP_VALIDATION=true
|
||||||
.buildkite/scripts/bootstrap.sh
|
.buildkite/scripts/bootstrap.sh
|
||||||
|
|
||||||
echo "--- Build API Docs"
|
echo "--- Build API Docs"
|
||||||
node --max-old-space-size=12000 scripts/build_api_docs
|
node --max-old-space-size=24000 scripts/build_api_docs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue