To start all the miner and sharder containers navigate to the 0chain/docker.local/<miner/sharder|i> directories and run the start script. For example, let's run 1 sharder and 3 miners.
1.Open four different terminal tabs and in the first terminal tab navigate to the 0chain/docker.local/sharder1 directory using
1
cd 0chain/docker.local/sharder1/
Copied!
2.Run the following command for starting the sharder
1
../bin/start.b0sharder.sh
Copied!
3.Wait till the Cassandra is started and the sharder is ready to listen to requests. Here is a screenshot of sharder up and running.
4.Repeat steps 1 and 2 by changing the sharder1 directory to (sharder 2,3 etc) in new terminal tabs to start more sharders.
Notes :
Run each sharder on new terminal tab and start sharder before miners as they need the genesis magic block.
Run the command specified in step 2 by only navigating to sharder directories.