square-football-37770
05/09/2023, 2:28 PMcreate-indices.sh
on ealsticsearch-setup
job creates a number of indexes starting with underscore _
# 1. ILM policy
create_if_not_exists "_ilm/policy/${PREFIX}datahub_usage_event_policy" policy.json
# 2. index template
create_if_not_exists "_index_template/${PREFIX}datahub_usage_event_index_template" index_template.json
# 3. although indexing request creates the data stream, it's not queryable before creation, causing GMS to throw exceptions
create_if_not_exists "_data_stream/${PREFIX}datahub_usage_event" "datahub_usage_event"
turns out names are forbidden to start with _
on my ES instance (Aiven). If I change the script to use another name… what other components would I need to change? or would I just be better off starting my own ES on GKE?lively-cat-88289
05/09/2023, 2:28 PMastonishing-answer-96712
05/16/2023, 9:06 PMsquare-football-37770
05/17/2023, 9:04 AMdatahub-elasticsearch-setup
docker image with my own create-indices.sh
to rename the indexes (no _
) and now i’m trying to run datahub in local dev mode to see whetehr I need to change the code that uses the indexes, I’m a bit lost on that, seems ES indexes are called using mustache template? i.e. there is no property specifying the name of the indexes, am I right?square-football-37770
05/17/2023, 9:07 AM./gradlew quickstartDebug
is datahub-upgrade
fails, apaprently, because of ES
ERROR c.l.d.u.s.e.steps.BuildIndicesStep:39 - BuildIndicesStep failed.
2023-05-17 11:03:10 java.lang.RuntimeException: [containerindex_v2_1684314190072] ElasticsearchStatusException[Elasticsearch exception [type=index_not_found_exception, reason=no such index [containerindex_v2_1684314190072]]]
square-football-37770
05/17/2023, 9:08 AMsquare-football-37770
05/17/2023, 9:09 AM2023-05-17 10:56:28 {"type": "server", "timestamp": "2023-05-17T08:56:28,176Z", "level": "WARN", "component": "o.e.c.r.a.DiskThresholdMonitor", "cluster.name": "docker-cluster", "node.name": "elasticsearch", "message": "high disk watermark [90%] exceeded on [9djfJpP5QiaVKgoYdNHxLw][elasticsearch][/usr/share/elasticsearch/data/nodes/0] free: 3.8gb[6.6%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete", "cluster.uuid": "Gg1ASe8_SSi8v8qPlQM00Q", "node.id": "9djfJpP5QiaVKgoYdNHxLw" }
square-football-37770
05/17/2023, 9:09 AMbrainy-tent-14503
05/17/2023, 5:22 PMelasticsearch.indexPrefix
here and converted to the linked env here.brainy-tent-14503
05/17/2023, 5:23 PMbrainy-tent-14503
05/17/2023, 5:24 PMsquare-football-37770
05/17/2023, 5:27 PM./gradlew
quickstart` and quickstartDebug
so I'm a bit surprised I have to tune thembrainy-tent-14503
05/17/2023, 5:28 PMbrainy-tent-14503
05/17/2023, 5:28 PMbrainy-tent-14503
05/17/2023, 5:30 PMsquare-football-37770
05/17/2023, 5:42 PMsquare-football-37770
05/25/2023, 3:28 PMsquare-football-37770
05/25/2023, 3:28 PMsquare-football-37770
05/25/2023, 3:29 PMaloof-gpu-11378
05/26/2023, 2:41 AMUSE_AWS_ELASTICSEARCH=true
- here