Skip to content

Instantly share code, notes, and snippets.

@jeromegn
Created January 15, 2024 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromegn/2a70ca5547d8ad15a608f864f21a8502 to your computer and use it in GitHub Desktop.
Save jeromegn/2a70ca5547d8ad15a608f864f21a8502 to your computer and use it in GitHub Desktop.
Quickwit cluster on Fly
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
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
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"]
#!/bin/bash
unset QW_LISTEN_ADDRESS
export ADVERTISE_ADDR=$(getent hosts fly-local-6pn | cut -d' ' -f1)
exec "$@"
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"
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