Skip to content

Commit d30520e

Browse files
committed
imp: add testnet-template new tracing config; mv old to legacy
1 parent b8c8b1b commit d30520e

File tree

2 files changed

+190
-66
lines changed

2 files changed

+190
-66
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"ByronGenesisFile": "byron-genesis.json",
3+
"ShelleyGenesisFile": "shelley-genesis.json",
4+
"AlonzoGenesisFile": "alonzo-genesis.json",
5+
"ConwayGenesisFile": "conway-genesis.json",
6+
"ApplicationName": "cardano-sl",
7+
"ApplicationVersion": 0,
8+
"LastKnownBlockVersion-Alt": 0,
9+
"LastKnownBlockVersion-Major": 3,
10+
"LastKnownBlockVersion-Minor": 1,
11+
"LedgerDB": {
12+
"Backend": "V2InMemory",
13+
"NumOfDiskSnapshots": 2,
14+
"QueryBatchSize": 100000,
15+
"SnapshotInterval": 216
16+
},
17+
"MaxConcurrencyDeadline": 4,
18+
"MaxKnownMajorProtocolVersion": 2,
19+
"PBftSignatureThreshold": 1.1,
20+
"Protocol": "Cardano",
21+
"RequiresNetworkMagic": "RequiresMagic",
22+
"TestShelleyHardForkAtEpoch": 0,
23+
"TestAllegraHardForkAtEpoch": 0,
24+
"TestMaryHardForkAtEpoch": 0,
25+
"TestAlonzoHardForkAtEpoch": 0,
26+
"EnableP2P": true,
27+
"ExperimentalProtocolsEnabled": true,
28+
"ExperimentalHardForksEnabled": true,
29+
"TraceAcceptPolicy": true,
30+
"TraceBlockFetchClient": false,
31+
"TraceBlockFetchDecisions": false,
32+
"TraceBlockFetchProtocol": false,
33+
"TraceBlockFetchProtocolSerialised": false,
34+
"TraceBlockFetchServer": false,
35+
"TraceChainDb": true,
36+
"TraceChainSyncBlockServer": false,
37+
"TraceChainSyncClient": false,
38+
"TraceChainSyncHeaderServer": false,
39+
"TraceChainSyncProtocol": false,
40+
"TraceConnectionManager": true,
41+
"TraceDNSResolver": true,
42+
"TraceDNSSubscription": true,
43+
"TraceDiffusionInitialization": true,
44+
"TraceErrorPolicy": true,
45+
"TraceForge": true,
46+
"TraceHandshake": false,
47+
"TraceInboundGovernor": true,
48+
"TraceIpSubscription": true,
49+
"TraceLedgerPeers": true,
50+
"TraceLocalChainSyncProtocol": false,
51+
"TraceLocalErrorPolicy": true,
52+
"TraceLocalHandshake": false,
53+
"TraceLocalRootPeers": true,
54+
"TraceLocalTxSubmissionProtocol": false,
55+
"TraceLocalTxSubmissionServer": false,
56+
"TraceMempool": false,
57+
"TraceMux": false,
58+
"TracePeerSelection": true,
59+
"TracePeerSelectionActions": true,
60+
"TracePublicRootPeers": true,
61+
"TraceServer": true,
62+
"TraceTxInbound": false,
63+
"TraceTxOutbound": false,
64+
"TraceTxSubmissionProtocol": false,
65+
"TracingVerbosity": "NormalVerbosity",
66+
"TurnOnLogMetrics": true,
67+
"TurnOnLogging": true,
68+
"defaultBackends": ["KatipBK"],
69+
"defaultScribes": [["StdoutSK", "cardano"]],
70+
"hasEKG": 12788,
71+
"hasPrometheus": ["0.0.0.0", 12798],
72+
"minSeverity": "Debug",
73+
"options": {
74+
"mapBackends": {
75+
"cardano.node.metrics": ["EKGViewBK"],
76+
"cardano.node.resources": ["EKGViewBK"]
77+
},
78+
"mapSubtrace": {
79+
"cardano.node.metrics": {
80+
"subtrace": "Neutral"
81+
}
82+
}
83+
},
84+
"rotation": {
85+
"rpKeepFilesNum": 10,
86+
"rpLogLimitBytes": 5000000,
87+
"rpMaxAgeHours": 24
88+
},
89+
"setupBackends": ["KatipBK"],
90+
"setupScribes": [
91+
{
92+
"scFormat": "ScText",
93+
"scKind": "StdoutSK",
94+
"scName": "cardano"
95+
}
96+
]
97+
}

cardano-lib/testnet-template/config.json

