Skip to content

Commit

Permalink
CAD-1894: Remove RTView
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Shevchenko committed Oct 20, 2020
1 parent 6b0c836 commit ecf249b
Show file tree
Hide file tree
Showing 65 changed files with 54 additions and 6,364 deletions.
21 changes: 0 additions & 21 deletions .buildkite/installers-nightly.yml

This file was deleted.

11 changes: 1 addition & 10 deletions README.md
Expand Up @@ -2,16 +2,7 @@

# cardano-benchmarking

This repository contains two important tools for `cardano-node` benchmarking:

1. [cardano-tx-generator](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-tx-generator)
2. [cardano-rt-view-service](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-rt-view)

The first one is a generator of transactions, both for Byron and Shelley. For more details please [see the project](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-tx-generator).

The second one is a service that allows to see the state of running `cardano-node` processes in the real time. For more details please [see the project](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-rt-view).

[![RTView screenshot](https://github.com/input-output-hk/cardano-benchmarking/blob/master/cardano-rt-view/screenshot-small.png)](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-rt-view)
This repository contains important tool for `cardano-node` benchmarking - [cardano-tx-generator](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-tx-generator). This is a generator of transactions, both for Byron and Shelley. For more details please [see the project](https://github.com/input-output-hk/cardano-benchmarking/tree/master/cardano-tx-generator).

## Preparation

Expand Down
2 changes: 1 addition & 1 deletion apply-stylish-haskell.sh
Expand Up @@ -6,7 +6,7 @@
#
# All Haskell modules will be reformatted.

ALL_DIRS_WITH_HASKELL="bm-timeline cardano-rt-view cardano-tx-generator tx-generator-shelley"
ALL_DIRS_WITH_HASKELL="bm-timeline cardano-tx-generator tx-generator-shelley"

for DIR in ${ALL_DIRS_WITH_HASKELL}; do
find "${DIR}" -type f -name '*.hs' -exec stylish-haskell -i {} \;
Expand Down
10 changes: 5 additions & 5 deletions benchmarks/cluster3nodes/benchmark.sh
Expand Up @@ -8,7 +8,7 @@ BASEDIR="$(realpath "$(dirname "$0")")"

create_new_genesis=1
clean_explorer_db=0
run_rt_view_service=1
run_rt_view=1
run_cluster_nodes=1
run_second_cluster=1
run_explorer=0
Expand All @@ -18,7 +18,7 @@ while test $# -ge 1
do case "$1" in
--no-genesis ) create_new_genesis=0;;
--explorer ) clean_explorer_db=1; run_explorer=1;;
--no-rtview ) run_rt_view_service=0;;
--no-rtview ) run_rt_view=0;;
--no-second-cluster ) run_second_cluster=0;;
--no-generator ) run_tx_generator=0;;
* ) break;; esac; shift; done
Expand Down Expand Up @@ -65,13 +65,13 @@ fi

node_mode=local

# 3) run rt-view service. If it enabled, it should be launched BEFORE
# 3) run cardano-rt-view. If it enabled, it should be launched BEFORE
# the cluster, to avoid TraceForwarderConnectionError.
if [ $run_rt_view_service -eq 1 ]; then
if [ $run_rt_view -eq 1 ]; then
node_mode=rt-view
tmux select-window -t :0
tmux new-window -n RTView \
"${TMUX_ENV_PASSTHROUGH[*]} ./run_rt_view_service.sh; $SHELL"
"${TMUX_ENV_PASSTHROUGH[*]} ./run_rt_view.sh; $SHELL"
sleep 2
fi

Expand Down
29 changes: 29 additions & 0 deletions benchmarks/cluster3nodes/run_rt_view.sh
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
# shellcheck disable=SC1090

BASEDIR="$(realpath "$(dirname "$0")")"
. "$(realpath "${BASEDIR}"/../../scripts/common.sh)"

RTVIEW_EXE=cardano-rt-view
RTVIEW_ACHIVE=$RTVIEW_EXE.tar.gz
RTVIEW_DIR=/tmp/rt-view

RTVIEW_WEB_PORT=12799
CONFIG_DIR=${BASEDIR}/configuration-$era
RTVIEW_CONFIG=${CONFIG_DIR}/configuration-rt-view.yaml

