-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix for running signoz-schema-migrator under docker-swarm #6489
Conversation
Welcome to the SigNoz community! Thank you for your first pull request and making this project better. 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 0cc22df in 15 seconds
More details
- Looked at
15
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. deploy/docker-swarm/clickhouse-setup/docker-compose.yaml:248
- Draft comment:
The--up=
parameter seems unnecessary and might cause issues. Consider removing it if it's not required. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment is speculative, suggesting that the--up=
parameter might be unnecessary and could cause issues. However, it does not provide strong evidence that this is indeed a problem. The rules state that speculative comments should be removed unless there is strong evidence of an issue.
I might be missing specific knowledge about theotel-collector-migrator
service and whether the--up=
parameter is valid or required. However, the comment does not provide evidence or reasoning to support its claim.
Even if I lack specific knowledge about the service, the comment should provide evidence or reasoning to support its claim, which it does not. Therefore, it should be removed according to the rules.
The comment is speculative and lacks strong evidence of an issue. According to the rules, it should be removed.
2. deploy/docker-swarm/clickhouse-setup/docker-compose.yaml:246
- Draft comment:
No issues found with the changes in this PR. - Reason this comment was not posted:
Confidence changes required:0%
The PR does not violate any of the specified rules. The changes are related to the command arguments for the otel-collector-migrator service, which are appropriate for the context.
Workflow ID: wflow_bGk6fQaiHeI7fUZ7
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Both In Docker Compose, we achieved this using depends_on:
otel-collector-migrator-sync:
condition: service_completed_successfully However, this exact behaviour will not work in Docker Swarm. Ref: docker/cli#3880 |
Does this mean that meanwhile docker swarm will not be runnable with signoz? |
Wouldn't it then be better to change the migrator to run both (first sync, then async) migrations instead of spawning different containers for it? |
With your PR changes, it should work fine for now as we do not have any async migrations yet. However after we include async migrations, we may need to spawn async migration container post-install manually for Docker Swarm. |
Technically, we could do that as well. But it's best to separate these two for the ease of running only either of them when needed. @srikanthccv any thoughts here? |
Could still do it as it works now and accept both "sync" and "async" commands, and if both are present make sure it executes in the order of "first sync, then async". I'm not sure as to how easy/hard that would be to achieve as I haven't gotten the time to look into how the migrator service works but in my head it sounds like it should be possible (basically one container that can handle both types instead of spawning it in two different containers). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will address async in seperate PR
Fixes: #6477
Important
Add
sync
and--up=
arguments tootel-collector-migrator
indocker-compose.yaml
for Docker Swarm compatibility.sync
and--up=
arguments tootel-collector-migrator
service indocker-compose.yaml
to ensure proper execution under Docker Swarm.This description was created by for 0cc22df. It will automatically update as commits are pushed.