Skip to content

Commit 0e53350

Browse files
committed
Allow 2G ML models
1 parent 0a8b08c commit 0e53350

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,16 @@ jobs:
6363
xpack.security.enabled: true
6464
xpack.security.authc.api_key.enabled: true
6565
xpack.security.authc.token.enabled: true
66+
xpack.ml.use_auto_machine_memory_percent: true
67+
xpack.ml.max_model_memory_limit: 2g
6668
xpack.watcher.enabled: true
6769
xpack.license.self_generated.type: trial
6870
repositories.url.allowed_urls: https://example.com/*
6971
path.repo: /tmp
7072
ELASTIC_PASSWORD: ${{ env.ELASTIC_PASSWORD }}
7173
ports:
7274
- 9200:9200
73-
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10
75+
options: --memory=2g --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10
7476
kibana:
7577
image: docker.elastic.co/kibana/kibana:${{ matrix.version }}
7678
env:

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
xpack.security.http.ssl.enabled: false
1414
xpack.license.self_generated.type: trial
1515
xpack.ml.use_auto_machine_memory_percent: true
16+
xpack.ml.max_model_memory_limit: 2g
1617
xpack.security.authc.api_key.enabled: true
1718
xpack.security.authc.token.enabled: true
1819
xpack.watcher.enabled: true

internal/elasticsearch/ml/job_state/testdata/TestAccResourceMLJobState_timeouts/timeouts/job_state.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ resource "elasticstack_elasticsearch_ml_anomaly_detection_job" "test" {
4242
time_format = "epoch_ms"
4343
}
4444
analysis_limits = {
45-
model_memory_limit = "784mb" # Large memory requirement close to cluster limit
45+
model_memory_limit = "2g" # Large memory requirement close to cluster limit
4646
}
4747
allow_lazy_open = true # This should cause datafeed to wait for available node
4848
}

0 commit comments

Comments
 (0)