-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node configs: add trace-dispatcher configuration
- Loading branch information
Showing
5 changed files
with
217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
################################################################################ | ||
# Mainnet Cardano Node Configuration | ||
|
||
##### Locations ##### | ||
|
||
AlonzoGenesisFile: mainnet-alonzo-genesis.json | ||
AlonzoGenesisHash: 7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874 | ||
ByronGenesisFile: mainnet-byron-genesis.json | ||
ByronGenesisHash: 5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb | ||
ShelleyGenesisFile: mainnet-shelley-genesis.json | ||
ShelleyGenesisHash: 1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81 | ||
|
||
##### Core protocol parameters ##### | ||
|
||
Protocol: Cardano | ||
|
||
# The mainnet does not include the network magic into addresses. Testnets do. | ||
RequiresNetworkMagic: RequiresNoMagic | ||
|
||
##### Update system parameters ##### | ||
|
||
# This protocol version number gets used by block producing nodes as part | ||
# of the system for agreeing on and synchronising protocol updates. | ||
# | ||
# See https://github.com/input-output-hk/cardano-node/blob/master/cardano-node/src/Cardano/Node/Protocol/Cardano.hs#L199 | ||
LastKnownBlockVersion-Major: 3 | ||
LastKnownBlockVersion-Minor: 0 | ||
LastKnownBlockVersion-Alt: 0 | ||
MaxKnownMajorProtocolVersion: 2 | ||
|
||
# In the Byron era some software versions are also published on the chain. | ||
# We do this only for Byron compatibility now. | ||
ApplicationName: cardano-sl | ||
ApplicationVersion: 1 | ||
|
||
##### Logging configuration ##### | ||
|
||
# Enable or disable logging overall | ||
TurnOnLogging: True | ||
|
||
##### New logging model ##### | ||
|
||
UseTraceDispatcher: True | ||
|
||
TraceOptionSeverity: | ||
- ns: '' | ||
severity: Info | ||
- ns: Node.AcceptPolicy | ||
severity: Silence | ||
- ns: Node.ChainDB | ||
severity: Debug | ||
TraceOptionDetail: | ||
- ns: '' | ||
detail: DNormal | ||
- ns: Node.BlockFetchClient | ||
detail: DMinimal | ||
TraceOptionBackend: | ||
- ns: '' | ||
backends: | ||
- Stdout HumanFormatColoured | ||
- EKGBackend | ||
- ns: Node.ChainDB | ||
backends: | ||
- Forwarder | ||
TraceOptionLimiter: | ||
- ns: Node.Resources | ||
limiterName: ResourceLimiter | ||
limiterFrequency: 1.0 | ||
TraceOptionForwarder: | ||
address: | ||
filePath: /tmp/forwarder-3.sock | ||
mode: Initiator | ||
|
||
##### Stubs for legacy logging config ##### | ||
|
||
TurnOnLogMetrics: False | ||
minSeverity: Critical | ||
setupScribes: [] | ||
setupBackends: [] | ||
defaultScribes: [] | ||
defaultBackends: [] | ||
options: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script connects a node to mainnet | ||
|
||
ROOT="$(realpath "$(dirname "$0")/../..")" | ||
configuration="${ROOT}/configuration/cardano" | ||
|
||
data_dir=mainnetsingle | ||
mkdir -p "${data_dir}" | ||
db_dir="${data_dir}/db/node" | ||
mkdir -p "${db_dir}" | ||
socket_dir="${data_dir}/socket" | ||
mkdir -p "${socket_dir}" | ||
|
||
# Launch a node | ||
cabal run exe:cardano-node -- run \ | ||
--config "${configuration}/mainnet-config-new-tracing.yaml" \ | ||
--topology "${configuration}/mainnet-topology.json" \ | ||
--database-path "${db_dir}" \ | ||
--socket-path "${socket_dir}/node-1-socket" \ | ||
--host-addr "127.0.0.1" \ | ||
--port "3001" | ||
|
||
|
||
|
||
function cleanup() | ||
{ | ||
for child in $(jobs -p); do | ||
echo kill "$child" && kill "$child" | ||
done | ||
} | ||
|
||
trap cleanup EXIT |