metrico / qryn

Polyglot Observability Stack. Lightweight & Drop-in compatible with Loki, Prometheus, Tempo, Pyroscope, Opentelemetry, Datadog & more! WASM powered ⭐️ Star to Support
https://qryn.dev
GNU Affero General Public License v3.0
1.05k stars 63 forks source link

option to create schema end exit process #505

Closed R-omk closed 1 week ago

R-omk commented 1 month ago

When installing a product, it need the ability to start migration job (scheme installation) and then complete the process. At the same time, for other modes, disable schema creation.

something like process_mode: -reader (just for read api ) -writer ( for write only ) -migration (only create clickhouse schema and exit )

lmangani commented 1 month ago

Good logical points, let's make this happen.

akvlad commented 3 weeks ago

What do we need reader and writer process mode for? They have different non-colliding api routes.

R-omk commented 3 weeks ago

What do we need reader and writer process mode for?

do it at your discretion, I simply use them separately, and each is configured with its own access to CH, the reader will not be able to write even if we tries, but it’s better if the reader doesn’t even try..

akvlad commented 2 weeks ago

Qryn operation Mode

since 3.2.23

MODE env var was introduced. It can have one of 3 values:

lmangani commented 1 week ago

@R-omk this was implemented. Let us know if this fulfills your requirements and/or if you have comments.

Closing as completed, pending feedback.