Mercurial > hg > Members > nobuyasu > jungle_benchmark
view distributed/test_cluster_get.rb @ 13:e3fe67fee803
adde hello_post.rb
author | Nobuyasu |
---|---|
date | Mon, 20 Jan 2014 17:01:44 +0900 |
parents | 223af50e60d5 |
children | d6d3b7180e6d |
line wrap: on
line source
#!/usr/bin/ruby require 'net/http' require 'uri' require 'benchmark' require '/home/mass/share/student/k128576/jungle_benchmark/distributed/get_node_list.rb' include GetNodeList nodelist = get_node_list("/home/mass/share/student/k128576/jungle_benchmark/distributed/nodes.txt") nodelist.each { |nodename| puts "connect " + nodename begin ret = Net::HTTP.get(nodename,'/showBoardMessage?bname=hello%20world',8080) rescue Errno::ECONNREFUSED puts "Failed : get request to " + nodename end }