Mercurial > hg > Members > nobuyasu > jungle_benchmark
comparison distributed/nodes_stress_write_cassandra.rb @ 15:6e7a01afaaf8
Modified prrogram
author | Nobuyasu |
---|---|
date | Thu, 23 Jan 2014 05:52:31 +0900 |
parents | 77a01d4fca04 |
children | 704bcc773b96 |
comparison
equal
deleted
inserted
replaced
14:77a01d4fca04 | 15:6e7a01afaaf8 |
---|---|
11 schedule = ARGV[0].to_i | 11 schedule = ARGV[0].to_i |
12 time = Time.now.to_i | 12 time = Time.now.to_i |
13 sleepTime = schedule - time | 13 sleepTime = schedule - time |
14 sleep(sleepTime) | 14 sleep(sleepTime) |
15 | 15 |
16 UUID="13814000-1dd2-11b2-b1e0-0050568b0070" | 16 UUID="13814000-1dd2-11b2-af85-0050568b0070" |
17 | 17 |
18 nodeList = get_node_list("/home/mass/share/student/k128576/jungle_benchmark/distributed/nodes.txt") | 18 nodeList = get_node_list("/home/mass/share/student/k128576/jungle_benchmark/distributed/nodes.txt") |
19 urlList = get_url_list(nodeList, ':8080/editMessage?bname=hello%20world&uuid='+UUID); | 19 urlList = get_url_list(nodeList, ':8080/editMessage?bname=hello%20world&uuid='+UUID); |
20 hostname = `hostname` | 20 hostname = `hostname` |
21 if /[0-9]+/ =~ hostname then | 21 if /[0-9]+/ =~ hostname then |