Skip to content

Commit

Permalink
Increase timeout for db-sync snapshot creation.
Browse files Browse the repository at this point in the history
Also bump ops-lib (no-ipv6 branch) to switch from old hydra nix cache
to https://cache.iog.io
  • Loading branch information
jbgi committed Dec 2, 2022
1 parent 0827b15 commit 3af230a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nix/sources.json
Expand Up @@ -324,15 +324,15 @@
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"ops-lib": {
"branch": "master",
"branch": "no-ipv6",
"description": "NixOps deployment configuration library for IOHK devops ",
"homepage": null,
"owner": "input-output-hk",
"repo": "ops-lib",
"rev": "c12558d54c9306b6917821e3e594148e4bd1eac4",
"sha256": "1ic2i2jhnmyxg2fvh5wy4b3wmn9akc6xvzgzjblfxxhmksayfhzl",
"rev": "524a72e4369072ad4a97b8bdc99ecf7a709b5c5f",
"sha256": "0vq6n0bmx37phykjs04rvqf62acs20ksyihklyzpsl4rxmq5wbrh",
"type": "tarball",
"url": "https://github.com/input-output-hk/ops-lib/archive/c12558d54c9306b6917821e3e594148e4bd1eac4.tar.gz",
"url": "https://github.com/input-output-hk/ops-lib/archive/524a72e4369072ad4a97b8bdc99ecf7a709b5c5f.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
5 changes: 4 additions & 1 deletion roles/snapshots.nix
Expand Up @@ -15,7 +15,10 @@ in {
})
];


n
# Create a new snapshot every 24h (if not exist alreay):
services.cardano-db-sync.takeSnapshot = "always";

# Increase stop timeout to 3h, to allow for snapshot creation on mainnet
systemd.services.cardano-db-sync.serviceConfig.TimeoutStopSec = lib.mkForce "3h";
}

0 comments on commit 3af230a

Please sign in to comment.