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

How to set peer node ID #54

Open
mamunbond07 opened this issue Jul 25, 2020 · 2 comments
Open

How to set peer node ID #54

mamunbond07 opened this issue Jul 25, 2020 · 2 comments

Comments

@mamunbond07
Copy link

Hi,
I have built the tm-load-test in master node and the copied the binary to two other slaves through SSH and SCP.
In Master I use this script:

./tm-load-test
master
--expect-slaves 2
--bind localhost:26656
-c 1 -T 10 -r 1000 -s 250
--broadcast-tx-method async
--endpoints 10.138.0.134:26656,10.138.0.122:26656

and in the two slaves(i.e., in 10.138.0.134 and 10.138.0.122) I use this script:

./tm-load-test slave --master 10.138.0.121:26656

However, they do not get connected. The master and slaves wait forever to get connected.
In master I get this message:

INFO[0000] Waiting for all slaves to connect and register ctx=master
INFO[0000] Starting WebSockets server ctx=master

In one slave I get this message:

INFO[0000] Waiting for successful connection to remote master addr="10.138.0.121:26656" ctx="slave[018da29f808f4d3e851a58a29276b405]"

In another slave I get this:

INFO[0000] Waiting for successful connection to remote master addr="10.138.0.121:26656" ctx="slave[a30613c11af84b06a37b25c15eeb7f5e]"

Could you please help me to resolve this?

@thanethomson
Copy link
Member

The --endpoints flag is meant to indicate where the Tendermint RPC endpoints are located (not the slaves).

What I'd recommend is to get it working with your Tendermint network in standalone mode first, and then try to set up a master/slave configuration if you really need it.

@mamunbond07
Copy link
Author

mamunbond07 commented Jul 28, 2020

Hi, Thanks for your response. I have tried the standalone version:

./tm-load-test -c 1 -T 10 -r 1000 -s 250 --broadcast-tx-method async --endpoints ws://localhost:26657/websocket

But the program exits immediately after showing the following output:

INFO[0000] Connecting to remote endpoints ctx=loadtest

What am I doing wrong here? Please kindly help.

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