Skip to content

Commit ba679c0

Browse files
authored
chore: update bootstrap for vector testnet and blinklabs images (#48)
1 parent 8b8a406 commit ba679c0

File tree

7 files changed

+353
-200
lines changed

7 files changed

+353
-200
lines changed

bootstrap/cell/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// network).
44
locals {
55
postgres_host = "postgres-dbsync-v3-${var.salt}"
6+
dbsync_image = "ghcr.io/demeter-run/dbsync"
67
db_volume_claim = coalesce(var.db_volume_claim, "pvc-${var.salt}")
78
postgres_config_name = coalesce(var.postgres_config_name, "postgres-config-${var.salt}")
89
}
@@ -48,11 +49,18 @@ module "dbsync_instances" {
4849
namespace = var.namespace
4950
network = each.value.network
5051
salt = coalesce(each.value.salt, var.salt)
52+
dbsync_image = coalesce(each.value.dbsync_image, local.dbsync_image)
5153
dbsync_image_tag = each.value.dbsync_image_tag
5254
node_n2n_tcp_endpoint = each.value.node_n2n_tcp_endpoint
5355
release = each.value.release
5456
topology_zone = coalesce(each.value.topology_zone, var.topology_zone)
5557
sync_status = each.value.sync_status
58+
compute_arch = coalesce(each.value.compute_arch, "arm64")
59+
compute_profile = coalesce(each.value.compute_profile, "mem-intensive")
60+
availability_sla = coalesce(each.value.availability_sla, "consistent")
61+
empty_args = coalesce(each.value.empty_args, false)
62+
custom_config = coalesce(each.value.custom_config, true)
63+
network_env_var = coalesce(each.value.network_env_var, false)
5664

5765
enable_postgrest = each.value.enable_postgrest
5866
postgres_database = "dbsync-${each.value.network}"

bootstrap/cell/variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,19 @@ variable "instances" {
8989
type = map(object({
9090
salt = optional(string)
9191
network = string
92+
dbsync_image = optional(string)
9293
dbsync_image_tag = string
9394
node_n2n_tcp_endpoint = string
9495
release = string
9596
sync_status = string
9697
enable_postgrest = bool
98+
availability_sla = optional(string)
99+
compute_profile = optional(string)
100+
compute_arch = optional(string)
97101
topology_zone = optional(string)
102+
empty_args = optional(bool, false)
103+
custom_config = optional(bool, true)
104+
network_env_var = optional(string, false)
98105
dbsync_resources = optional(object({
99106
requests = map(string)
100107
limits = map(string)
Lines changed: 81 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,112 @@
11
{
2-
"ByronGenesisFile": "/genesis/vector-testnet/byron.json",
3-
"ShelleyGenesisFile": "/genesis/vector-testnet/shelley.json",
4-
"AlonzoGenesisFile": "/genesis/vector-testnet/alonzo.json",
5-
"ConwayGenesisFile": "/genesis/vector-testnet/conway.json",
6-
"SocketPath": "db/node.socket",
7-
"PBftSignatureThreshold": 0.6,
8-
"MaxConcurrencyBulkSync": 1,
9-
"MaxConcurrencyDeadline": 2,
10-
"Protocol": "Cardano",
11-
"RequiresNetworkMagic": "RequiresMagic",
2+
"AlonzoGenesisFile": "/genesis/alonzo-genesis.json",
3+
"AlonzoGenesisHash": "694a30a4be097b10989dde200b273c52df0c4d2e2981cee3537bed7122302291",
4+
"ByronGenesisFile": "/genesis/byron-genesis.json",
5+
"ByronGenesisHash": "765ffc6574cd68ee743479e7cc2855d9f4066dda5d65fe56b9762e03d193ed0b",
6+
"ConwayGenesisFile": "/genesis/conway-genesis.json",
7+
"ConwayGenesisHash": "2629ff28ff9539312851b626212dc45be41784c450ab396c0b1da40b2429b78e",
8+
"EnableP2P": false,
9+
"ExperimentalProtocolsEnabled": true,
10+
"LastKnownBlockVersion-Alt": 0,
1211
"LastKnownBlockVersion-Major": 6,
1312
"LastKnownBlockVersion-Minor": 0,
14-
"LastKnownBlockVersion-Alt": 0,
15-
"TurnOnLogging": true,
16-
"TurnOnLogMetrics": true,
17-
"minSeverity": "Debug",
18-
"TracingVerbosity": "NormalVerbosity",
19-
"setupBackends": ["KatipBK"],
20-
"defaultBackends": ["KatipBK"],
21-
"hasEKG": 12788,
22-
"hasPrometheus": [
23-
"0.0.0.0",
24-
12798
25-
],
26-
"setupScribes": [
27-
{
28-
"scKind": "FileSK",
29-
"scName": "logs/mainnet.log",
30-
"scFormat": "ScText"
31-
},
32-
{
33-
"scKind": "StdoutSK",
34-
"scName": "stdout",
35-
"scFormat": "ScText"
36-
}
37-
],
38-
"defaultScribes": [
39-
["FileSK", "logs/mainnet.log"],
40-
["StdoutSK", "stdout"]
41-
],
42-
"rotation": {
43-
"rpLogLimitBytes": 5000000,
44-
"rpKeepFilesNum": 3,
45-
"rpMaxAgeHours": 24
46-
},
13+
"Protocol": "Cardano",
14+
"RequiresNetworkMagic": "RequiresMagic",
15+
"ShelleyGenesisFile": "/genesis/shelley-genesis.json",
16+
"ShelleyGenesisHash": "8189bc6863f6ac448fca1e08c4e8ade54b05b7b0cfcd3b84a7932324ef782a98",
17+
"TargetNumberOfActivePeers": 20,
18+
"TargetNumberOfEstablishedPeers": 50,
19+
"TargetNumberOfKnownPeers": 100,
20+
"TargetNumberOfRootPeers": 100,
21+
"TestAllegraHardForkAtEpoch": 0,
22+
"TestAlonzoHardForkAtEpoch": 0,
23+
"TestBabbageHardForkAtEpoch": 0,
24+
"TestMaryHardForkAtEpoch": 0,
25+
"TestShelleyHardForkAtEpoch": 0,
26+
"TraceAcceptPolicy": true,
4727
"TraceBlockFetchClient": false,
4828
"TraceBlockFetchDecisions": false,
4929
"TraceBlockFetchProtocol": false,
5030
"TraceBlockFetchProtocolSerialised": false,
5131
"TraceBlockFetchServer": false,
52-
"TraceBlockchainTime": false,
5332
"TraceChainDb": true,
54-
"TraceChainSyncClient": false,
5533
"TraceChainSyncBlockServer": false,
34+
"TraceChainSyncClient": false,
5635
"TraceChainSyncHeaderServer": false,
5736
"TraceChainSyncProtocol": false,
37+
"TraceConnectionManager": true,
5838
"TraceDNSResolver": true,
5939
"TraceDNSSubscription": true,
40+
"TraceDiffusionInitialization": true,
6041
"TraceErrorPolicy": true,
61-
"TraceLocalErrorPolicy": true,
6242
"TraceForge": true,
63-
"TraceHandshake": false,
43+
"TraceHandshake": true,
44+
"TraceInboundGovernor": true,
6445
"TraceIpSubscription": true,
65-
"TraceLocalRootPeers": true,
66-
"TracePublicRootPeers": true,
67-
"TracePeerSelection": true,
68-
"TraceDebugPeerSelection": false,
69-
"TracePeerSelectionActions": true,
70-
"TraceConnectionManager": true,
71-
"TraceServer": true,
72-
"TraceLocalConnectionManager": false,
73-
"TraceLocalServer": false,
46+
"TraceLedgerPeers": true,
7447
"TraceLocalChainSyncProtocol": false,
75-
"TraceLocalHandshake": false,
48+
"TraceLocalConnectionManager": true,
49+
"TraceLocalErrorPolicy": true,
50+
"TraceLocalHandshake": true,
51+
"TraceLocalRootPeers": true,
7652
"TraceLocalTxSubmissionProtocol": false,
7753
"TraceLocalTxSubmissionServer": false,
7854
"TraceMempool": true,
7955
"TraceMux": false,
56+
"TracePeerSelection": true,
57+
"TracePeerSelectionActions": true,
58+
"TracePublicRootPeers": true,
59+
"TraceServer": true,
8060
"TraceTxInbound": false,
8161
"TraceTxOutbound": false,
8262
"TraceTxSubmissionProtocol": false,
63+
"TracingVerbosity": "NormalVerbosity",
64+
"TurnOnLogMetrics": true,
65+
"TurnOnLogging": true,
66+
"defaultBackends": [
67+
"KatipBK"
68+
],
69+
"defaultScribes": [
70+
[
71+
"StdoutSK",
72+
"stdout"
73+
]
74+
],
75+
"hasEKG": 12788,
76+
"hasPrometheus": [
77+
"0.0.0.0",
78+
12798
79+
],
80+
"minSeverity": "Debug",
8381
"options": {
8482
"mapBackends": {
85-
"cardano.node.metrics": ["EKGViewBK"]
83+
"cardano.node.metrics": [
84+
"EKGViewBK"
85+
],
86+
"cardano.node.resources": [
87+
"EKGViewBK"
88+
]
8689
},
87-
"mapScribes": {
88-
"cardano.node.metrics": ["FileSK::logs/mainnet.log"]
89-
},
90-
"mapSeverity": {
91-
"cardano.node.ChainDB": "Notice",
92-
"cardano.node.DnsSubscription": "Debug"
90+
"mapSubtrace": {
91+
"cardano.node.metrics": {
92+
"subtrace": "Neutral"
93+
}
9394
}
9495
},
95-
"TestShelleyHardForkAtEpoch": 0,
96-
"TestAllegraHardForkAtEpoch": 0,
97-
"TestMaryHardForkAtEpoch": 0,
98-
"TestAlonzoHardForkAtEpoch": 0,
99-
"TestBabbageHardForkAtEpoch": 0,
100-
"ExperimentalProtocolsEnabled": true,
101-
"ApplicationName":"cardano-sl",
102-
"ApplicationVersion":0,
103-
"ByronGenesisHash":"abc5e260bf7c5d7008eab849705fc0eae911b638dd6687b1f10cef2e2bc8a713",
104-
"ShelleyGenesisHash":"fb2ca1cc879a9a7600103c2170c9d58e366cd77e17edf39a0e7bc1504f573e88",
105-
"AlonzoGenesisHash":"1cd94b66eade0670885744a858accdb2c3249e43e247db2c66b158050ec6a3e4",
106-
"ConwayGenesisHash":"d43d3f38e01848bddf67e66fe29fbd236aca252de58c7f2c1904c67107c17842"
96+
"rotation": {
97+
"rpKeepFilesNum": 10,
98+
"rpLogLimitBytes": 5000000,
99+
"rpMaxAgeHours": 24
100+
},
101+
"setupBackends": [
102+
"KatipBK"
103+
],
104+
"setupScribes": [
105+
{
106+
"scFormat": "ScText",
107+
"scKind": "StdoutSK",
108+
"scName": "stdout",
109+
"scRotation": null
110+
}
111+
]
107112
}

0 commit comments

Comments
 (0)