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

No change database capture (CDC) on Hasura Cloud #6988

Open
mikejcooper opened this issue May 27, 2021 · 4 comments
Open

No change database capture (CDC) on Hasura Cloud #6988

mikejcooper opened this issue May 27, 2021 · 4 comments

Comments

@mikejcooper
Copy link

Cannot see the database change capture (CDC) in hdb_catalog when applying migration on Hasura Cloud, but works fine on local Hasura deployment.

On Hasura Cloud hdb_catalog has the following tables after 1 migration = [event_log, event_invocations_log, hdb_source_catalog_version]

On local deployment, hdb_catalog has many tables after 1 migration, including hdb_version which contains migration info.

Any ideas?

@mikejcooper mikejcooper changed the title No database change capture (CDC) on Hasura Cloud No change database capture (CDC) on Hasura Cloud May 27, 2021
@coco98
Copy link
Contributor

coco98 commented May 28, 2021

@mikejcooper On Hasura Cloud, the metadata storage is now done in Hasura Cloud itself. So the CDC bits (required for event triggers) are the only footprint of Hasura you'll see in your source database.

With the next few releases, that will also become optional so that if you don't have any event triggers, the event_* tables will also not be created. This will allow users to bring in purely read-only databases as sources as well.

On the Hasura-2.0 docker images you'll see the metadata tables being created in the metadata database. Ofcourse, its optional to bring your own separate metadata database when running Hasura with Docker. So if you have one postgres database being used both as a source and for metadata storage, you will see all the hdb_* tables in the hdb_catalog postgres schema.

Hope that makes sense?

@coco98 coco98 closed this as completed May 28, 2021
@coco98 coco98 reopened this May 28, 2021
@coco98
Copy link
Contributor

coco98 commented May 28, 2021

Is this affecting your CI/CD setup? That shouldn't be the case, so do let us know how that's being affected and we can help out!

If I understand correctly, you're looking for the "migrations" history table which you can't see anymore and that's causing a problem?

@brandonbaraban
Copy link

Hi, @coco98. I'm facing a similar problem to what you are saying. We recently switched from deploying our own production and staging backends using the Hasura docker image to using Hasura Cloud for both. Previously, changes in the console were tracked in a local migrations directory, and that is how we kept staging and production in sync and also tested out changes on staging before applying them to production. I don't see a way to do that through Hasura Cloud as it is now. Would appreciate any insights you have here!

@brandonbaraban
Copy link

I also don't see a way to use many of the CLI features on Hasura Cloud projects, like applying seeds. If there is any way to get that working, that would also be very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants