-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Allow using a PG database for the config database #3605
Comments
Does this mean that in the future, the config migration can be done through a database migration? If so, we can leverage mature database migration systems to do it smoothly (e.g. Rails migration). |
Maybe! Couple things:
|
It can handle data migration as well. You can write anything in the
This is actually a perk of using something like Rails migration. It is not database specific. You can even use SQLite, which is a file based database, similar to our current set up. |
Are the Will we be able to?
If so, this would be amazing. |
Just having a bit of a closer look now. It appears like Postgres db only contains some of the data. The |
@tuliren Although I like using existing mature tools, I'd prefer to not pull in parts of the ruby ecosystem into our stack. I'd vote for continuing to use flyway for schema migrations and our current migration process for data migration. I'm down to use an existing tool if we find one that is self-contained and doesn't carry other build baggage (e.g. the data migration version of flyway) |
Hi all, What about making a way to version controlling the configuration files? Is there any way to make the volume not so persistent and then Airbyte will reread new configuration without any restart docker? Or is it to hard as the architecture don't allow it? |
👍 for MySQL compatibility |
Redash uses their DB for non-secret configuration and it's great. New versions are just DB migrations, which is easy to do. As a stopgap solution, we persist our configuration via a crontab and S3: # Download the current docker volumes if they exist
aws s3 sync s3://${s3_bucket_name}/volumes /var/lib/docker/volumes || true
# Make our crontab file
cat > /root/crontab << EOF
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Every 5 min, save the docker volume to S3
*/5 * * * * aws s3 sync /var/lib/docker/volumes/ s3://${s3_bucket_name}/volumes > /home/ubuntu/crontab.log 2>&1
EOF
crontab /root/crontab |
What is the process to migrate from |
@ShahNewazKhan, you can find the docs here. |
Thanks for the pointer @tuliren! However the situation I have in hand is I have deployed Do I have to perform any other steps other than exporting the db to an external db and rebooting |
You'll also have to remove the additional kubernetes deploys and configure the deploy so airbyte connects to your external database. See https://docs.airbyte.com/operator-guides/configuring-airbyte#database |
Makes sense, thanks! |
The docs site is still not updated |
Tell us about the problem you're trying to solve
Current we a use a homegrown file "database" to store configs (see:
ConfigPersistence
andDefaultConfigPersistence
):┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: