Can you help me understand the architecture of the new db migration? Why do you attempt to create the databases on each migration run? What is the best practice for running the migration task? Should it be performed in a downtime?
I have yet to try stopping ingestion but the create dbs part of the sync task gets a timeout while executing. Would love some insight into how others are managing their clusters during upgrades.
s
Srikanth Chekuri
11/20/2024, 1:54 PM
Why do you attempt to create the databases on each migration run?
The command that get executed is
CREATE ... IF NOT EXISTS ...
, so if db already exists it doesn't do anything.
What is the best practice for running the migration task? Should it be performed in a downtime?
The objective of the new schema migrator is zero downtime migrations. Either migration happens and the upgrade is successful without any downtime or no upgrade (with upgrade failure reasons).
but the create dbs part of the sync task gets a timeout while executing.
This indicates that something is blocking the DDL execution. See if you have any mutations pending.
k
Kevin Anderson
11/20/2024, 2:48 PM
Thanks...there are no pending mutations. Any other troubleshooting tips?
s
Srikanth Chekuri
11/20/2024, 2:49 PM
Are there any unfinished DDl tasks? Did it timeout when it tries to establish connection or did it timeout when it's waiting for
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.