Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to create schema end exit process #505

Closed
R-omk opened this issue May 13, 2024 · 5 comments
Closed

option to create schema end exit process #505

R-omk opened this issue May 13, 2024 · 5 comments
Labels
enhancement New feature or request feature request help wanted Extra attention is needed

Comments

@R-omk
Copy link

R-omk commented May 13, 2024

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
Copy link
Collaborator

Good logical points, let's make this happen.

@lmangani lmangani added enhancement New feature or request help wanted Extra attention is needed feature request labels May 13, 2024
@akvlad
Copy link
Collaborator

akvlad commented Jun 11, 2024

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

@akvlad akvlad mentioned this issue Jun 11, 2024
@R-omk
Copy link
Author

R-omk commented Jun 11, 2024

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
Copy link
Collaborator

akvlad commented Jun 13, 2024

Qryn operation Mode

since 3.2.23

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

  • writer - only writing paths
  • reader - only reading paths
  • init_only - initialize the database and exit
  • all - reading and writing paths

@lmangani
Copy link
Collaborator

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

Closing as completed, pending feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants