Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

fix: add Docker volume to persist cardano-db-sync internal state #104

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

rhyslbw
Copy link
Member

@rhyslbw rhyslbw commented Nov 12, 2020

@rhyslbw rhyslbw added the bug Something isn't working label Nov 12, 2020
@rhyslbw rhyslbw requested a review from KtorZ November 12, 2020 13:23
@KtorZ
Copy link
Contributor

KtorZ commented Nov 12, 2020

@rhyslbw I'd like to understand why persisting this particular volume helps? How come db-sync does not store everything it has to store in the postgres db?

@rhyslbw
Copy link
Member Author

rhyslbw commented Nov 12, 2020

As of https://github.com/input-output-hk/cardano-db-sync/releases/tag/6.0.0, it's caching ledger snapshots on disk, to handle rollback scenarios

https://github.com/input-output-hk/cardano-db-sync/blob/6.0.0/cardano-db-sync/app/cardano-db-sync.hs#L68-L75

The directory mounted in here is the default set by the NixOS service, which is used in the Docker image build

https://github.com/input-output-hk/cardano-db-sync/blob/6.0.0/nix/nixos/cardano-db-sync-service.nix#L51-L53

@KtorZ
Copy link
Contributor

KtorZ commented Nov 12, 2020

ok :/

@KtorZ KtorZ merged commit 397d92b into master Nov 12, 2020
@iohk-bors iohk-bors bot deleted the fix/docker-compose-db-sync-volume branch November 12, 2020 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
2 participants