elastomer-cli 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +10 -1
- data/lib/elastomer/cli.rb +1 -0
- data/lib/elastomer/cli/application.rb +29 -0
- data/lib/elastomer/cli/cluster.rb +5 -4
- data/lib/elastomer/cli/index.rb +11 -0
- data/lib/elastomer/cli/node.rb +7 -3
- data/lib/elastomer/cli/version.rb +1 -1
- data/script/console +4 -0
- data/test/cat_test.rb +30 -0
- data/test/cluster_test.rb +1 -0
- data/test/fixtures/vcr_cassettes/1_x.yml +85 -28
- data/test/fixtures/vcr_cassettes/default.yml +168 -19
- data/test/fixtures/vcr_cassettes/default_9201.yml +39 -0
- data/test/fixtures/vcr_cassettes/two_node_cluster.yml +142 -0
- data/test/index_test.rb +12 -0
- data/test/node_test.rb +18 -2
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc4804402a958ef07aaf1c4854976b858778ea08
|
4
|
+
data.tar.gz: 07a5c10fbd445371766246493c60ea458c007b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3908d0181de8b06d12c9461daa22422142621f321ba19131d26c76695171b50fffa5c2d17bb775711083a00a03f7cda0310984eda7db33d34513a6b6baaf8ef
|
7
|
+
data.tar.gz: 327710d6d1e0cdf9b40c4dea0b7e95498bc99e0acfc697667a8b5616300560969a7ee36d10d87c986d62fdb10bc29c9d5a4537c5441234a33667b1d470efc17b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.2.0 (2014-08-13)
|
2
|
+
- Add node name to cluster health header
|
3
|
+
- List all nodes in the cluster instead of just local
|
4
|
+
- Include hot threads on all nodes
|
5
|
+
- New commands:
|
6
|
+
- `index list`
|
7
|
+
- `cat`
|
1
8
|
## 0.1.0 (2014-06-24)
|
2
9
|
- First rubygems release
|
3
10
|
- New commands
|
data/README.md
CHANGED
@@ -18,7 +18,16 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
```
|
22
|
+
bin/elastomer help
|
23
|
+
bin/elastomer cluster health
|
24
|
+
bin/elastomer cluster settings
|
25
|
+
bin/elastomer cluster allocation (enable|disable)
|
26
|
+
bin/elastomer node hot_threads
|
27
|
+
bin/elastomer node list
|
28
|
+
bin/elastomer index list
|
29
|
+
bin/elastomer cat (indices|health|recovery...)
|
30
|
+
```
|
22
31
|
|
23
32
|
## Contributing
|
24
33
|
|
data/lib/elastomer/cli.rb
CHANGED
@@ -6,6 +6,35 @@ module Elastomer
|
|
6
6
|
subcommand "cluster", Cluster
|
7
7
|
desc "node SUBCOMMAND ...ARGS", "execute node commands"
|
8
8
|
subcommand "node", Node
|
9
|
+
desc "index SUBCOMMAND ...ARGS", "execute index commands"
|
10
|
+
subcommand "index", Index
|
11
|
+
|
12
|
+
desc "cat [COMMAND] [SCOPE]", "access the ES cat api"
|
13
|
+
long_desc <<-LONGDESC
|
14
|
+
Access the ES cat api. The cat api returns text formatted for humans.
|
15
|
+
|
16
|
+
The command 'cat help' will list the available cat commands, as
|
17
|
+
will 'cat' without a command.
|
18
|
+
|
19
|
+
'cat help <command>' will print a list of fields available from the
|
20
|
+
specified command.
|
21
|
+
|
22
|
+
See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat.html
|
23
|
+
LONGDESC
|
24
|
+
def cat(command=nil, scope=nil)
|
25
|
+
params = {:v => true}
|
26
|
+
if command == 'help'
|
27
|
+
command = nil
|
28
|
+
if !scope.empty?
|
29
|
+
command = scope
|
30
|
+
params[:help] = true
|
31
|
+
end
|
32
|
+
end
|
33
|
+
template = Addressable::Template.new("/_cat{/command}{/scope}")
|
34
|
+
path = template.expand(:command => command, :scope => scope)
|
35
|
+
response = client.request(:get, path, params).body
|
36
|
+
puts response
|
37
|
+
end
|
9
38
|
end
|
10
39
|
end
|
11
40
|
end
|
@@ -3,9 +3,10 @@ module Elastomer
|
|
3
3
|
class Cluster < Base
|
4
4
|
desc "health", "get cluster health"
|
5
5
|
def health
|
6
|
+
name = client.info["name"]
|
6
7
|
response = cluster.health
|
7
8
|
puts Terminal::Table.new(
|
8
|
-
:headings => ['CLUSTER HEALTH',
|
9
|
+
:headings => ['CLUSTER HEALTH', name],
|
9
10
|
:rows => [
|
10
11
|
['Name', response["cluster_name"]],
|
11
12
|
['Status', response["status"]],
|
@@ -42,15 +43,15 @@ module Elastomer
|
|
42
43
|
|
43
44
|
end
|
44
45
|
|
45
|
-
desc "allocation", "
|
46
|
+
desc "allocation COMMAND", "set shard allocation to COMMAND"
|
46
47
|
long_desc <<-LONGDESC
|
47
48
|
Manage cluster allocation settings.
|
48
49
|
|
49
|
-
For Elasticsearch clusters running 0.90.x, valid
|
50
|
+
For Elasticsearch clusters running 0.90.x, valid commands are:
|
50
51
|
- enable
|
51
52
|
- disable
|
52
53
|
|
53
|
-
For Elasticsearch clusters running 1.x, valid
|
54
|
+
For Elasticsearch clusters running 1.x, valid commands are:
|
54
55
|
- all (alias: enable)
|
55
56
|
- primaries
|
56
57
|
- new_primaries
|
data/lib/elastomer/cli/node.rb
CHANGED
@@ -3,13 +3,13 @@ module Elastomer
|
|
3
3
|
class Node < Base
|
4
4
|
desc "hot_threads", "get hot_threads"
|
5
5
|
def hot_threads
|
6
|
-
response =
|
6
|
+
response = all_nodes.hot_threads
|
7
7
|
puts response
|
8
8
|
end
|
9
9
|
|
10
10
|
desc "list", "list all nodes in the cluster"
|
11
11
|
def list
|
12
|
-
response =
|
12
|
+
response = all_nodes.info
|
13
13
|
puts Terminal::Table.new(
|
14
14
|
:headings => ['NAME', 'HOSTNAME', 'VERSION', 'HTTP ADDRESS', 'ATTRIBUTES'],
|
15
15
|
:rows => response["nodes"].collect do |node_id, node|
|
@@ -25,9 +25,13 @@ module Elastomer
|
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
28
|
-
def
|
28
|
+
def local_node
|
29
29
|
client.nodes('_local')
|
30
30
|
end
|
31
|
+
|
32
|
+
def all_nodes
|
33
|
+
client.nodes
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
33
37
|
end
|
data/script/console
CHANGED
data/test/cat_test.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require File.expand_path('../test_helper', __FILE__)
|
2
|
+
|
3
|
+
describe Elastomer::CLI::Application do
|
4
|
+
describe 'cat' do
|
5
|
+
it 'should include headers' do
|
6
|
+
VCR.use_cassette('1.x') do
|
7
|
+
elastomer 'cat indices'
|
8
|
+
@out.must_match /health.*index.*pri.*rep/
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'indices' do
|
13
|
+
it 'should list all indices' do
|
14
|
+
VCR.use_cassette('1.x') do
|
15
|
+
elastomer 'cat indices'
|
16
|
+
@out.must_match /test1/
|
17
|
+
@out.must_match /test2/
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should allow index scope' do
|
22
|
+
VCR.use_cassette('1.x') do
|
23
|
+
elastomer 'cat indices test1'
|
24
|
+
@out.must_match /test1/
|
25
|
+
@out.wont_match /test2/
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/test/cluster_test.rb
CHANGED
@@ -5,6 +5,7 @@ describe Elastomer::CLI::Cluster do
|
|
5
5
|
it 'should get cluster health' do
|
6
6
|
VCR.use_cassette('default') do
|
7
7
|
elastomer 'cluster health'
|
8
|
+
@out.must_match /CLUSTER HEALTH.*Bug/
|
8
9
|
@out.must_match /Name.*elasticsearch/
|
9
10
|
@out.must_match /Status.*green/
|
10
11
|
@out.must_match /Timed Out.*false/
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- "*/*"
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
@@ -51,7 +51,7 @@ http_interactions:
|
|
51
51
|
Accept-Encoding:
|
52
52
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
53
|
Accept:
|
54
|
-
-
|
54
|
+
- "*/*"
|
55
55
|
response:
|
56
56
|
status:
|
57
57
|
code: 200
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
uri: http://localhost:9200/_cluster/settings
|
84
84
|
body:
|
85
85
|
encoding: UTF-8
|
86
|
-
string:
|
86
|
+
string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"none\"}}"
|
87
87
|
headers:
|
88
88
|
User-Agent:
|
89
89
|
- Faraday v0.9.0
|
@@ -92,7 +92,7 @@ http_interactions:
|
|
92
92
|
Accept-Encoding:
|
93
93
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
94
94
|
Accept:
|
95
|
-
-
|
95
|
+
- "*/*"
|
96
96
|
response:
|
97
97
|
status:
|
98
98
|
code: 200
|
@@ -104,7 +104,7 @@ http_interactions:
|
|
104
104
|
- '106'
|
105
105
|
body:
|
106
106
|
encoding: UTF-8
|
107
|
-
string:
|
107
|
+
string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"none\"}}}},\"transient\":{}}"
|
108
108
|
http_version:
|
109
109
|
recorded_at: Wed, 18 Jun 2014 02:15:18 GMT
|
110
110
|
- request:
|
@@ -119,7 +119,7 @@ http_interactions:
|
|
119
119
|
Accept-Encoding:
|
120
120
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
121
121
|
Accept:
|
122
|
-
-
|
122
|
+
- "*/*"
|
123
123
|
response:
|
124
124
|
status:
|
125
125
|
code: 200
|
@@ -131,7 +131,7 @@ http_interactions:
|
|
131
131
|
- '172'
|
132
132
|
body:
|
133
133
|
encoding: UTF-8
|
134
|
-
string:
|
134
|
+
string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"none\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
|
135
135
|
http_version:
|
136
136
|
recorded_at: Wed, 18 Jun 2014 02:15:18 GMT
|
137
137
|
- request:
|
@@ -146,7 +146,7 @@ http_interactions:
|
|
146
146
|
Accept-Encoding:
|
147
147
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
148
148
|
Accept:
|
149
|
-
-
|
149
|
+
- "*/*"
|
150
150
|
response:
|
151
151
|
status:
|
152
152
|
code: 200
|
@@ -185,7 +185,7 @@ http_interactions:
|
|
185
185
|
Accept-Encoding:
|
186
186
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
187
187
|
Accept:
|
188
|
-
-
|
188
|
+
- "*/*"
|
189
189
|
response:
|
190
190
|
status:
|
191
191
|
code: 200
|
@@ -217,7 +217,7 @@ http_interactions:
|
|
217
217
|
uri: http://localhost:9200/_cluster/settings
|
218
218
|
body:
|
219
219
|
encoding: UTF-8
|
220
|
-
string:
|
220
|
+
string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"primaries\"}}"
|
221
221
|
headers:
|
222
222
|
User-Agent:
|
223
223
|
- Faraday v0.9.0
|
@@ -226,7 +226,7 @@ http_interactions:
|
|
226
226
|
Accept-Encoding:
|
227
227
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
228
228
|
Accept:
|
229
|
-
-
|
229
|
+
- "*/*"
|
230
230
|
response:
|
231
231
|
status:
|
232
232
|
code: 200
|
@@ -238,7 +238,7 @@ http_interactions:
|
|
238
238
|
- '111'
|
239
239
|
body:
|
240
240
|
encoding: UTF-8
|
241
|
-
string:
|
241
|
+
string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"primaries\"}}}},\"transient\":{}}"
|
242
242
|
http_version:
|
243
243
|
recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
|
244
244
|
- request:
|
@@ -253,7 +253,7 @@ http_interactions:
|
|
253
253
|
Accept-Encoding:
|
254
254
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
255
255
|
Accept:
|
256
|
-
-
|
256
|
+
- "*/*"
|
257
257
|
response:
|
258
258
|
status:
|
259
259
|
code: 200
|
@@ -265,7 +265,7 @@ http_interactions:
|
|
265
265
|
- '177'
|
266
266
|
body:
|
267
267
|
encoding: UTF-8
|
268
|
-
string:
|
268
|
+
string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"primaries\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
|
269
269
|
http_version:
|
270
270
|
recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
|
271
271
|
- request:
|
@@ -280,7 +280,7 @@ http_interactions:
|
|
280
280
|
Accept-Encoding:
|
281
281
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
282
282
|
Accept:
|
283
|
-
-
|
283
|
+
- "*/*"
|
284
284
|
response:
|
285
285
|
status:
|
286
286
|
code: 200
|
@@ -319,7 +319,7 @@ http_interactions:
|
|
319
319
|
Accept-Encoding:
|
320
320
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
321
321
|
Accept:
|
322
|
-
-
|
322
|
+
- "*/*"
|
323
323
|
response:
|
324
324
|
status:
|
325
325
|
code: 200
|
@@ -351,7 +351,7 @@ http_interactions:
|
|
351
351
|
uri: http://localhost:9200/_cluster/settings
|
352
352
|
body:
|
353
353
|
encoding: UTF-8
|
354
|
-
string:
|
354
|
+
string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"new_primaries\"}}"
|
355
355
|
headers:
|
356
356
|
User-Agent:
|
357
357
|
- Faraday v0.9.0
|
@@ -360,7 +360,7 @@ http_interactions:
|
|
360
360
|
Accept-Encoding:
|
361
361
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
362
362
|
Accept:
|
363
|
-
-
|
363
|
+
- "*/*"
|
364
364
|
response:
|
365
365
|
status:
|
366
366
|
code: 200
|
@@ -372,7 +372,7 @@ http_interactions:
|
|
372
372
|
- '115'
|
373
373
|
body:
|
374
374
|
encoding: UTF-8
|
375
|
-
string:
|
375
|
+
string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"new_primaries\"}}}},\"transient\":{}}"
|
376
376
|
http_version:
|
377
377
|
recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
|
378
378
|
- request:
|
@@ -387,7 +387,7 @@ http_interactions:
|
|
387
387
|
Accept-Encoding:
|
388
388
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
389
389
|
Accept:
|
390
|
-
-
|
390
|
+
- "*/*"
|
391
391
|
response:
|
392
392
|
status:
|
393
393
|
code: 200
|
@@ -399,7 +399,7 @@ http_interactions:
|
|
399
399
|
- '181'
|
400
400
|
body:
|
401
401
|
encoding: UTF-8
|
402
|
-
string:
|
402
|
+
string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"new_primaries\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
|
403
403
|
http_version:
|
404
404
|
recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
|
405
405
|
- request:
|
@@ -414,7 +414,7 @@ http_interactions:
|
|
414
414
|
Accept-Encoding:
|
415
415
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
416
416
|
Accept:
|
417
|
-
-
|
417
|
+
- "*/*"
|
418
418
|
response:
|
419
419
|
status:
|
420
420
|
code: 200
|
@@ -453,7 +453,7 @@ http_interactions:
|
|
453
453
|
Accept-Encoding:
|
454
454
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
455
455
|
Accept:
|
456
|
-
-
|
456
|
+
- "*/*"
|
457
457
|
response:
|
458
458
|
status:
|
459
459
|
code: 200
|
@@ -485,7 +485,7 @@ http_interactions:
|
|
485
485
|
uri: http://localhost:9200/_cluster/settings
|
486
486
|
body:
|
487
487
|
encoding: UTF-8
|
488
|
-
string:
|
488
|
+
string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"none\"}}"
|
489
489
|
headers:
|
490
490
|
User-Agent:
|
491
491
|
- Faraday v0.9.0
|
@@ -494,7 +494,7 @@ http_interactions:
|
|
494
494
|
Accept-Encoding:
|
495
495
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
496
496
|
Accept:
|
497
|
-
-
|
497
|
+
- "*/*"
|
498
498
|
response:
|
499
499
|
status:
|
500
500
|
code: 200
|
@@ -506,7 +506,7 @@ http_interactions:
|
|
506
506
|
- '106'
|
507
507
|
body:
|
508
508
|
encoding: UTF-8
|
509
|
-
string:
|
509
|
+
string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"none\"}}}},\"transient\":{}}"
|
510
510
|
http_version:
|
511
511
|
recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
|
512
512
|
- request:
|
@@ -521,7 +521,7 @@ http_interactions:
|
|
521
521
|
Accept-Encoding:
|
522
522
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
523
523
|
Accept:
|
524
|
-
-
|
524
|
+
- "*/*"
|
525
525
|
response:
|
526
526
|
status:
|
527
527
|
code: 200
|
@@ -533,7 +533,64 @@ http_interactions:
|
|
533
533
|
- '172'
|
534
534
|
body:
|
535
535
|
encoding: UTF-8
|
536
|
-
string:
|
536
|
+
string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"none\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
|
537
537
|
http_version:
|
538
538
|
recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
|
539
|
+
- request:
|
540
|
+
method: get
|
541
|
+
uri: http://localhost:9200/_cat/indices?v=true
|
542
|
+
body:
|
543
|
+
encoding: US-ASCII
|
544
|
+
string: ''
|
545
|
+
headers:
|
546
|
+
User-Agent:
|
547
|
+
- Faraday v0.9.0
|
548
|
+
Accept-Encoding:
|
549
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
550
|
+
Accept:
|
551
|
+
- "*/*"
|
552
|
+
response:
|
553
|
+
status:
|
554
|
+
code: 200
|
555
|
+
message: OK
|
556
|
+
headers:
|
557
|
+
Content-Type:
|
558
|
+
- text/plain; charset=UTF-8
|
559
|
+
Content-Length:
|
560
|
+
- '216'
|
561
|
+
body:
|
562
|
+
encoding: UTF-8
|
563
|
+
string: "health index pri rep docs.count docs.deleted store.size pri.store.size
|
564
|
+
\nyellow test2 5 1 0 0 575b 575b \nyellow
|
565
|
+
test1 5 1 0 0 575b 575b \n"
|
566
|
+
http_version:
|
567
|
+
recorded_at: Wed, 13 Aug 2014 18:25:55 GMT
|
568
|
+
- request:
|
569
|
+
method: get
|
570
|
+
uri: http://localhost:9200/_cat/indices/test1?v=true
|
571
|
+
body:
|
572
|
+
encoding: US-ASCII
|
573
|
+
string: ''
|
574
|
+
headers:
|
575
|
+
User-Agent:
|
576
|
+
- Faraday v0.9.0
|
577
|
+
Accept-Encoding:
|
578
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
579
|
+
Accept:
|
580
|
+
- "*/*"
|
581
|
+
response:
|
582
|
+
status:
|
583
|
+
code: 200
|
584
|
+
message: OK
|
585
|
+
headers:
|
586
|
+
Content-Type:
|
587
|
+
- text/plain; charset=UTF-8
|
588
|
+
Content-Length:
|
589
|
+
- '144'
|
590
|
+
body:
|
591
|
+
encoding: UTF-8
|
592
|
+
string: "health index pri rep docs.count docs.deleted store.size pri.store.size
|
593
|
+
\nyellow test1 5 1 0 0 575b 575b \n"
|
594
|
+
http_version:
|
595
|
+
recorded_at: Wed, 13 Aug 2014 22:23:10 GMT
|
539
596
|
recorded_with: VCR 2.9.2
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- "*/*"
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
@@ -24,8 +24,8 @@ http_interactions:
|
|
24
24
|
- '224'
|
25
25
|
body:
|
26
26
|
encoding: UTF-8
|
27
|
-
string:
|
28
|
-
http_version:
|
27
|
+
string: "{\"cluster_name\":\"elasticsearch\",\"status\":\"green\",\"timed_out\":false,\"number_of_nodes\":1,\"number_of_data_nodes\":1,\"active_primary_shards\":0,\"active_shards\":0,\"relocating_shards\":0,\"initializing_shards\":0,\"unassigned_shards\":0}"
|
28
|
+
http_version:
|
29
29
|
recorded_at: Sat, 07 Jun 2014 19:57:26 GMT
|
30
30
|
- request:
|
31
31
|
method: get
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
Accept-Encoding:
|
40
40
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
41
|
Accept:
|
42
|
-
-
|
42
|
+
- "*/*"
|
43
43
|
response:
|
44
44
|
status:
|
45
45
|
code: 200
|
@@ -71,7 +71,7 @@ http_interactions:
|
|
71
71
|
of 500ms) cpu usage by thread 'elasticsearch[Bug][[timer]]'\n 10/10 snapshots
|
72
72
|
sharing following 2 elements\n java.lang.Thread.sleep(Native Method)\n
|
73
73
|
\ org.elasticsearch.threadpool.ThreadPool$EstimatedTimeThread.run(ThreadPool.java:518)\n\n"
|
74
|
-
http_version:
|
74
|
+
http_version:
|
75
75
|
recorded_at: Wed, 18 Jun 2014 01:14:57 GMT
|
76
76
|
- request:
|
77
77
|
method: get
|
@@ -85,7 +85,7 @@ http_interactions:
|
|
85
85
|
Accept-Encoding:
|
86
86
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
87
|
Accept:
|
88
|
-
-
|
88
|
+
- "*/*"
|
89
89
|
response:
|
90
90
|
status:
|
91
91
|
code: 200
|
@@ -97,12 +97,13 @@ http_interactions:
|
|
97
97
|
- '2843'
|
98
98
|
body:
|
99
99
|
encoding: UTF-8
|
100
|
-
string:
|
101
|
-
HotSpot(TM) 64-Bit Server VM"
|
102
|
-
Corporation"
|
103
|
-
Cache"
|
104
|
-
|
105
|
-
|
100
|
+
string: "{\"cluster_name\":\"elasticsearch\",\"nodes\":{\"ZkvnK0A8QCOfoPeqEe-Nrw\":{\"name\":\"Bug\",\"transport_address\":\"inet[/192.168.1.185:9300]\",\"host\":\"grants-mbp-2\",\"ip\":\"192.168.1.185\",\"version\":\"1.2.1\",\"build\":\"6c95b75\",\"http_address\":\"inet[/192.168.1.185:9200]\",\"settings\":{\"path\":{\"logs\":\"/Users/grantr/scratch/elasticsearch-1.2.1/logs\",\"home\":\"/Users/grantr/scratch/elasticsearch-1.2.1\"},\"cluster\":{\"name\":\"elasticsearch\"},\"cloud\":{\"aws\":{\"region\":\"us-west-2\"}},\"foreground\":\"yes\",\"name\":\"Bug\"},\"os\":{\"refresh_interval_in_millis\":1000,\"available_processors\":8,\"cpu\":{\"vendor\":\"Intel\",\"model\":\"MacBookPro10,1\",\"mhz\":2800,\"total_cores\":8,\"total_sockets\":8,\"cores_per_socket\":16,\"cache_size_in_bytes\":256},\"mem\":{\"total_in_bytes\":17179869184},\"swap\":{\"total_in_bytes\":1073741824}},\"process\":{\"refresh_interval_in_millis\":1000,\"id\":26535,\"max_file_descriptors\":10240,\"mlockall\":false},\"jvm\":{\"pid\":26535,\"version\":\"1.7.0_55\",\"vm_name\":\"Java
|
101
|
+
HotSpot(TM) 64-Bit Server VM\",\"vm_version\":\"24.55-b03\",\"vm_vendor\":\"Oracle
|
102
|
+
Corporation\",\"start_time_in_millis\":1403052039020,\"mem\":{\"heap_init_in_bytes\":268435456,\"heap_max_in_bytes\":1037959168,\"non_heap_init_in_bytes\":24313856,\"non_heap_max_in_bytes\":136314880,\"direct_max_in_bytes\":1037959168},\"gc_collectors\":[\"ParNew\",\"ConcurrentMarkSweep\"],\"memory_pools\":[\"Code
|
103
|
+
Cache\",\"Par Eden Space\",\"Par Survivor Space\",\"CMS Old Gen\",\"CMS Perm
|
104
|
+
Gen\"]},\"thread_pool\":{\"generic\":{\"type\":\"cached\",\"keep_alive\":\"30s\"},\"index\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"200\"},\"snapshot_data\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"bench\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"get\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"snapshot\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"merge\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"suggest\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"bulk\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"50\"},\"optimize\":{\"type\":\"fixed\",\"min\":1,\"max\":1},\"warmer\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"flush\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"search\":{\"type\":\"fixed\",\"min\":24,\"max\":24,\"queue_size\":\"1k\"},\"percolate\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"management\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"refresh\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"}},\"network\":{\"refresh_interval_in_millis\":5000,\"primary_interface\":{\"address\":\"192.168.1.185\",\"name\":\"en0\",\"mac_address\":\"28:CF:E9:12:EB:D3\"}},\"transport\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9300]\",\"publish_address\":\"inet[/192.168.1.185:9300]\"},\"http\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9200]\",\"publish_address\":\"inet[/192.168.1.185:9200]\",\"max_content_length_in_bytes\":104857600},\"plugins\":[{\"name\":\"cloud-aws\",\"version\":\"2.1.1\",\"description\":\"Cloud
|
105
|
+
AWS Plugin\",\"jvm\":true,\"site\":false}]}}}"
|
106
|
+
http_version:
|
106
107
|
recorded_at: Wed, 18 Jun 2014 01:28:06 GMT
|
107
108
|
- request:
|
108
109
|
method: get
|
@@ -116,7 +117,7 @@ http_interactions:
|
|
116
117
|
Accept-Encoding:
|
117
118
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
118
119
|
Accept:
|
119
|
-
-
|
120
|
+
- "*/*"
|
120
121
|
response:
|
121
122
|
status:
|
122
123
|
code: 200
|
@@ -128,8 +129,8 @@ http_interactions:
|
|
128
129
|
- '129'
|
129
130
|
body:
|
130
131
|
encoding: UTF-8
|
131
|
-
string:
|
132
|
-
http_version:
|
132
|
+
string: "{\"persistent\":{\"indices.ttl.interval\":\"50\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
|
133
|
+
http_version:
|
133
134
|
recorded_at: Wed, 18 Jun 2014 01:48:45 GMT
|
134
135
|
- request:
|
135
136
|
method: get
|
@@ -143,7 +144,7 @@ http_interactions:
|
|
143
144
|
Accept-Encoding:
|
144
145
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
145
146
|
Accept:
|
146
|
-
-
|
147
|
+
- "*/*"
|
147
148
|
response:
|
148
149
|
status:
|
149
150
|
code: 200
|
@@ -168,7 +169,7 @@ http_interactions:
|
|
168
169
|
},
|
169
170
|
"tagline" : "You Know, for Search"
|
170
171
|
}
|
171
|
-
http_version:
|
172
|
+
http_version:
|
172
173
|
recorded_at: Wed, 18 Jun 2014 02:19:40 GMT
|
173
174
|
- request:
|
174
175
|
method: get
|
@@ -182,7 +183,7 @@ http_interactions:
|
|
182
183
|
Accept-Encoding:
|
183
184
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
184
185
|
Accept:
|
185
|
-
-
|
186
|
+
- "*/*"
|
186
187
|
response:
|
187
188
|
status:
|
188
189
|
code: 200
|
@@ -207,6 +208,154 @@ http_interactions:
|
|
207
208
|
},
|
208
209
|
"tagline" : "You Know, for Search"
|
209
210
|
}
|
210
|
-
http_version:
|
211
|
+
http_version:
|
211
212
|
recorded_at: Wed, 18 Jun 2014 02:19:40 GMT
|
213
|
+
- request:
|
214
|
+
method: get
|
215
|
+
uri: http://localhost:9200/_nodes/_all
|
216
|
+
body:
|
217
|
+
encoding: US-ASCII
|
218
|
+
string: ''
|
219
|
+
headers:
|
220
|
+
User-Agent:
|
221
|
+
- Faraday v0.9.0
|
222
|
+
Accept-Encoding:
|
223
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
224
|
+
Accept:
|
225
|
+
- "*/*"
|
226
|
+
response:
|
227
|
+
status:
|
228
|
+
code: 200
|
229
|
+
message: OK
|
230
|
+
headers:
|
231
|
+
Content-Type:
|
232
|
+
- application/json; charset=UTF-8
|
233
|
+
Content-Length:
|
234
|
+
- '2865'
|
235
|
+
body:
|
236
|
+
encoding: UTF-8
|
237
|
+
string: "{\"cluster_name\":\"elasticsearch\",\"nodes\":{\"eYh621bKQPmwPTeo9tBpdQ\":{\"name\":\"Bug\",\"transport_address\":\"inet[/192.168.1.185:9300]\",\"host\":\"grants-mbp-2\",\"ip\":\"192.168.1.185\",\"version\":\"1.2.1\",\"build\":\"6c95b75\",\"http_address\":\"inet[/192.168.1.185:9200]\",\"settings\":{\"path\":{\"logs\":\"/Users/grantr/scratch/elasticsearch-1.2.1/logs\",\"home\":\"/Users/grantr/scratch/elasticsearch-1.2.1\"},\"cluster\":{\"name\":\"elasticsearch\"},\"cloud\":{\"aws\":{\"region\":\"us-west-2\"}},\"node\":{\"name\":\"Bug\"},\"foreground\":\"yes\",\"name\":\"Bug\"},\"os\":{\"refresh_interval_in_millis\":1000,\"available_processors\":8,\"cpu\":{\"vendor\":\"Intel\",\"model\":\"MacBookPro10,1\",\"mhz\":2800,\"total_cores\":8,\"total_sockets\":8,\"cores_per_socket\":16,\"cache_size_in_bytes\":256},\"mem\":{\"total_in_bytes\":17179869184},\"swap\":{\"total_in_bytes\":2147483648}},\"process\":{\"refresh_interval_in_millis\":1000,\"id\":88039,\"max_file_descriptors\":10240,\"mlockall\":false},\"jvm\":{\"pid\":88039,\"version\":\"1.7.0_55\",\"vm_name\":\"Java
|
238
|
+
HotSpot(TM) 64-Bit Server VM\",\"vm_version\":\"24.55-b03\",\"vm_vendor\":\"Oracle
|
239
|
+
Corporation\",\"start_time_in_millis\":1407949568986,\"mem\":{\"heap_init_in_bytes\":268435456,\"heap_max_in_bytes\":1037959168,\"non_heap_init_in_bytes\":24313856,\"non_heap_max_in_bytes\":136314880,\"direct_max_in_bytes\":1037959168},\"gc_collectors\":[\"ParNew\",\"ConcurrentMarkSweep\"],\"memory_pools\":[\"Code
|
240
|
+
Cache\",\"Par Eden Space\",\"Par Survivor Space\",\"CMS Old Gen\",\"CMS Perm
|
241
|
+
Gen\"]},\"thread_pool\":{\"generic\":{\"type\":\"cached\",\"keep_alive\":\"30s\"},\"index\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"200\"},\"snapshot_data\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"bench\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"get\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"snapshot\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"merge\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"suggest\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"bulk\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"50\"},\"optimize\":{\"type\":\"fixed\",\"min\":1,\"max\":1},\"warmer\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"flush\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"search\":{\"type\":\"fixed\",\"min\":24,\"max\":24,\"queue_size\":\"1k\"},\"percolate\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"management\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"refresh\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"}},\"network\":{\"refresh_interval_in_millis\":5000,\"primary_interface\":{\"address\":\"192.168.1.185\",\"name\":\"en0\",\"mac_address\":\"28:CF:E9:12:EB:D3\"}},\"transport\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9300]\",\"publish_address\":\"inet[/192.168.1.185:9300]\"},\"http\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9200]\",\"publish_address\":\"inet[/192.168.1.185:9200]\",\"max_content_length_in_bytes\":104857600},\"plugins\":[{\"name\":\"cloud-aws\",\"version\":\"2.2.0\",\"description\":\"Cloud
|
242
|
+
AWS Plugin\",\"jvm\":true,\"site\":false}]}}}"
|
243
|
+
http_version:
|
244
|
+
recorded_at: Wed, 13 Aug 2014 17:06:59 GMT
|
245
|
+
- request:
|
246
|
+
method: get
|
247
|
+
uri: http://localhost:9200/_nodes/_all/hot_threads
|
248
|
+
body:
|
249
|
+
encoding: US-ASCII
|
250
|
+
string: ''
|
251
|
+
headers:
|
252
|
+
User-Agent:
|
253
|
+
- Faraday v0.9.0
|
254
|
+
Accept-Encoding:
|
255
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
256
|
+
Accept:
|
257
|
+
- "*/*"
|
258
|
+
response:
|
259
|
+
status:
|
260
|
+
code: 200
|
261
|
+
message: OK
|
262
|
+
headers:
|
263
|
+
Content-Type:
|
264
|
+
- text/plain; charset=UTF-8
|
265
|
+
Content-Length:
|
266
|
+
- '6106'
|
267
|
+
body:
|
268
|
+
encoding: UTF-8
|
269
|
+
string: "::: [Bug][eYh621bKQPmwPTeo9tBpdQ][grants-mbp-2][inet[/192.168.1.185:9300]]\n
|
270
|
+
\ \n 0.1% (426micros out of 500ms) cpu usage by thread 'elasticsearch[Bug][scheduler][T#1]'\n
|
271
|
+
\ 10/10 snapshots sharing following 9 elements\n sun.misc.Unsafe.park(Native
|
272
|
+
Method)\n java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)\n
|
273
|
+
\ java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)\n
|
274
|
+
\ java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)\n
|
275
|
+
\ java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)\n
|
276
|
+
\ java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)\n
|
277
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n
|
278
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
279
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 0.1% (357micros out
|
280
|
+
of 500ms) cpu usage by thread 'elasticsearch[Bug][transport_client_timer][T#1]{Hashed
|
281
|
+
wheel timer #1}'\n 10/10 snapshots sharing following 5 elements\n java.lang.Thread.sleep(Native
|
282
|
+
Method)\n org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:483)\n
|
283
|
+
\ org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:392)\n
|
284
|
+
\ org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\n
|
285
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 0.1% (294micros out
|
286
|
+
of 500ms) cpu usage by thread 'elasticsearch[Bug][transport_server_worker][T#10]{New
|
287
|
+
I/O worker #27}'\n 10/10 snapshots sharing following 15 elements\n sun.nio.ch.KQueueArrayWrapper.kevent0(Native
|
288
|
+
Method)\n sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:200)\n
|
289
|
+
\ sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)\n
|
290
|
+
\ sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)\n sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)\n
|
291
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:68)\n
|
292
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.select(AbstractNioSelector.java:415)\n
|
293
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:212)\n
|
294
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\n
|
295
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\n
|
296
|
+
\ org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\n
|
297
|
+
\ org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\n
|
298
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n
|
299
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
300
|
+
\ java.lang.Thread.run(Thread.java:745)\n\n::: [Bug][VvKpRxBgSdyeuJD-ifeJcA][grants-mbp-2][inet[/192.168.1.185:9301]]\n
|
301
|
+
\ \n 0.1% (435micros out of 500ms) cpu usage by thread 'elasticsearch[Bug][scheduler][T#1]'\n
|
302
|
+
\ 10/10 snapshots sharing following 9 elements\n sun.misc.Unsafe.park(Native
|
303
|
+
Method)\n java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)\n
|
304
|
+
\ java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)\n
|
305
|
+
\ java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)\n
|
306
|
+
\ java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)\n
|
307
|
+
\ java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)\n
|
308
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n
|
309
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
310
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 0.1% (423micros out
|
311
|
+
of 500ms) cpu usage by thread 'elasticsearch[Bug][transport_client_timer][T#1]{Hashed
|
312
|
+
wheel timer #1}'\n 10/10 snapshots sharing following 5 elements\n java.lang.Thread.sleep(Native
|
313
|
+
Method)\n org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:483)\n
|
314
|
+
\ org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:392)\n
|
315
|
+
\ org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\n
|
316
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 0.1% (315micros out
|
317
|
+
of 500ms) cpu usage by thread 'elasticsearch[Bug][transport_server_worker][T#13]{New
|
318
|
+
I/O worker #30}'\n 10/10 snapshots sharing following 15 elements\n sun.nio.ch.KQueueArrayWrapper.kevent0(Native
|
319
|
+
Method)\n sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:200)\n
|
320
|
+
\ sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)\n
|
321
|
+
\ sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)\n sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)\n
|
322
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:68)\n
|
323
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.select(AbstractNioSelector.java:415)\n
|
324
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:212)\n
|
325
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\n
|
326
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\n
|
327
|
+
\ org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\n
|
328
|
+
\ org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\n
|
329
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n
|
330
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
331
|
+
\ java.lang.Thread.run(Thread.java:745)\n\n"
|
332
|
+
http_version:
|
333
|
+
recorded_at: Wed, 13 Aug 2014 17:10:40 GMT
|
334
|
+
- request:
|
335
|
+
method: get
|
336
|
+
uri: http://localhost:9200/_cluster/state?filter_blocks=true&filter_nodes=true&filter_routing_table=true
|
337
|
+
body:
|
338
|
+
encoding: US-ASCII
|
339
|
+
string: ''
|
340
|
+
headers:
|
341
|
+
User-Agent:
|
342
|
+
- Faraday v0.9.0
|
343
|
+
Accept-Encoding:
|
344
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
345
|
+
Accept:
|
346
|
+
- "*/*"
|
347
|
+
response:
|
348
|
+
status:
|
349
|
+
code: 200
|
350
|
+
message: OK
|
351
|
+
headers:
|
352
|
+
Content-Type:
|
353
|
+
- application/json; charset=UTF-8
|
354
|
+
Content-Length:
|
355
|
+
- '5185'
|
356
|
+
body:
|
357
|
+
encoding: UTF-8
|
358
|
+
string: "{\"cluster_name\":\"elasticsearch\",\"version\":9,\"master_node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"blocks\":{},\"nodes\":{\"oH7pQrL0SByxwCa18LCV_Q\":{\"name\":\"Korg\",\"transport_address\":\"inet[Grants-MacBook-Pro-2.local/127.0.0.1:9300]\",\"attributes\":{}}},\"metadata\":{\"templates\":{},\"indices\":{\"test2\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"ExLq1IfcQeOXnEGLa5OY5g\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1030199\"}}},\"mappings\":{},\"aliases\":[]},\"test1\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"NZ5l0In9TX6jCOYnUkUcsw\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1030199\"}}},\"mappings\":{},\"aliases\":[]}}},\"routing_table\":{\"indices\":{\"test1\":{\"shards\":{\"4\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"}],\"0\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"}],\"3\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"}],\"1\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"}],\"2\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"}]}},\"test2\":{\"shards\":{\"4\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"}],\"0\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"}],\"3\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"}],\"1\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"}],\"2\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"}]}}}},\"routing_nodes\":{\"unassigned\":[{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"},{\"state\":\"UNASSIGNED\",\"primary\":false,\"node\":null,\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"}],\"nodes\":{\"oH7pQrL0SByxwCa18LCV_Q\":[{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test1\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":4,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":0,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":3,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":1,\"index\":\"test2\"},{\"state\":\"STARTED\",\"primary\":true,\"node\":\"oH7pQrL0SByxwCa18LCV_Q\",\"relocating_node\":null,\"shard\":2,\"index\":\"test2\"}]}},\"allocations\":[]}"
|
359
|
+
http_version:
|
360
|
+
recorded_at: Sat, 09 Aug 2014 02:25:03 GMT
|
212
361
|
recorded_with: VCR 2.9.2
|
@@ -27,4 +27,43 @@ http_interactions:
|
|
27
27
|
string: "{\"cluster_name\":\"elasticsearch\",\"status\":\"green\",\"timed_out\":false,\"number_of_nodes\":2,\"number_of_data_nodes\":2,\"active_primary_shards\":93,\"active_shards\":183,\"relocating_shards\":0,\"initializing_shards\":0,\"unassigned_shards\":0}"
|
28
28
|
http_version:
|
29
29
|
recorded_at: Tue, 24 Jun 2014 21:06:25 GMT
|
30
|
+
- request:
|
31
|
+
method: get
|
32
|
+
uri: http://localhost:9201/
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ''
|
36
|
+
headers:
|
37
|
+
User-Agent:
|
38
|
+
- Faraday v0.9.0
|
39
|
+
Accept-Encoding:
|
40
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
|
+
Accept:
|
42
|
+
- "*/*"
|
43
|
+
response:
|
44
|
+
status:
|
45
|
+
code: 200
|
46
|
+
message: OK
|
47
|
+
headers:
|
48
|
+
Content-Type:
|
49
|
+
- application/json; charset=UTF-8
|
50
|
+
Content-Length:
|
51
|
+
- '305'
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: |
|
55
|
+
{
|
56
|
+
"status" : 200,
|
57
|
+
"name" : "Crimson Commando",
|
58
|
+
"version" : {
|
59
|
+
"number" : "1.2.1",
|
60
|
+
"build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
|
61
|
+
"build_timestamp" : "2014-06-03T15:02:52Z",
|
62
|
+
"build_snapshot" : false,
|
63
|
+
"lucene_version" : "4.8"
|
64
|
+
},
|
65
|
+
"tagline" : "You Know, for Search"
|
66
|
+
}
|
67
|
+
http_version:
|
68
|
+
recorded_at: Wed, 13 Aug 2014 18:07:11 GMT
|
30
69
|
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,142 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:9200/_nodes/_all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=UTF-8
|
23
|
+
Content-Length:
|
24
|
+
- '5672'
|
25
|
+
body:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: "{\"cluster_name\":\"elasticsearch\",\"nodes\":{\"TUrjundLRoGGVQ2P0U44FQ\":{\"name\":\"Walter
|
28
|
+
Newell\",\"transport_address\":\"inet[/192.168.1.185:9300]\",\"host\":\"grants-mbp-2\",\"ip\":\"192.168.1.185\",\"version\":\"1.2.1\",\"build\":\"6c95b75\",\"http_address\":\"inet[/192.168.1.185:9200]\",\"settings\":{\"path\":{\"logs\":\"/Users/grantr/scratch/elasticsearch-1.2.1/logs\",\"home\":\"/Users/grantr/scratch/elasticsearch-1.2.1\"},\"cluster\":{\"name\":\"elasticsearch\"},\"cloud\":{\"aws\":{\"region\":\"us-west-2\"}},\"foreground\":\"yes\",\"name\":\"Walter
|
29
|
+
Newell\"},\"os\":{\"refresh_interval_in_millis\":1000,\"available_processors\":8,\"cpu\":{\"vendor\":\"Intel\",\"model\":\"MacBookPro10,1\",\"mhz\":2800,\"total_cores\":8,\"total_sockets\":8,\"cores_per_socket\":16,\"cache_size_in_bytes\":256},\"mem\":{\"total_in_bytes\":17179869184},\"swap\":{\"total_in_bytes\":2147483648}},\"process\":{\"refresh_interval_in_millis\":1000,\"id\":77709,\"max_file_descriptors\":10240,\"mlockall\":false},\"jvm\":{\"pid\":77709,\"version\":\"1.7.0_55\",\"vm_name\":\"Java
|
30
|
+
HotSpot(TM) 64-Bit Server VM\",\"vm_version\":\"24.55-b03\",\"vm_vendor\":\"Oracle
|
31
|
+
Corporation\",\"start_time_in_millis\":1407885817149,\"mem\":{\"heap_init_in_bytes\":268435456,\"heap_max_in_bytes\":1037959168,\"non_heap_init_in_bytes\":24313856,\"non_heap_max_in_bytes\":136314880,\"direct_max_in_bytes\":1037959168},\"gc_collectors\":[\"ParNew\",\"ConcurrentMarkSweep\"],\"memory_pools\":[\"Code
|
32
|
+
Cache\",\"Par Eden Space\",\"Par Survivor Space\",\"CMS Old Gen\",\"CMS Perm
|
33
|
+
Gen\"]},\"thread_pool\":{\"generic\":{\"type\":\"cached\",\"keep_alive\":\"30s\"},\"index\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"200\"},\"snapshot_data\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"bench\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"get\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"snapshot\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"merge\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"suggest\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"bulk\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"50\"},\"optimize\":{\"type\":\"fixed\",\"min\":1,\"max\":1},\"warmer\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"flush\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"search\":{\"type\":\"fixed\",\"min\":24,\"max\":24,\"queue_size\":\"1k\"},\"percolate\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"management\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"refresh\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"}},\"network\":{\"refresh_interval_in_millis\":5000,\"primary_interface\":{\"address\":\"192.168.1.185\",\"name\":\"en0\",\"mac_address\":\"28:CF:E9:12:EB:D3\"}},\"transport\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9300]\",\"publish_address\":\"inet[/192.168.1.185:9300]\"},\"http\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0:9200]\",\"publish_address\":\"inet[/192.168.1.185:9200]\",\"max_content_length_in_bytes\":104857600},\"plugins\":[{\"name\":\"cloud-aws\",\"version\":\"2.2.0\",\"description\":\"Cloud
|
34
|
+
AWS Plugin\",\"jvm\":true,\"site\":false}]},\"gu_Yhg0DRsyxPwnGkW--dw\":{\"name\":\"Magma\",\"transport_address\":\"inet[/192.168.1.185:9301]\",\"host\":\"grants-mbp-2\",\"ip\":\"192.168.1.185\",\"version\":\"1.2.1\",\"build\":\"6c95b75\",\"http_address\":\"inet[/192.168.1.185:9201]\",\"settings\":{\"path\":{\"logs\":\"/Users/grantr/scratch/elasticsearch-1.2.1/logs\",\"home\":\"/Users/grantr/scratch/elasticsearch-1.2.1\"},\"cluster\":{\"name\":\"elasticsearch\"},\"cloud\":{\"aws\":{\"region\":\"us-west-2\"}},\"foreground\":\"yes\",\"name\":\"Magma\"},\"os\":{\"refresh_interval_in_millis\":1000,\"available_processors\":8,\"cpu\":{\"vendor\":\"Intel\",\"model\":\"MacBookPro10,1\",\"mhz\":2800,\"total_cores\":8,\"total_sockets\":8,\"cores_per_socket\":16,\"cache_size_in_bytes\":256},\"mem\":{\"total_in_bytes\":17179869184},\"swap\":{\"total_in_bytes\":2147483648}},\"process\":{\"refresh_interval_in_millis\":1000,\"id\":87125,\"max_file_descriptors\":10240,\"mlockall\":false},\"jvm\":{\"pid\":87125,\"version\":\"1.7.0_55\",\"vm_name\":\"Java
|
35
|
+
HotSpot(TM) 64-Bit Server VM\",\"vm_version\":\"24.55-b03\",\"vm_vendor\":\"Oracle
|
36
|
+
Corporation\",\"start_time_in_millis\":1407949296120,\"mem\":{\"heap_init_in_bytes\":268435456,\"heap_max_in_bytes\":1037959168,\"non_heap_init_in_bytes\":24313856,\"non_heap_max_in_bytes\":136314880,\"direct_max_in_bytes\":1037959168},\"gc_collectors\":[\"ParNew\",\"ConcurrentMarkSweep\"],\"memory_pools\":[\"Code
|
37
|
+
Cache\",\"Par Eden Space\",\"Par Survivor Space\",\"CMS Old Gen\",\"CMS Perm
|
38
|
+
Gen\"]},\"thread_pool\":{\"generic\":{\"type\":\"cached\",\"keep_alive\":\"30s\"},\"index\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"200\"},\"snapshot_data\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"bench\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"get\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"snapshot\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"merge\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"suggest\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"bulk\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"50\"},\"optimize\":{\"type\":\"fixed\",\"min\":1,\"max\":1},\"warmer\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"flush\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"},\"search\":{\"type\":\"fixed\",\"min\":24,\"max\":24,\"queue_size\":\"1k\"},\"percolate\":{\"type\":\"fixed\",\"min\":8,\"max\":8,\"queue_size\":\"1k\"},\"management\":{\"type\":\"scaling\",\"min\":1,\"max\":5,\"keep_alive\":\"5m\"},\"refresh\":{\"type\":\"scaling\",\"min\":1,\"max\":4,\"keep_alive\":\"5m\"}},\"network\":{\"refresh_interval_in_millis\":5000,\"primary_interface\":{\"address\":\"192.168.1.185\",\"name\":\"en0\",\"mac_address\":\"28:CF:E9:12:EB:D3\"}},\"transport\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0%0:9301]\",\"publish_address\":\"inet[/192.168.1.185:9301]\"},\"http\":{\"bound_address\":\"inet[/0:0:0:0:0:0:0:0%0:9201]\",\"publish_address\":\"inet[/192.168.1.185:9201]\",\"max_content_length_in_bytes\":104857600},\"plugins\":[{\"name\":\"cloud-aws\",\"version\":\"2.2.0\",\"description\":\"Cloud
|
39
|
+
AWS Plugin\",\"jvm\":true,\"site\":false}]}}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Wed, 13 Aug 2014 17:02:25 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: http://localhost:9200/_nodes/_all/hot_threads
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ''
|
48
|
+
headers:
|
49
|
+
User-Agent:
|
50
|
+
- Faraday v0.9.0
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- "*/*"
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
Content-Type:
|
61
|
+
- text/plain; charset=UTF-8
|
62
|
+
Content-Length:
|
63
|
+
- '6870'
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: "::: [Bug][eYh621bKQPmwPTeo9tBpdQ][grants-mbp-2][inet[/192.168.1.185:9300]]\n
|
67
|
+
\ \n 2.5% (12.6ms out of 500ms) cpu usage by thread 'elasticsearch[Bug][http_server_boss][T#1]{New
|
68
|
+
I/O server boss #51}'\n 10/10 snapshots sharing following 14 elements\n
|
69
|
+
\ sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)\n sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:200)\n
|
70
|
+
\ sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)\n
|
71
|
+
\ sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)\n sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)\n
|
72
|
+
\ sun.nio.ch.SelectorImpl.select(SelectorImpl.java:102)\n org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss.select(NioServerBoss.java:163)\n
|
73
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:212)\n
|
74
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)\n
|
75
|
+
\ org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\n
|
76
|
+
\ org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\n
|
77
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n
|
78
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
79
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 0.7% (3.2ms out of
|
80
|
+
500ms) cpu usage by thread 'elasticsearch[Bug][transport_client_worker][T#10]{New
|
81
|
+
I/O worker #10}'\n 10/10 snapshots sharing following 15 elements\n sun.nio.ch.KQueueArrayWrapper.kevent0(Native
|
82
|
+
Method)\n sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:200)\n
|
83
|
+
\ sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)\n
|
84
|
+
\ sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)\n sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)\n
|
85
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:68)\n
|
86
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.select(AbstractNioSelector.java:415)\n
|
87
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:212)\n
|
88
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\n
|
89
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\n
|
90
|
+
\ org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\n
|
91
|
+
\ org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\n
|
92
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n
|
93
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
94
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 0.7% (3.2ms out of
|
95
|
+
500ms) cpu usage by thread 'elasticsearch[Bug][transport_client_worker][T#14]{New
|
96
|
+
I/O worker #14}'\n 10/10 snapshots sharing following 15 elements\n sun.nio.ch.KQueueArrayWrapper.kevent0(Native
|
97
|
+
Method)\n sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:200)\n
|
98
|
+
\ sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)\n
|
99
|
+
\ sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)\n sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)\n
|
100
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:68)\n
|
101
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.select(AbstractNioSelector.java:415)\n
|
102
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:212)\n
|
103
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)\n
|
104
|
+
\ org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)\n
|
105
|
+
\ org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)\n
|
106
|
+
\ org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)\n
|
107
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n
|
108
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
109
|
+
\ java.lang.Thread.run(Thread.java:745)\n\n::: [Crippler][EN1SPWveToyMd0JODkr4ww][grants-mbp-2][inet[/192.168.1.185:9301]]\n
|
110
|
+
\ \n 4.4% (22.1ms out of 500ms) cpu usage by thread 'elasticsearch[Crippler][refresh][T#1]'\n
|
111
|
+
\ 10/10 snapshots sharing following 9 elements\n sun.misc.Unsafe.park(Native
|
112
|
+
Method)\n java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)\n
|
113
|
+
\ java.util.concurrent.LinkedTransferQueue.awaitMatch(LinkedTransferQueue.java:731)\n
|
114
|
+
\ java.util.concurrent.LinkedTransferQueue.xfer(LinkedTransferQueue.java:644)\n
|
115
|
+
\ java.util.concurrent.LinkedTransferQueue.poll(LinkedTransferQueue.java:1145)\n
|
116
|
+
\ java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)\n
|
117
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n
|
118
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
119
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 2.9% (14.4ms out of
|
120
|
+
500ms) cpu usage by thread 'elasticsearch[Crippler][refresh][T#2]'\n 10/10
|
121
|
+
snapshots sharing following 9 elements\n sun.misc.Unsafe.park(Native
|
122
|
+
Method)\n java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)\n
|
123
|
+
\ java.util.concurrent.LinkedTransferQueue.awaitMatch(LinkedTransferQueue.java:731)\n
|
124
|
+
\ java.util.concurrent.LinkedTransferQueue.xfer(LinkedTransferQueue.java:644)\n
|
125
|
+
\ java.util.concurrent.LinkedTransferQueue.poll(LinkedTransferQueue.java:1145)\n
|
126
|
+
\ java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)\n
|
127
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n
|
128
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
129
|
+
\ java.lang.Thread.run(Thread.java:745)\n \n 2.7% (13.6ms out of
|
130
|
+
500ms) cpu usage by thread 'elasticsearch[Crippler][refresh][T#3]'\n 10/10
|
131
|
+
snapshots sharing following 9 elements\n sun.misc.Unsafe.park(Native
|
132
|
+
Method)\n java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)\n
|
133
|
+
\ java.util.concurrent.LinkedTransferQueue.awaitMatch(LinkedTransferQueue.java:731)\n
|
134
|
+
\ java.util.concurrent.LinkedTransferQueue.xfer(LinkedTransferQueue.java:644)\n
|
135
|
+
\ java.util.concurrent.LinkedTransferQueue.poll(LinkedTransferQueue.java:1145)\n
|
136
|
+
\ java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)\n
|
137
|
+
\ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n
|
138
|
+
\ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n
|
139
|
+
\ java.lang.Thread.run(Thread.java:745)\n\n"
|
140
|
+
http_version:
|
141
|
+
recorded_at: Wed, 13 Aug 2014 17:25:30 GMT
|
142
|
+
recorded_with: VCR 2.9.2
|
data/test/index_test.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path('../test_helper', __FILE__)
|
2
|
+
|
3
|
+
describe Elastomer::CLI::Index do
|
4
|
+
describe 'list' do
|
5
|
+
it 'should list indices' do
|
6
|
+
VCR.use_cassette('default') do
|
7
|
+
elastomer 'index list'
|
8
|
+
@out.must_match /test1\ntest2/m
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/test/node_test.rb
CHANGED
@@ -2,10 +2,18 @@ require File.expand_path('../test_helper', __FILE__)
|
|
2
2
|
|
3
3
|
describe Elastomer::CLI::Node do
|
4
4
|
describe 'hot_threads' do
|
5
|
-
it 'should get
|
5
|
+
it 'should get hot_threads' do
|
6
6
|
VCR.use_cassette('default') do
|
7
7
|
elastomer 'node hot_threads'
|
8
|
-
@out.must_match(
|
8
|
+
@out.must_match(/^::: \[Bug\]/)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'should get hot_threads for all nodes' do
|
13
|
+
VCR.use_cassette('two_node_cluster', :record => :new_episodes) do
|
14
|
+
elastomer 'node hot_threads'
|
15
|
+
@out.must_match /^:::.*:9300/
|
16
|
+
@out.must_match /^:::.*:9301/
|
9
17
|
end
|
10
18
|
end
|
11
19
|
end
|
@@ -20,5 +28,13 @@ describe Elastomer::CLI::Node do
|
|
20
28
|
@out.must_match "inet[/192.168.1.185:9200]"
|
21
29
|
end
|
22
30
|
end
|
31
|
+
|
32
|
+
it 'should include all nodes' do
|
33
|
+
VCR.use_cassette('two_node_cluster') do
|
34
|
+
elastomer 'node list'
|
35
|
+
@out.must_match ":9200"
|
36
|
+
@out.must_match ":9201"
|
37
|
+
end
|
38
|
+
end
|
23
39
|
end
|
24
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastomer-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Rodgers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- lib/elastomer/cli/application.rb
|
144
144
|
- lib/elastomer/cli/base.rb
|
145
145
|
- lib/elastomer/cli/cluster.rb
|
146
|
+
- lib/elastomer/cli/index.rb
|
146
147
|
- lib/elastomer/cli/node.rb
|
147
148
|
- lib/elastomer/cli/version.rb
|
148
149
|
- script/bootstrap
|
@@ -150,12 +151,15 @@ files:
|
|
150
151
|
- script/console
|
151
152
|
- script/test
|
152
153
|
- test/application_test.rb
|
154
|
+
- test/cat_test.rb
|
153
155
|
- test/cluster_test.rb
|
154
156
|
- test/fixtures/vcr_cassettes/0_20.yml
|
155
157
|
- test/fixtures/vcr_cassettes/0_90.yml
|
156
158
|
- test/fixtures/vcr_cassettes/1_x.yml
|
157
159
|
- test/fixtures/vcr_cassettes/default.yml
|
158
160
|
- test/fixtures/vcr_cassettes/default_9201.yml
|
161
|
+
- test/fixtures/vcr_cassettes/two_node_cluster.yml
|
162
|
+
- test/index_test.rb
|
159
163
|
- test/node_test.rb
|
160
164
|
- test/test_helper.rb
|
161
165
|
homepage: https://github.com/github/elastomer-cli
|
@@ -184,11 +188,14 @@ specification_version: 4
|
|
184
188
|
summary: Command line interface for elastomer
|
185
189
|
test_files:
|
186
190
|
- test/application_test.rb
|
191
|
+
- test/cat_test.rb
|
187
192
|
- test/cluster_test.rb
|
188
193
|
- test/fixtures/vcr_cassettes/0_20.yml
|
189
194
|
- test/fixtures/vcr_cassettes/0_90.yml
|
190
195
|
- test/fixtures/vcr_cassettes/1_x.yml
|
191
196
|
- test/fixtures/vcr_cassettes/default.yml
|
192
197
|
- test/fixtures/vcr_cassettes/default_9201.yml
|
198
|
+
- test/fixtures/vcr_cassettes/two_node_cluster.yml
|
199
|
+
- test/index_test.rb
|
193
200
|
- test/node_test.rb
|
194
201
|
- test/test_helper.rb
|