mu 5.7.2.7 → 5.7.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mu.rb +1 -0
- data/lib/mu/command/cmd_appid.rb +520 -512
- data/lib/mu/command/cmd_runscale.rb +604 -578
- data/rdoc/Mu/Command/Cmd_appid.html +271 -272
- data/rdoc/VERSION.html +1 -1
- data/rdoc/created.rid +4 -4
- data/rdoc/lib/mu/api/scale_rb.html +1 -1
- data/rdoc/lib/mu/command/cmd_appid_rb.html +1 -1
- data/test/data/app_id_stats.csv +1 -1
- data/test/data/app_id_status.json +50 -50
- data/test/data/scale.json +3 -3
- metadata +5 -41
data/rdoc/VERSION.html
CHANGED
data/rdoc/created.rid
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
|
1
|
+
Mon, 21 Mar 2011 14:55:59 -0700
|
2
2
|
./bin/mu Fri, 07 Jan 2011 09:42:39 -0800
|
3
3
|
./Gemfile Tue, 08 Mar 2011 16:01:27 -0800
|
4
4
|
./lib/mu/api/ddt.rb Fri, 04 Mar 2011 10:06:04 -0800
|
5
5
|
./lib/mu/api/homepage.rb Fri, 04 Mar 2011 10:06:04 -0800
|
6
6
|
./lib/mu/api/muapi.rb Fri, 04 Mar 2011 10:06:04 -0800
|
7
7
|
./lib/mu/api/netconfig.rb Fri, 04 Mar 2011 10:06:04 -0800
|
8
|
-
./lib/mu/api/scale.rb Tue, 08 Mar 2011
|
8
|
+
./lib/mu/api/scale.rb Tue, 08 Mar 2011 17:53:59 -0800
|
9
9
|
./lib/mu/api/system.rb Fri, 04 Mar 2011 10:06:04 -0800
|
10
10
|
./lib/mu/client.rb Fri, 04 Mar 2011 10:06:04 -0800
|
11
11
|
./lib/mu/command/api.rb Fri, 04 Mar 2011 10:06:04 -0800
|
12
|
-
./lib/mu/command/cmd_appid.rb
|
12
|
+
./lib/mu/command/cmd_appid.rb Mon, 21 Mar 2011 14:52:19 -0700
|
13
13
|
./lib/mu/command/cmd_cli.rb Fri, 04 Mar 2011 10:06:04 -0800
|
14
14
|
./lib/mu/command/cmd_ddt.rb Fri, 04 Mar 2011 10:06:04 -0800
|
15
15
|
./lib/mu/command/cmd_homepage.rb Fri, 04 Mar 2011 10:06:04 -0800
|
@@ -33,4 +33,4 @@ Tue, 08 Mar 2011 16:56:49 -0800
|
|
33
33
|
./README.rdoc Fri, 04 Mar 2011 10:06:06 -0800
|
34
34
|
./test/helper.rb Fri, 07 Jan 2011 09:42:39 -0800
|
35
35
|
./test/tc_test_mu.rb Tue, 08 Mar 2011 16:54:20 -0800
|
36
|
-
./VERSION
|
36
|
+
./VERSION Tue, 08 Mar 2011 17:43:50 -0800
|
data/test/data/app_id_stats.csv
CHANGED
@@ -1 +1 @@
|
|
1
|
-
data_cgi.msl,
|
1
|
+
data_cgi.msl,32082,0,0,13461213.0,32127,13217784.0,32082,13226436.0,32103,13452833.0,32107
|
@@ -1,70 +1,70 @@
|
|
1
1
|
{
|
2
|
-
"timestamp":
|
3
|
-
"_rev": "4-
|
2
|
+
"timestamp": 1300835052,
|
3
|
+
"_rev": "4-f1c34c5dbdfc0c10da0702bb6fb9382d",
|
4
4
|
"_id": "bots_all",
|
5
5
|
"status": {
|
6
6
|
"okay": true,
|
7
7
|
"running": false,
|
8
8
|
"statistics": {
|
9
9
|
"summary": {
|
10
|
-
"duration": 11.
|
10
|
+
"duration": 11.119128,
|
11
11
|
"client": {
|
12
12
|
"tx": {
|
13
|
-
"msgs":
|
14
|
-
"bytes":
|
13
|
+
"msgs": 32127,
|
14
|
+
"bytes": 13461213.0
|
15
15
|
},
|
16
16
|
"rx": {
|
17
|
-
"msgs":
|
18
|
-
"bytes":
|
17
|
+
"msgs": 32082,
|
18
|
+
"bytes": 13217784.0
|
19
19
|
}
|
20
20
|
},
|
21
21
|
"asserts": {
|
22
|
-
"executed":
|
22
|
+
"executed": 64164,
|
23
23
|
"errors": 0,
|
24
24
|
"failed": 0
|
25
25
|
},
|
26
26
|
"server": {
|
27
27
|
"tx": {
|
28
|
-
"msgs":
|
29
|
-
"bytes":
|
28
|
+
"msgs": 32103,
|
29
|
+
"bytes": 13226436.0
|
30
30
|
},
|
31
31
|
"rx": {
|
32
|
-
"msgs":
|
33
|
-
"bytes":
|
32
|
+
"msgs": 32107,
|
33
|
+
"bytes": 13452833.0
|
34
34
|
}
|
35
35
|
},
|
36
36
|
"instances": {
|
37
37
|
"timeouts": 0,
|
38
|
-
"total":
|
39
|
-
"executed":
|
40
|
-
"errors":
|
38
|
+
"total": 32082,
|
39
|
+
"executed": 32082,
|
40
|
+
"errors": 0
|
41
41
|
}
|
42
42
|
},
|
43
43
|
"scenarios": [
|
44
44
|
{
|
45
45
|
"duration": {
|
46
|
-
"min": 0.
|
47
|
-
"max": 0.
|
48
|
-
"avg": 0.
|
46
|
+
"min": 0.007281,
|
47
|
+
"max": 0.022727,
|
48
|
+
"avg": 0.014803
|
49
49
|
},
|
50
50
|
"client": {
|
51
51
|
"tx": {
|
52
|
-
"msgs":
|
53
|
-
"bytes":
|
52
|
+
"msgs": 32127,
|
53
|
+
"bytes": 13461213.0
|
54
54
|
},
|
55
55
|
"rx": {
|
56
|
-
"msgs":
|
57
|
-
"bytes":
|
56
|
+
"msgs": 32082,
|
57
|
+
"bytes": 13217784.0
|
58
58
|
}
|
59
59
|
},
|
60
60
|
"asserts": [
|
61
61
|
{
|
62
|
-
"executed":
|
62
|
+
"executed": 32082,
|
63
63
|
"errors": 0,
|
64
64
|
"failed": 0
|
65
65
|
},
|
66
66
|
{
|
67
|
-
"executed":
|
67
|
+
"executed": 32082,
|
68
68
|
"errors": 0,
|
69
69
|
"failed": 0
|
70
70
|
}
|
@@ -73,66 +73,66 @@
|
|
73
73
|
"volume": 0,
|
74
74
|
"server": {
|
75
75
|
"tx": {
|
76
|
-
"msgs":
|
77
|
-
"bytes":
|
76
|
+
"msgs": 32103,
|
77
|
+
"bytes": 13226436.0
|
78
78
|
},
|
79
79
|
"rx": {
|
80
|
-
"msgs":
|
81
|
-
"bytes":
|
80
|
+
"msgs": 32107,
|
81
|
+
"bytes": 13452833.0
|
82
82
|
}
|
83
83
|
},
|
84
84
|
"steps": [
|
85
85
|
{
|
86
86
|
"timeouts": 0,
|
87
|
-
"executed":
|
87
|
+
"executed": 32150,
|
88
88
|
"duration": {
|
89
|
-
"min": 0.
|
90
|
-
"max": 0.
|
91
|
-
"avg": 0.
|
89
|
+
"min": 0.003424,
|
90
|
+
"max": 0.008729,
|
91
|
+
"avg": 0.005646
|
92
92
|
},
|
93
|
-
"errors":
|
93
|
+
"errors": 0,
|
94
94
|
"skipped": 0
|
95
95
|
},
|
96
96
|
{
|
97
97
|
"timeouts": 0,
|
98
|
-
"executed":
|
98
|
+
"executed": 32127,
|
99
99
|
"duration": {
|
100
100
|
"min": 0.0,
|
101
|
-
"max": 0.
|
102
|
-
"avg": 0.
|
101
|
+
"max": 0.006354,
|
102
|
+
"avg": 0.002695
|
103
103
|
},
|
104
104
|
"errors": 0,
|
105
105
|
"skipped": 0
|
106
106
|
},
|
107
107
|
{
|
108
108
|
"timeouts": 0,
|
109
|
-
"executed":
|
109
|
+
"executed": 32107,
|
110
110
|
"duration": {
|
111
|
-
"min":
|
112
|
-
"max": 0.
|
113
|
-
"avg": 0.
|
111
|
+
"min": 9.2e-05,
|
112
|
+
"max": 0.003784,
|
113
|
+
"avg": 0.001594
|
114
114
|
},
|
115
115
|
"errors": 0,
|
116
116
|
"skipped": 0
|
117
117
|
},
|
118
118
|
{
|
119
119
|
"timeouts": 0,
|
120
|
-
"executed":
|
120
|
+
"executed": 32103,
|
121
121
|
"duration": {
|
122
122
|
"min": 0.0,
|
123
|
-
"max": 0.
|
124
|
-
"avg": 0.
|
123
|
+
"max": 0.00557,
|
124
|
+
"avg": 0.003233
|
125
125
|
},
|
126
126
|
"errors": 0,
|
127
127
|
"skipped": 0
|
128
128
|
},
|
129
129
|
{
|
130
130
|
"timeouts": 0,
|
131
|
-
"executed":
|
131
|
+
"executed": 32082,
|
132
132
|
"duration": {
|
133
133
|
"min": 0.0,
|
134
|
-
"max": 0.
|
135
|
-
"avg": 0.
|
134
|
+
"max": 0.004207,
|
135
|
+
"avg": 0.002002
|
136
136
|
},
|
137
137
|
"errors": 0,
|
138
138
|
"skipped": 0
|
@@ -140,9 +140,9 @@
|
|
140
140
|
],
|
141
141
|
"instances": {
|
142
142
|
"timeouts": 0,
|
143
|
-
"total":
|
144
|
-
"executed":
|
145
|
-
"errors":
|
143
|
+
"total": 32082,
|
144
|
+
"executed": 32082,
|
145
|
+
"errors": 0
|
146
146
|
}
|
147
147
|
}
|
148
148
|
]
|
@@ -152,5 +152,5 @@
|
|
152
152
|
"label": "all",
|
153
153
|
"group": "active",
|
154
154
|
"type": "status",
|
155
|
-
"filename": "
|
155
|
+
"filename": "data_cgi.msl"
|
156
156
|
}
|
data/test/data/scale.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"hosts": {
|
3
|
-
"host_0": "b1/*,10000
|
4
|
-
"host_1": "b2
|
3
|
+
"host_0": "b1/*,10000",
|
4
|
+
"host_1": "b2/*,1"
|
5
5
|
},
|
6
6
|
"timeout": 5000,
|
7
7
|
"delay": 0,
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"limitConcurrency": false,
|
11
11
|
"vectorAddressPairing": false,
|
12
12
|
"musl": "scenario(name: \"data_cgi\") {\n hosts {\n # a2/192.168.40.217|\n &host_0 = host(type: v4)\n # 192.168.40.9|\n &host_1 = host(type: v4)\n }\n\n options {\n # data_length|data length\n $data_length = \"3\"\n # data|data\n $data = \"123\"\n # data_type|data type\n $data_type = \"numbers\"\n # url|url\n $url = \"/whats_my_data.cgi?data\"\n # http_port|http_port\n $http_port = \"80\"\n }\n\n steps {\n HTTP_80 = tcp(timeout: 10000, src: &host_0, dst: &host_1, dst_port: $http_port)\n\n # GET /whats_my_data.cgi?data=123 HTTP/1.1\n HTTP_GET_Client_Send = HTTP_80.client_send {\n # get|GET /whats_my_data.cgi?data=123 HTTP/1.1\\r\\n\n line [\n dsv(delimiter: \" \") [\n # request_method|Request Method: GET\n \"GET\"\n dsv(delimiter: \"=\") [\n $url\n $data\n ]\n \"HTTP/1.1\"\n ]\n ]\n # host|Host: dell-9\\r\\n\n \"Host: dell-9\\r\\n\"\n # user_agent|User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\\r\\n\n \"User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\\r\\n\"\n # accept|Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\\r\\n\n \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\\r\\n\"\n # accept_language|Accept-Language: en-us,en;q=0.5\\r\\n\n \"Accept-Language: en-us,en;q=0.5\\r\\n\"\n # accept_encoding|Accept-Encoding: gzip,deflate\\r\\n\n \"Accept-Encoding: gzip,deflate\\r\\n\"\n # accept_charset|Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\r\\n\n \"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\r\\n\"\n # keep_alive|Keep-Alive: 300\\r\\n\n \"Keep-Alive: 300\\r\\n\"\n # connection|Connection: keep-alive\\r\\n\n \"Connection: keep-alive\\r\\n\"\n # cache_control|Cache-Control: max-age=0\\r\\n\n \"Cache-Control: max-age=0\\r\\n\"\n # |\\r\\n\n \"\\r\\n\"\n }\n\n # GET /whats_my_data.cgi?data=123 HTTP/1.1\n HTTP_GET_Server_Receive = HTTP_GET_Client_Send.server_receive\n\n # HTTP/1.1 200 OK (text/html)\n HTTP_Server_Send = HTTP_80.server_send {\n # http|HTTP/1.1 200 OK\\r\\n\n \"HTTP/1.1 200 OK\\r\\n\"\n # date|Date: Wed, 16 Sep 2009 00:09:17 GMT\\r\\n\n \"Date: Wed, 16 Sep 2009 00:09:17 GMT\\r\\n\"\n # server|Server: Apache/2.0.52 (CentOS)\\r\\n\n \"Server: Apache/2.0.52 (CentOS)\\r\\n\"\n # content_length_header|Content-Length: 243\\r\\n\n \"Content-Length: 243\\r\\n\"\n # connection|Connection: close\\r\\n\n \"Connection: close\\r\\n\"\n # content_type|Content-Type: text/html; charset=UTF-8\\r\\n\n \"Content-Type: text/html; charset=UTF-8\\r\\n\"\n # |\\r\\n\n \"\\r\\n\"\n \"<\"\n \"<!DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\"><HTML><HEAD><TITLE>What\\'s My Data?</TITLE></HEAD><BODY><H1>Data has been analyzed</H1><P>Input: 123</P><P>Length: 3</P><P>Type: numbers</P></BODY></HTML>\"\n }\n\n # HTTP/1.1 200 OK (text/html)\n HTTP_Client_Receive = HTTP_Server_Send.client_receive {\n assertions {\n # data type check\n string(/Type: (.+?)</:1) == $data_type\n # data length check\n string(/Length: (.+?)</:1) >= $data_length\n }\n }\n }\n}",
|
13
|
-
"csv": "
|
13
|
+
"csv": "",
|
14
14
|
"pattern": {
|
15
15
|
"iterations": 1,
|
16
16
|
"intervals": [
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 5
|
7
|
-
- 7
|
8
|
-
- 2
|
9
|
-
- 7
|
10
|
-
version: 5.7.2.7
|
4
|
+
prerelease:
|
5
|
+
version: 5.7.8
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- pcapr
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-22 00:00:00 -07:00
|
19
14
|
default_executable: mu
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -25,10 +20,6 @@ dependencies:
|
|
25
20
|
requirements:
|
26
21
|
- - ~>
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 0
|
31
|
-
- 0
|
32
23
|
version: 1.0.0
|
33
24
|
type: :development
|
34
25
|
prerelease: false
|
@@ -40,10 +31,6 @@ dependencies:
|
|
40
31
|
requirements:
|
41
32
|
- - ~>
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 5
|
46
|
-
- 1
|
47
34
|
version: 1.5.1
|
48
35
|
type: :development
|
49
36
|
prerelease: false
|
@@ -55,8 +42,6 @@ dependencies:
|
|
55
42
|
requirements:
|
56
43
|
- - ">="
|
57
44
|
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 0
|
60
45
|
version: "0"
|
61
46
|
type: :development
|
62
47
|
prerelease: false
|
@@ -68,10 +53,6 @@ dependencies:
|
|
68
53
|
requirements:
|
69
54
|
- - ">="
|
70
55
|
- !ruby/object:Gem::Version
|
71
|
-
segments:
|
72
|
-
- 1
|
73
|
-
- 4
|
74
|
-
- 4
|
75
56
|
version: 1.4.4
|
76
57
|
type: :runtime
|
77
58
|
prerelease: false
|
@@ -83,10 +64,6 @@ dependencies:
|
|
83
64
|
requirements:
|
84
65
|
- - ">="
|
85
66
|
- !ruby/object:Gem::Version
|
86
|
-
segments:
|
87
|
-
- 1
|
88
|
-
- 6
|
89
|
-
- 1
|
90
67
|
version: 1.6.1
|
91
68
|
type: :runtime
|
92
69
|
prerelease: false
|
@@ -98,9 +75,6 @@ dependencies:
|
|
98
75
|
requirements:
|
99
76
|
- - ">="
|
100
77
|
- !ruby/object:Gem::Version
|
101
|
-
segments:
|
102
|
-
- 1
|
103
|
-
- 16
|
104
78
|
version: "1.16"
|
105
79
|
type: :runtime
|
106
80
|
prerelease: false
|
@@ -112,10 +86,6 @@ dependencies:
|
|
112
86
|
requirements:
|
113
87
|
- - ">="
|
114
88
|
- !ruby/object:Gem::Version
|
115
|
-
segments:
|
116
|
-
- 1
|
117
|
-
- 4
|
118
|
-
- 6
|
119
89
|
version: 1.4.6
|
120
90
|
type: :runtime
|
121
91
|
prerelease: false
|
@@ -127,10 +97,6 @@ dependencies:
|
|
127
97
|
requirements:
|
128
98
|
- - ">="
|
129
99
|
- !ruby/object:Gem::Version
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
- 1
|
133
|
-
- 1
|
134
100
|
version: 0.1.1
|
135
101
|
type: :runtime
|
136
102
|
prerelease: false
|
@@ -374,7 +340,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
374
340
|
requirements:
|
375
341
|
- - ">="
|
376
342
|
- !ruby/object:Gem::Version
|
377
|
-
hash: -
|
343
|
+
hash: -703980895947094395
|
378
344
|
segments:
|
379
345
|
- 0
|
380
346
|
version: "0"
|
@@ -383,13 +349,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
383
349
|
requirements:
|
384
350
|
- - ">="
|
385
351
|
- !ruby/object:Gem::Version
|
386
|
-
segments:
|
387
|
-
- 0
|
388
352
|
version: "0"
|
389
353
|
requirements: []
|
390
354
|
|
391
355
|
rubyforge_project:
|
392
|
-
rubygems_version: 1.
|
356
|
+
rubygems_version: 1.6.2
|
393
357
|
signing_key:
|
394
358
|
specification_version: 3
|
395
359
|
summary: general purpose mu gem
|