PIPES_DIR=logs/sockets
if [ ! -d $PIPES_DIR ]; then
mkdir -p $PIPES_DIR
else
rm $PIPES_DIR/*
fi

rm -rf $RTVIEW_DIR

mkdir $RTVIEW_DIR
cd $RTVIEW_DIR
wget -O $RTVIEW_ACHIVE https://hydra.iohk.io/build/4447146/download/1/cardano-rt-view-0.1.0-linux-x86_64.tar.gz
tar -xf $RTVIEW_ACHIVE
cd $BASEDIR
/$RTVIEW_DIR/$RTVIEW_EXE --config $RTVIEW_CONFIG --static /$RTVIEW_DIR/static --port $RTVIEW_WEB_PORT
16 changes: 0 additions & 16 deletions benchmarks/cluster3nodes/run_rt_view_service.sh

This file was deleted.

2 changes: 1 addition & 1 deletion benchmarks/cluster3nodes/start.sh
Expand Up @@ -14,7 +14,7 @@ BASEDIR="$(realpath "$(dirname "$0")")"
. "$(realpath "${BASEDIR}"/../../scripts/common.sh)"

prebuild 'cardano-tx-generator' || exit 1
prebuild 'cardano-rt-view-service' || exit 1
prebuild 'cardano-rt-view' || exit 1
prebuild 'cardano-node' || exit 1
#prebuild 'cardano-db-sync' || exit 1
prebuild 'cardano-cli' || exit 1
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/shelley3pools/benchmark.sh
Expand Up @@ -46,7 +46,7 @@ done

# 2 run rt-view
tmux select-window -t :0
tmux new-window -n RTview \
tmux new-window -n RTView \
"${TMUX_ENV_PASSTHROUGH[*]} bash ./run-rt-view.sh; $SHELL"
sleep 1

Expand Down
25 changes: 16 additions & 9 deletions benchmarks/shelley3pools/run-rt-view.sh
Expand Up @@ -4,18 +4,25 @@ BASEDIR=$(realpath $(dirname "$0"))
. ${BASEDIR}/../../scripts/common.sh
. ${BASEDIR}/configuration/parameters

RTVIEWCMD=${RTVIEWCMD:-"run cardano-rt-view-service"}
#"stack exec cardano-rt-view-service -- "
RTVIEW_EXE=cardano-rt-view
RTVIEW_ACHIVE=$RTVIEW_EXE.tar.gz
RTVIEW_DIR=/tmp/rt-view

RTviewPort=12799
RTviewConfig=configuration/configuration-rt-view.yaml
RTVIEW_WEB_PORT=12799
RTVIEW_CONFIG=$BASEDIR/configuration/configuration-rt-view.yaml

Sockets=logs/sockets
if [ ! -d $Sockets ]; then
mkdir -p $Sockets
PIPES_DIR=logs/sockets
if [ ! -d $PIPES_DIR ]; then
mkdir -p $PIPES_DIR
else
rm $Sockets/*
rm $PIPES_DIR/*
fi

$RTVIEWCMD --config ${RTviewConfig} --static static --port ${RTviewPort}
rm -rf $RTVIEW_DIR

mkdir $RTVIEW_DIR
cd $RTVIEW_DIR
wget -O $RTVIEW_ACHIVE https://hydra.iohk.io/build/4447146/download/1/cardano-rt-view-0.1.0-linux-x86_64.tar.gz
tar -xf $RTVIEW_ACHIVE
cd $BASEDIR
/$RTVIEW_DIR/$RTVIEW_EXE --config $RTVIEW_CONFIG --static /$RTVIEW_DIR/static --port $RTVIEW_WEB_PORT
5 changes: 0 additions & 5 deletions cabal.project
@@ -1,8 +1,6 @@
index-state: 2020-07-15T00:00:00Z

packages:
cardano-rt-view
cardano-rt-view/test/rt-view-analyzer
cardano-tx-generator
tx-generator-shelley
bm-timeline
Expand Down Expand Up @@ -52,9 +50,6 @@ test-show-details: direct

-- Then enable specific tests in this repo

package cardano-rt-view
tests: True

package cardano-tx-generator
tests: True

Expand Down
87 changes: 0 additions & 87 deletions cardano-rt-view/AppImage.md

This file was deleted.

0 comments on commit ecf249b

Please sign in to comment.