Lines changed: 93 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -26,72 +26,99 @@
2626
"EnableP2P": true,
2727
"ExperimentalProtocolsEnabled": true,
2828
"ExperimentalHardForksEnabled": true,
29-
"TraceAcceptPolicy": true,
30-
"TraceBlockFetchClient": false,
31-
"TraceBlockFetchDecisions": false,
32-
"TraceBlockFetchProtocol": false,
33-
"TraceBlockFetchProtocolSerialised": false,
34-
"TraceBlockFetchServer": false,
35-
"TraceChainDb": true,
36-
"TraceChainSyncBlockServer": false,
37-
"TraceChainSyncClient": false,
38-
"TraceChainSyncHeaderServer": false,
39-
"TraceChainSyncProtocol": false,
40-
"TraceConnectionManager": true,
41-
"TraceDNSResolver": true,
42-
"TraceDNSSubscription": true,
43-
"TraceDiffusionInitialization": true,
44-
"TraceErrorPolicy": true,
45-
"TraceForge": true,
46-
"TraceHandshake": false,
47-
"TraceInboundGovernor": true,
48-
"TraceIpSubscription": true,
49-
"TraceLedgerPeers": true,
50-
"TraceLocalChainSyncProtocol": false,
51-
"TraceLocalErrorPolicy": true,
52-
"TraceLocalHandshake": false,
53-
"TraceLocalRootPeers": true,
54-
"TraceLocalTxSubmissionProtocol": false,
55-
"TraceLocalTxSubmissionServer": false,
56-
"TraceMempool": false,
57-
"TraceMux": false,
58-
"TracePeerSelection": true,
59-
"TracePeerSelectionActions": true,
60-
"TracePublicRootPeers": true,
61-
"TraceServer": true,
62-
"TraceTxInbound": false,
63-
"TraceTxOutbound": false,
64-
"TraceTxSubmissionProtocol": false,
65-
"TracingVerbosity": "NormalVerbosity",
66-
"TurnOnLogMetrics": true,
67-
"TurnOnLogging": true,
68-
"defaultBackends": ["KatipBK"],
69-
"defaultScribes": [["StdoutSK", "cardano"]],
70-
"hasEKG": 12788,
71-
"hasPrometheus": ["0.0.0.0", 12798],
72-
"minSeverity": "Debug",
73-
"options": {
74-
"mapBackends": {
75-
"cardano.node.metrics": ["EKGViewBK"],
76-
"cardano.node.resources": ["EKGViewBK"]
77-
},
78-
"mapSubtrace": {
79-
"cardano.node.metrics": {
80-
"subtrace": "Neutral"
81-
}
82-
}
83-
},
84-
"rotation": {
85-
"rpKeepFilesNum": 10,
86-
"rpLogLimitBytes": 5000000,
87-
"rpMaxAgeHours": 24
29+
"TraceOptionForwarder": {
30+
"connQueueSize": 64,
31+
"disconnQueueSize": 128,
32+
"maxReconnectDeplay": 30
8833
},
89-
"setupBackends": ["KatipBK"],
90-
"setupScribes": [
91-
{
92-
"scFormat": "ScText",
93-
"scKind": "StdoutSK",
94-
"scName": "cardano"
34+
"TraceOptionMetricsPrefix": "cardano.node.metrics.",
35+
"TraceOptionPeerFrequency": 2000,
36+
"TraceOptionResourceFrequency": 1000,
37+
"TraceOptions": {
38+
"": {
39+
"backends": [
40+
"EKGBackend",
41+
"Forwarder",
42+
"PrometheusSimple 127.0.0.1 12798",
43+
"Stdout HumanFormatColoured"
44+
],
45+
"detail": "DNormal",
46+
"severity": "Notice"
47+
},
48+
"BlockFetch.Client.CompletedBlockFetch": {
49+
"maxFrequency": 2.0
50+
},
51+
"BlockFetch.Decision": {
52+
"severity": "Silence"
53+
},
54+
"ChainDB": {
55+
"severity": "Info"
56+
},
57+
"ChainDB.AddBlockEvent.AddBlockValidation": {
58+
"severity": "Silence"
59+
},
60+
"ChainDB.AddBlockEvent.AddBlockValidation.ValidCandidate": {
61+
"maxFrequency": 2.0
62+
},
63+
"ChainDB.AddBlockEvent.AddedBlockToQueue": {
64+
"maxFrequency": 2.0
65+
},
66+
"ChainDB.AddBlockEvent.AddedBlockToVolatileDB": {
67+
"maxFrequency": 2.0
68+
},
69+
"ChainDB.CopyToImmutableDBEvent.CopiedBlockToImmutableDB": {
70+
"maxFrequency": 2.0
71+
},
72+
"ChainSync.Client": {
73+
"severity": "Warning"
74+
},
75+
"Forge.Loop": {
76+
"severity": "Info"
77+
},
78+
"Forge.StateInfo": {
79+
"severity": "Info"
80+
},
81+
"Mempool": {
82+
"severity": "Info"
83+
},
84+
"Net.ConnectionManager.Remote": {
85+
"severity": "Info"
86+
},
87+
"Net.ConnectionManager.Remote.ConnectionManagerCounters": {
88+
"severity": "Silence"
89+
},
90+
"Net.ErrorPolicy": {
91+
"severity": "Info"
92+
},
93+
"Net.ErrorPolicy.Local": {
94+
"severity": "Info"
95+
},
96+
"Net.InboundGovernor": {
97+
"severity": "Warning"
98+
},
99+
"Net.InboundGovernor.Remote": {
100+
"severity": "Info"
101+
},
102+
"Net.Mux.Remote": {
103+
"severity": "Info"
104+
},
105+
"Net.PeerSelection": {
106+
"severity": "Silence"
107+
},
108+
"Net.Subscription.DNS": {
109+
"severity": "Info"
110+
},
111+
"Net.Subscription.IP": {
112+
"severity": "Info"
113+
},
114+
"Resources": {
115+
"severity": "Silence"
116+
},
117+
"Startup.DiffusionInit": {
118+
"severity": "Info"
95119
}
96-
]
120+
},
121+
"TurnOnLogMetrics": true,
122+
"TurnOnLogging": true,
123+
"UseTraceDispatcher": true
97124
}

0 commit comments

Comments
 (0)