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

chore: update bootstrap for vector testnet and blinklabs images #48

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bootstrap/cell/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// network).
locals {
postgres_host = "postgres-dbsync-v3-${var.salt}"
dbsync_image = "ghcr.io/demeter-run/dbsync"
db_volume_claim = coalesce(var.db_volume_claim, "pvc-${var.salt}")
postgres_config_name = coalesce(var.postgres_config_name, "postgres-config-${var.salt}")
}
Expand Down Expand Up @@ -48,11 +49,18 @@ module "dbsync_instances" {
namespace = var.namespace
network = each.value.network
salt = coalesce(each.value.salt, var.salt)
dbsync_image = coalesce(each.value.dbsync_image, local.dbsync_image)
dbsync_image_tag = each.value.dbsync_image_tag
node_n2n_tcp_endpoint = each.value.node_n2n_tcp_endpoint
release = each.value.release
topology_zone = coalesce(each.value.topology_zone, var.topology_zone)
sync_status = each.value.sync_status
compute_arch = coalesce(each.value.compute_arch, "arm64")
compute_profile = coalesce(each.value.compute_profile, "mem-intensive")
availability_sla = coalesce(each.value.availability_sla, "consistent")
empty_args = coalesce(each.value.empty_args, false)
custom_config = coalesce(each.value.custom_config, true)
network_env_var = coalesce(each.value.network_env_var, false)

enable_postgrest = each.value.enable_postgrest
postgres_database = "dbsync-${each.value.network}"
Expand Down
7 changes: 7 additions & 0 deletions bootstrap/cell/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,19 @@ variable "instances" {
type = map(object({
salt = optional(string)
network = string
dbsync_image = optional(string)
dbsync_image_tag = string
node_n2n_tcp_endpoint = string
release = string
sync_status = string
enable_postgrest = bool
availability_sla = optional(string)
compute_profile = optional(string)
compute_arch = optional(string)
topology_zone = optional(string)
empty_args = optional(bool, false)
custom_config = optional(bool, true)
network_env_var = optional(string, false)
dbsync_resources = optional(object({
requests = map(string)
limits = map(string)
Expand Down
157 changes: 81 additions & 76 deletions bootstrap/configs/vector-testnet/config.json
Original file line number Diff line number Diff line change
@@ -1,107 +1,112 @@
{
"ByronGenesisFile": "/genesis/vector-testnet/byron.json",
"ShelleyGenesisFile": "/genesis/vector-testnet/shelley.json",
"AlonzoGenesisFile": "/genesis/vector-testnet/alonzo.json",
"ConwayGenesisFile": "/genesis/vector-testnet/conway.json",
"SocketPath": "db/node.socket",
"PBftSignatureThreshold": 0.6,
"MaxConcurrencyBulkSync": 1,
"MaxConcurrencyDeadline": 2,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
"AlonzoGenesisFile": "/genesis/alonzo-genesis.json",
"AlonzoGenesisHash": "694a30a4be097b10989dde200b273c52df0c4d2e2981cee3537bed7122302291",
"ByronGenesisFile": "/genesis/byron-genesis.json",
"ByronGenesisHash": "765ffc6574cd68ee743479e7cc2855d9f4066dda5d65fe56b9762e03d193ed0b",
"ConwayGenesisFile": "/genesis/conway-genesis.json",
"ConwayGenesisHash": "2629ff28ff9539312851b626212dc45be41784c450ab396c0b1da40b2429b78e",
"EnableP2P": false,
"ExperimentalProtocolsEnabled": true,
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 6,
"LastKnownBlockVersion-Minor": 0,
"LastKnownBlockVersion-Alt": 0,
"TurnOnLogging": true,
"TurnOnLogMetrics": true,
"minSeverity": "Debug",
"TracingVerbosity": "NormalVerbosity",
"setupBackends": ["KatipBK"],
"defaultBackends": ["KatipBK"],
"hasEKG": 12788,
"hasPrometheus": [
"0.0.0.0",
12798
],
"setupScribes": [
{
"scKind": "FileSK",
"scName": "logs/mainnet.log",
"scFormat": "ScText"
},
{
"scKind": "StdoutSK",
"scName": "stdout",
"scFormat": "ScText"
}
],
"defaultScribes": [
["FileSK", "logs/mainnet.log"],
["StdoutSK", "stdout"]
],
"rotation": {
"rpLogLimitBytes": 5000000,
"rpKeepFilesNum": 3,
"rpMaxAgeHours": 24
},
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresMagic",
"ShelleyGenesisFile": "/genesis/shelley-genesis.json",
"ShelleyGenesisHash": "8189bc6863f6ac448fca1e08c4e8ade54b05b7b0cfcd3b84a7932324ef782a98",
"TargetNumberOfActivePeers": 20,
"TargetNumberOfEstablishedPeers": 50,
"TargetNumberOfKnownPeers": 100,
"TargetNumberOfRootPeers": 100,
"TestAllegraHardForkAtEpoch": 0,
"TestAlonzoHardForkAtEpoch": 0,
"TestBabbageHardForkAtEpoch": 0,
"TestMaryHardForkAtEpoch": 0,
"TestShelleyHardForkAtEpoch": 0,
"TraceAcceptPolicy": true,
"TraceBlockFetchClient": false,
"TraceBlockFetchDecisions": false,
"TraceBlockFetchProtocol": false,
"TraceBlockFetchProtocolSerialised": false,
"TraceBlockFetchServer": false,
"TraceBlockchainTime": false,
"TraceChainDb": true,
"TraceChainSyncClient": false,
"TraceChainSyncBlockServer": false,
"TraceChainSyncClient": false,
"TraceChainSyncHeaderServer": false,
"TraceChainSyncProtocol": false,
"TraceConnectionManager": true,
"TraceDNSResolver": true,
"TraceDNSSubscription": true,
"TraceDiffusionInitialization": true,
"TraceErrorPolicy": true,
"TraceLocalErrorPolicy": true,
"TraceForge": true,
"TraceHandshake": false,
"TraceHandshake": true,
"TraceInboundGovernor": true,
"TraceIpSubscription": true,
"TraceLocalRootPeers": true,
"TracePublicRootPeers": true,
"TracePeerSelection": true,
"TraceDebugPeerSelection": false,
"TracePeerSelectionActions": true,
"TraceConnectionManager": true,
"TraceServer": true,
"TraceLocalConnectionManager": false,
"TraceLocalServer": false,
"TraceLedgerPeers": true,
"TraceLocalChainSyncProtocol": false,
"TraceLocalHandshake": false,
"TraceLocalConnectionManager": true,
"TraceLocalErrorPolicy": true,
"TraceLocalHandshake": true,
"TraceLocalRootPeers": true,
"TraceLocalTxSubmissionProtocol": false,
"TraceLocalTxSubmissionServer": false,
"TraceMempool": true,
"TraceMux": false,
"TracePeerSelection": true,
"TracePeerSelectionActions": true,
"TracePublicRootPeers": true,
"TraceServer": true,
"TraceTxInbound": false,
"TraceTxOutbound": false,
"TraceTxSubmissionProtocol": false,
"TracingVerbosity": "NormalVerbosity",
"TurnOnLogMetrics": true,
"TurnOnLogging": true,
"defaultBackends": [
"KatipBK"
],
"defaultScribes": [
[
"StdoutSK",
"stdout"
]
],
"hasEKG": 12788,
"hasPrometheus": [
"0.0.0.0",
12798
],
"minSeverity": "Debug",
"options": {
"mapBackends": {
"cardano.node.metrics": ["EKGViewBK"]
"cardano.node.metrics": [
"EKGViewBK"
],
"cardano.node.resources": [
"EKGViewBK"
]
},
"mapScribes": {
"cardano.node.metrics": ["FileSK::logs/mainnet.log"]
},
"mapSeverity": {
"cardano.node.ChainDB": "Notice",
"cardano.node.DnsSubscription": "Debug"
"mapSubtrace": {
"cardano.node.metrics": {
"subtrace": "Neutral"
}
}
},
"TestShelleyHardForkAtEpoch": 0,
"TestAllegraHardForkAtEpoch": 0,
"TestMaryHardForkAtEpoch": 0,
"TestAlonzoHardForkAtEpoch": 0,
"TestBabbageHardForkAtEpoch": 0,
"ExperimentalProtocolsEnabled": true,
"ApplicationName":"cardano-sl",
"ApplicationVersion":0,
"ByronGenesisHash":"abc5e260bf7c5d7008eab849705fc0eae911b638dd6687b1f10cef2e2bc8a713",
"ShelleyGenesisHash":"fb2ca1cc879a9a7600103c2170c9d58e366cd77e17edf39a0e7bc1504f573e88",
"AlonzoGenesisHash":"1cd94b66eade0670885744a858accdb2c3249e43e247db2c66b158050ec6a3e4",
"ConwayGenesisHash":"d43d3f38e01848bddf67e66fe29fbd236aca252de58c7f2c1904c67107c17842"
"rotation": {
"rpKeepFilesNum": 10,
"rpLogLimitBytes": 5000000,
"rpMaxAgeHours": 24
},
"setupBackends": [
"KatipBK"
],
"setupScribes": [
{
"scFormat": "ScText",
"scKind": "StdoutSK",
"scName": "stdout",
"scRotation": null
}
]
}
Loading
Loading