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

Keeping the DB updated #572

Closed
c4b4d4 opened this issue Apr 3, 2021 · 3 comments
Closed

Keeping the DB updated #572

c4b4d4 opened this issue Apr 3, 2021 · 3 comments

Comments

@c4b4d4
Copy link

c4b4d4 commented Apr 3, 2021

Hope this is the right place to ask this question, and maybe should be added to the Readme to clarify how does it work.

I've already set up everything, and I'm running this command to start populating the DB:

cardano-db-sync-extended --config $CNODE_HOME/files/dbsync.json --socket-path $CNODE_HOME/sockets/node0.socket --state-dir $CNODE_HOME/guild-db/ledger-state --schema-dir schema/

(Which it is still running as I'm typing this, I believe it'll take some time to populate everything the first time)

But what will happen when it finishes populating?

  • Do I need to keep running the command from above to always be up to date?
  • Or does it automatically add new entries as my cardano-node receives new data? (If so, what should I had done to make it work like this)
@erikd
Copy link
Contributor

erikd commented Apr 3, 2021

If both the node and db-sync are left running, new block arriving at the node will be fowarded to db-sync and inserted into the database.

@c4b4d4
Copy link
Author

c4b4d4 commented Apr 3, 2021

If both the node and db-sync are left running, new block arriving at the node will be fowarded to db-sync and inserted into the database.

Is there special/intended way to run db-sync as a service? Or is it intended to run just like the command from above?

@erikd
Copy link
Contributor

erikd commented Apr 5, 2021

Do you mean via systemd? Sure, that would be possible, but IOG does not currently supply one.

@erikd erikd closed this as completed Apr 7, 2021
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

2 participants