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

nix script for tx generator #28

Open
CodiePP opened this issue Dec 3, 2019 · 4 comments
Open

nix script for tx generator #28

CodiePP opened this issue Dec 3, 2019 · 4 comments

Comments

@CodiePP
Copy link
Contributor

CodiePP commented Dec 3, 2019

the tx generator is being manually started on the 'explorer' node:

$ /nix/store/b6dnbn2hs8lb70bl28kiby7wd9qapk85-cardano-node-1.0.0-exe-cardano-cli/bin/cardano-cli \
 --log-config /root/log-config.json \
 --signing-key /root/delegate-keys.000.key\
 --database-path /var/lib/cardano-node/db-shelley-dev|
 --delegation-certificate /root/delegation-cert.000.json\
 --genesis-file /nix/store/hgi34ghapaiy2zkd0zxh1ac7rg4l13hb-genesis.json\
 --genesis-hash dae7a545d0dfdeb2e7702397bc8d986c65641147f2745508d54abd44252f9a82\
 --socket-dir /run/cardano-node\
 --real-pbft\
 generate-txs\
 --num-of-txs 50000\
 --add-tx-size 100\
 --inputs-per-tx 1\
 --outputs-per-tx 1\
 --tx-fee 10000000\
 --tps 100\
 --sig-key /root/delegate-keys.000.key\
 --sig-key /root/delegate-keys.001.key\
 --sig-key /root/delegate-keys.002.key\
 --node-id 0\
 --target-node '("<ip0>",3001)'\
 --target-node '("<ip1>",3001)'\
 --target-node '("<ip2>",3001)'

can this be prepared via nix like for the startup scripts for the nodes etc. ?
(also the log-config.json)

@CodiePP
Copy link
Contributor Author

CodiePP commented Dec 6, 2019

@denisshevchenko
Copy link

denisshevchenko commented Dec 9, 2019

It should be a script available in PATH on explorer machine after deployment, for example run_tx_generator. This script should take "transaction generator"-specific CLI arguments only, for example:

[root@explorer:~]# run_tx_generator --num-of-txs 50000 --add-tx-size 100 --inputs-per-tx 1 --outputs-per-tx 1 --tx-fee 10000000 --tps 100

All other CLI arguments should be taken from deployment configuration. As a result, this script starts full cardano-cli generate-txs command.

@denisshevchenko
Copy link

Please see a draft in dev@dev-deployer:~/remote-dev-cluster/run_tx_generator.sh.

@denisshevchenko
Copy link

Nix-draft: IntersectMBO/cardano-node@107e186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants