3 # This script runs Chord with the specified number of nodes.
4 # Usage: ./run_chord nb_nodes
5 # The platform file is chosen as the smallest platform of the files
6 # examples/platforms/cluster_with_*_hosts.xml that contains enough nodes.
8 # check arguments number
10 echo "Usage: ./run_chord nb_nodes"
14 # pick an appropriate platform file
15 if [ $1 -le 100 ]; then
18 if [ $1 -le 1000 ]; then
21 if [ $1 -le 10000 ]; then
24 if [ $1 -le 100000 ]; then
27 if [ $1 -le 300000 ]; then
30 echo "Cannot find a platform file large enough."
38 # set up the deployment file
40 head -n $nb_lines chord300000.xml > tmp_depl.xml
41 echo "</platform>" >> tmp_depl.xml
44 ./chord -nb_bits=24 -timeout=50 "../../platforms/cluster_with_${platform}_hosts.xml" tmp_depl.xml