Squashed 'bridges/' content from commit 062554430

git-subtree-dir: bridges
git-subtree-split: 0625544309ff299307f7e110f252f04eac383102
This commit is contained in:
Branislav Kontur committed 2022-12-01 22:32:52 +01:00
commit d2b7ee2575
357 files changed
+79920

No files matched your search

@@ -0,0 +1,585 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"links": [],
"panels": [
{
"alert": {
"alertRuleTags": {},
"conditions": [
{
"evaluator": {
"params": [
1
],
"type": "lt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"C",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "max"
},
"type": "query"
},
{
"evaluator": {
"params": [
1
],
"type": "lt"
},
"operator": {
"type": "or"
},
"query": {
"params": [
"D",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "max"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "5m",
"frequency": "1m",
"handler": 1,
"name": "Beefy best blocks not advancing",
"noDataState": "no_data",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {
"align": null
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 14,
"w": 12,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "substrate_beefy_best_block{chain=\"rialto_local\"}",
"legendFormat": "Rialto(Charlie)",
"refId": "A"
},
{
"expr": "substrate_beefy_best_block{chain=\"millau_local\"}",
"legendFormat": "Millau(Charlie)",
"refId": "B"
},
{
"expr": "max_over_time(substrate_beefy_best_block{chain=\"millau_local\"}[5m]) - min_over_time(substrate_beefy_best_block{chain=\"millau_local\"}[5m])",
"hide": true,
"legendFormat": "Millau Best Beefy blocks count in last 5 minutes",
"refId": "C"
},
{
"expr": "max_over_time(substrate_beefy_best_block{chain=\"rialto_local\"}[5m]) - min_over_time(substrate_beefy_best_block{chain=\"rialto_local\"}[5m])",
"hide": true,
"legendFormat": "Rialto Best Beefy blocks count in last 5 minutes",
"refId": "D"
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "lt",
"value": 1
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Beefy Best block",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "yellow",
"value": null
},
{
"color": "yellow",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 14,
"w": 11,
"x": 12,
"y": 0
},
"id": 4,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "7.1.3",
"targets": [
{
"expr": "substrate_beefy_should_vote_on{chain=\"rialto_local\"}",
"legendFormat": "Rialto(Charlie) Should-Vote-On",
"refId": "C"
},
{
"expr": "substrate_beefy_round_concluded{chain=\"rialto_local\"}",
"legendFormat": "Rialto(Charlie) Round-Concluded",
"refId": "A"
},
{
"expr": "substrate_beefy_should_vote_on{chain=\"millau_local\"}",
"legendFormat": "Millau(Charlie) Should-Vote-On",
"refId": "D"
},
{
"expr": "substrate_beefy_round_concluded{chain=\"millau_local\"}",
"legendFormat": "Millau(Charlie) Round-Concluded",
"refId": "B"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Beefy Voting Rounds",
"type": "stat"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 18,
"x": 0,
"y": 14
},
"hiddenSeries": false,
"id": 6,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "substrate_beefy_votes_sent{chain=\"rialto_local\"}",
"legendFormat": "Rialto (node Charlie)",
"refId": "A"
},
{
"expr": "substrate_beefy_votes_sent{chain=\"millau_local\"}",
"legendFormat": "Millau (node Charlie)",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Beefy Votes Sent",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"alert": {
"alertRuleTags": {},
"conditions": [
{
"evaluator": {
"params": [
0
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "max"
},
"type": "query"
},
{
"evaluator": {
"params": [
0
],
"type": "gt"
},
"operator": {
"type": "or"
},
"query": {
"params": [
"B",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "max"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "5m",
"frequency": "1m",
"handler": 1,
"name": "Beefy Lagging Sessions alert",
"noDataState": "no_data",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fieldConfig": {
"defaults": {
"custom": {
"align": null
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1
}
]
}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 5,
"x": 18,
"y": 14
},
"hiddenSeries": false,
"id": 8,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "substrate_beefy_lagging_sessions{chain=\"rialto_local\"}",
"legendFormat": "Rialto(Charlie)",
"refId": "A"
},
{
"expr": "substrate_beefy_lagging_sessions{chain=\"millau_local\"}",
"legendFormat": "Millau(Charlie)",
"refId": "B"
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 0
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Beefy Lagging Sessions",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "5s",
"schemaVersion": 26,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Beefy",
"uid": "j6cRDRh7z",
"version": 1
}
@@ -0,0 +1,2 @@
- targets:
- millau-node-charlie:9615
@@ -0,0 +1,2 @@
- targets:
- rialto-node-charlie:9615
@@ -0,0 +1,14 @@
#!/bin/bash
set -xeu
/home/user/rialto-bridge-node build-spec \
--chain local \
--raw \
--disable-default-bootnode \
> /rialto-share/rialto-relaychain-spec-raw.json
# we're using local driver + tmpfs for shared `/rialto-share` volume, which is populated
# by the container running this script. If this script ends, the volume will be detached
# and our chain spec will be lost when it'll go online again. Hence the never-ending
# script which keeps volume online until container is stopped.
tail -f /dev/null
@@ -0,0 +1,11 @@
#!/bin/bash
set -xeu
sleep 15
/home/user/substrate-relay register-parachain rialto-parachain \
--parachain-host rialto-parachain-collator-alice \
--parachain-port 9944 \
--relaychain-host rialto-node-alice \
--relaychain-port 9944 \
--relaychain-signer //Sudo
+101
View File
@@ -0,0 +1,101 @@
# Compose file for quickly spinning up a local instance of the Millau Substrate network.
#
# Note that the Millau network is only used for testing, so the configuration settings you see here
# are *not* recommended for a production environment.
#
# For example, do *not* keep your `node-key` in version control, and unless you're _really_ sure you
# want to provide public access to your nodes do *not* publicly expose RPC methods.
version: '3.5'
services:
millau-node-alice: &millau-bridge-node
image: ${MILLAU_BRIDGE_NODE_IMAGE:-paritytech/millau-bridge-node}
entrypoint:
- /home/user/millau-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/millau-node-bob/tcp/30333/p2p/12D3KooWM5LFR5ne4yTQ4sBSXJ75M4bDo2MAhAW2GhL3i8fe5aRb
- --alice
- --node-key=0f900c89f4e626f4a217302ab8c7d213737d00627115f318ad6fb169717ac8e0
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
environment:
RUST_LOG: runtime=trace,rpc=debug,txpool=trace,runtime::bridge=trace,sc_basic_authorship=trace,beefy=debug
ports:
- "19933:9933"
- "19944:9944"
millau-node-bob:
<<: *millau-bridge-node
entrypoint:
- /home/user/millau-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
- --bob
- --node-key=db383639ff2905d79f8e936fd5dc4416ef46b514b2f83823ec3c42753d7557bb
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
ports:
- "20033:9933"
- "20044:9944"
millau-node-charlie:
<<: *millau-bridge-node
entrypoint:
- /home/user/millau-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
- --charlie
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
- --prometheus-external
ports:
- "20133:9933"
- "20144:9944"
- "20615:9615"
millau-node-dave:
<<: *millau-bridge-node
entrypoint:
- /home/user/millau-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
- --dave
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
ports:
- "20233:9933"
- "20244:9944"
millau-node-eve:
<<: *millau-bridge-node
entrypoint:
- /home/user/millau-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
- --eve
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
ports:
- "20333:9933"
- "20344:9944"
# Note: These are being overridden from the top level `monitoring` compose file.
prometheus-metrics:
volumes:
- ./networks/dashboard/prometheus/millau-targets.yml:/etc/prometheus/targets-millau-nodes.yml
depends_on:
- millau-node-charlie
+90
View File
@@ -0,0 +1,90 @@
# Compose file for quickly spinning up a local instance of the Rialto Parachain network.
#
# Since Rialto Parachain is unusable without Rialto, this file depends on some Rialto
# network nodes.
version: '3.5'
services:
rialto-parachain-collator-alice: &rialto-parachain-collator
image: ${RIALTO_PARACHAIN_COLLATOR_IMAGE:-paritytech/rialto-parachain-collator}
entrypoint: >
/home/user/rialto-parachain-collator
--alice
--collator
--force-authoring
--parachain-id 2000
--rpc-port 9933
--ws-port 9944
--rpc-cors=all
--unsafe-rpc-external
--unsafe-ws-external
--
--execution wasm
--chain /rialto-share/rialto-relaychain-spec-raw.json
--rpc-port 9934
--ws-port 9945
volumes:
- rialto-share:/rialto-share:z
environment:
RUST_LOG: runtime=trace,rpc=trace,txpool=trace,parachain=trace,parity_ws=trace,sc_basic_authorship=trace
depends_on:
- rialto-chainspec-exporter
ports:
- "20433:9933"
- "20444:9944"
rialto-parachain-collator-bob:
<<: *rialto-parachain-collator
entrypoint: >
/home/user/rialto-parachain-collator
--bob
--collator
--force-authoring
--parachain-id 2000
--rpc-port 9933
--ws-port 9944
--rpc-cors=all
--unsafe-rpc-external
--unsafe-ws-external
--
--execution wasm
--chain /rialto-share/rialto-relaychain-spec-raw.json
--rpc-port 9934
--ws-port 9945
ports:
- "20533:9933"
- "20544:9944"
rialto-parachain-collator-charlie:
<<: *rialto-parachain-collator
entrypoint: >
/home/user/rialto-parachain-collator
--charlie
--collator
--force-authoring
--parachain-id 2000
--rpc-port 9933
--ws-port 9944
--rpc-cors=all
--unsafe-rpc-external
--unsafe-ws-external
--
--execution wasm
--chain /rialto-share/rialto-relaychain-spec-raw.json
--rpc-port 9934
--ws-port 9945
ports:
- "20633:9933"
- "20644:9944"
rialto-parachain-registrar:
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
entrypoint: /entrypoints/rialto-parachain-registrar-entrypoint.sh
volumes:
- ./networks/entrypoints:/entrypoints
- rialto-share:/rialto-share:z
environment:
RUST_LOG: bridge=trace
depends_on:
- rialto-node-alice
- rialto-parachain-collator-alice
+118
View File
@@ -0,0 +1,118 @@
# Compose file for quickly spinning up a local instance of the Rialto Substrate network.
#
# Note that the Rialto network is only used for testing, so the configuration settings you see here
# are *not* recommended for a production environment.
#
# For example, do *not* keep your `node-key` in version control, and unless you're _really_ sure you
# want to provide public access to your nodes do *not* publicly expose RPC methods.
version: '3.5'
services:
rialto-node-alice: &rialto-bridge-node
image: ${RIALTO_BRIDGE_NODE_IMAGE:-paritytech/rialto-bridge-node}
entrypoint:
- /home/user/rialto-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/rialto-node-bob/tcp/30333/p2p/12D3KooWSEpHJj29HEzgPFcRYVc5X3sEuP3KgiUoqJNCet51NiMX
- --alice
- --node-key=79cf382988364291a7968ae7825c01f68c50d679796a8983237d07fe0ccf363b
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
environment:
RUST_LOG: runtime=trace,rpc=debug,txpool=trace,runtime::bridge=trace,beefy=debug
ports:
- "9933:9933"
- "9944:9944"
rialto-node-bob:
<<: *rialto-bridge-node
entrypoint:
- /home/user/rialto-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
- --bob
- --node-key=4f9d0146dd9b7b3bf5a8089e3880023d1df92057f89e96e07bb4d8c2ead75bbd
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
ports:
- "10033:9933"
- "10044:9944"
rialto-node-charlie:
<<: *rialto-bridge-node
entrypoint:
- /home/user/rialto-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
- --charlie
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
- --prometheus-external
ports:
- "10133:9933"
- "10144:9944"
- "10615:9615"
rialto-node-dave:
<<: *rialto-bridge-node
entrypoint:
- /home/user/rialto-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
- --dave
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
ports:
- "10233:9933"
- "10244:9944"
rialto-node-eve:
<<: *rialto-bridge-node
entrypoint:
- /home/user/rialto-bridge-node
- --execution=Native
- --chain=local
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
- --eve
- --rpc-cors=all
- --enable-offchain-indexing=true
- --unsafe-rpc-external
- --unsafe-ws-external
ports:
- "10333:9933"
- "10344:9944"
rialto-chainspec-exporter:
image: ${RIALTO_BRIDGE_NODE_IMAGE:-paritytech/rialto-bridge-node}
entrypoint: /entrypoints/rialto-chainspec-exporter-entrypoint.sh
volumes:
- ./networks/entrypoints:/entrypoints
- rialto-share:/rialto-share:z
# Note: These are being overridden from the top level `monitoring` compose file.
prometheus-metrics:
volumes:
- ./networks/dashboard/prometheus/rialto-targets.yml:/etc/prometheus/targets-rialto-nodes.yml
depends_on:
- rialto-node-charlie
# we're using `/rialto-share` to expose Rialto chain spec to those who are interested. Right
# now it is Rialto Parachain collator nodes. Local + tmpfs combination allows sharing writable
# in-memory volumes, which are dropped when containers are stopped.
volumes:
rialto-share:
driver: local
driver_opts:
type: "tmpfs"
device: "tmpfs"