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

Hydrachain for 5+ nodes #80

Open
shimoji127 opened this issue Nov 1, 2016 · 0 comments
Open

Hydrachain for 5+ nodes #80

shimoji127 opened this issue Nov 1, 2016 · 0 comments

Comments

@shimoji127
Copy link

We are trying to use 5 or more servers for Hydrachain but they do not work.
Would anyone help us?

We are now working for a BlockChain project using HydraChain product.
The system works with 4 (four) servers.

Now we have increased the number of servers to 5 or larger, however, it does not work.
We now have 8 servers totally; It works fine with any combination of 4 servers,
but not 5 or more.
Let us denote the shell script for setting the servers below

Would you please let us know what is wrong and what is the correct
script to work with 5+ servers?


#!/bin/sh

node_num=$1

LOG_FILE=/home/bcadmin/log/hydrachain.log

enode=316d88516ff96ed22251f178684c6ea296d224be06e7ee301d363abd03aa9ad757b0fb647ad726e2367750e0f30c7240b010efe87a1ae9c5e9896f78e8827aff
ip=192.168.0.132
port=30303

BOOT_NODE="enode://$enode@$ip:$port"
node_no=hostname | sed 's/Block0//'
node_no=expr $node_no - 1

echo "BOOT_NODE: $BOOT_NODE"
echo "NODE_NO : $node_no"

hydrachain -d kensho --bootstrap_node $BOOT_NODE -c "jsonrpc={corsdomain: '*', listen_host: 0.0.0.0, listen_port: 8545, rpcapi: 'eth,net,web3,personal'}" --log-file $LOG_FILE runlocal --num_validators=$node_num --seed=42 --node_num=$node_no &


The results so far are:
BC 1 to 4 (4 servers) good
BC 5 to 8 (4 servers) good
BC 1 to 5 (5 servers) no good
BC 1 to 6 (6 servers) no good
BC 1 to 8 (8 servers) no good
BC 1 to 4 with No.4 intentionally crashed (essentially 3 servers) no good

If anyone provide us any suggestion or advice, you shall be most appreciated.

Thank you.

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

1 participant