Skip to content

Commit bc05ddf

Browse files
committed
switch ES to use /tmp directories since we are ephemeral
1 parent acd5abc commit bc05ddf

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.do/app.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,22 @@ workers:
66
repository: elasticsearch
77
tag: "8.11.0"
88
instance_count: 1
9-
instance_size_slug: basic-xxs
10-
run_command: elasticsearch -E discovery.type=single-node -E xpack.security.enabled=false -E network.host=0.0.0.0
9+
instance_size_slug: basic-s
10+
run_command: |
11+
/bin/bash -c "
12+
mkdir -p /tmp/elasticsearch/data /tmp/elasticsearch/logs &&
13+
chown -R elasticsearch:elasticsearch /tmp/elasticsearch &&
14+
su -s /bin/bash -c 'elasticsearch \
15+
-E discovery.type=single-node \
16+
-E xpack.security.enabled=false \
17+
-E network.host=0.0.0.0 \
18+
-E path.data=/tmp/elasticsearch/data \
19+
-E path.logs=/tmp/elasticsearch/logs \
20+
-E bootstrap.memory_lock=false' elasticsearch
21+
"
1122
envs:
1223
- key: ES_JAVA_OPTS
13-
value: "-Xms512m -Xmx512m -Des.entitlements.enabled=false"
24+
value: "-Xms512m -Xmx512m"
1425
liveness_health_check:
1526
http_path: "/_cluster/health"
1627
port: 9200
@@ -28,7 +39,7 @@ services:
2839
dockerfile_path: Dockerfile
2940
http_port: 8080
3041
instance_count: 1
31-
instance_size_slug: basic-xxs
42+
instance_size_slug: basic-sm
3243
envs:
3344
- key: ELASTICSEARCH_URL
3445
value: "http://elasticsearch:9200/"

0 commit comments

Comments
 (0)