Created
January 15, 2024 16:44
-
-
Save jeromegn/2a70ca5547d8ad15a608f864f21a8502 to your computer and use it in GitHub Desktop.
Quickwit cluster on Fly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.5 | |
cluster_id: "<replace-me>-quickwit" | |
node_id: ${QUICKWIT_ROLE}-${FLY_MACHINE_ID} | |
metastore_uri: ${DATABASE_URL} | |
default_index_root_uri: "s3://<replace-me>" | |
listen_address: "::" | |
advertise_address: ${ADVERTISE_ADDR} | |
data_dir: "/quickwit" | |
peer_seeds: | |
- <replace-me>-quickwit.internal | |
- <replace-me>-quickwit-indexer.internal | |
- <replace-me>-quickwit-searcher.internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = "<replace-me>-quickwit" | |
[env] | |
QW_CONFIG = "/quickwit/config/quickwit.yaml" | |
QW_S3_ENDPOINT = "https://<replace-me>" | |
AWS_REGION = "replace-me" | |
AWS_ACCESS_KEY_ID = "replace-me" | |
QUICKWIT_ROLE = "meta" # for name purposes in the quickwit cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM quickwit/quickwit:0.6.3 | |
COPY entrypoint.sh /entrypoint.sh | |
RUN mkdir -p /quickwit/config | |
COPY config.yaml /quickwit/config/quickwit.yaml | |
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
unset QW_LISTEN_ADDRESS | |
export ADVERTISE_ADDR=$(getent hosts fly-local-6pn | cut -d' ' -f1) | |
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = "<replace-me>-quickwit-indexer" | |
[mounts] | |
source = "qwdata" | |
destination = "/quickwit" | |
[env] | |
QW_CONFIG = "/quickwit/config/quickwit.yaml" | |
QW_S3_ENDPOINT = "https://<replace-me>" | |
AWS_REGION = "replace-me" | |
AWS_ACCESS_KEY_ID = "REPLACE ME" | |
QUICKWIT_ROLE = "indexer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = "<replace-me>-quickwit-searcher" | |
[env] | |
QW_CONFIG = "/quickwit/config/quickwit.yaml" | |
QW_S3_ENDPOINT = "https://<replace-me>" | |
AWS_REGION = "replace-me" | |
AWS_ACCESS_KEY_ID = "REPLACE ME" | |
QUICKWIT_ROLE = "searcher" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment