elasticsearch-drain 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:9250/_cluster/health?timeout=60&wait_for_status=green
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
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
+ - '317'
25
+ body:
26
+ encoding: UTF-8
27
+ string: '{"cluster_name":"elasticsearch_test","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,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0}'
28
+ http_version:
29
+ recorded_at: Mon, 26 Oct 2015 18:01:36 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://localhost:9250/_cluster/health?timeout=60&wait_for_status=green
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ User-Agent:
38
+ - Faraday v0.9.2
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
+ - '317'
52
+ body:
53
+ encoding: UTF-8
54
+ string: '{"cluster_name":"elasticsearch_test","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,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0}'
55
+ http_version:
56
+ recorded_at: Mon, 26 Oct 2015 18:01:36 GMT
57
+ - request:
58
+ method: get
59
+ uri: http://localhost:9250/_cluster/health?timeout=60&wait_for_relocating_shards=3&wait_for_status=green
60
+ body:
61
+ encoding: US-ASCII
62
+ string: ''
63
+ headers:
64
+ User-Agent:
65
+ - Faraday v0.9.2
66
+ Accept-Encoding:
67
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
68
+ Accept:
69
+ - "*/*"
70
+ response:
71
+ status:
72
+ code: 200
73
+ message: OK
74
+ headers:
75
+ Content-Type:
76
+ - application/json; charset=UTF-8
77
+ Content-Length:
78
+ - '317'
79
+ body:
80
+ encoding: UTF-8
81
+ string: '{"cluster_name":"elasticsearch_test","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,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0}'
82
+ http_version:
83
+ recorded_at: Mon, 26 Oct 2015 18:03:06 GMT
84
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:9250/_cluster/health?timeout=60&wait_for_status=green
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
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
+ - '317'
25
+ body:
26
+ encoding: UTF-8
27
+ string: '{"cluster_name":"elasticsearch_test","status":"yellow","timed_out":true,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0}'
28
+ http_version:
29
+ recorded_at: Wed, 28 Oct 2015 15:21:51 GMT
30
+ - request:
31
+ method: get
32
+ uri: http://localhost:9250/_cluster/health?timeout=60&wait_for_status=green
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers:
37
+ User-Agent:
38
+ - Faraday v0.9.2
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
+ - '317'
52
+ body:
53
+ encoding: UTF-8
54
+ string: '{"cluster_name":"elasticsearch_test","status":"yellow","timed_out":true,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":5,"active_shards":5,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":5,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0}'
55
+ http_version:
56
+ recorded_at: Wed, 28 Oct 2015 15:38:11 GMT
57
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,202 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:9250/_nodes/_all
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
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
+ - '3486'
25
+ body:
26
+ encoding: UTF-8
27
+ string: '{"cluster_name":"elasticsearch_test","nodes":{"JwntYesBTV29Yv6TbdTMAg":{"name":"node-1","transport_address":"inet[/10.1.100.57:9300]","host":"cam-mbp-2852.cam.rapid7.com","ip":"10.1.100.57","version":"1.7.2","build":"e43676b","http_address":"inet[/10.1.100.57:9250]","attributes":{"bench":"true","test":"true"},"settings":{"node":{"bench":"true","test":"true","name":"node-1"},"client":{"type":"node"},"http":{"port":"9250"},"name":"node-1","logger":{"level":"DEBUG"},"path":{"work":"/tmp","data":"/tmp","home":"/Users/athompson/code/personal/elasticsearch-drain/tmp/elasticsearch-1.7.2","logs":"/Users/athompson/code/personal/elasticsearch-drain/tmp/elasticsearch-1.7.2/logs"},"config":{"ignore_system_properties":"true"},"cluster":{"routing":{"allocation":{"disk":{"threshold_enabled":"false"}}},"name":"elasticsearch_test"},"script":{"disable_dynamic":"false"},"discovery":{"zen":{"ping":{"multicast":{"enabled":"true"}}}},"foreground":"yes","network":{"host":"0.0.0.0"}},"os":{"refresh_interval_in_millis":1000,"available_processors":8,"cpu":{"vendor":"Intel","model":"MacBookPro11,3","mhz":2500,"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":34353,"max_file_descriptors":10240,"mlockall":false},"jvm":{"pid":34353,"version":"1.7.0_79","vm_name":"Java
28
+ HotSpot(TM) 64-Bit Server VM","vm_version":"24.79-b02","vm_vendor":"Oracle
29
+ Corporation","start_time_in_millis":1445882456057,"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
30
+ Cache","Par Eden Space","Par Survivor Space","CMS Old Gen","CMS Perm Gen"]},"thread_pool":{"generic":{"type":"cached","keep_alive":"30s","queue_size":-1},"index":{"type":"fixed","min":8,"max":8,"queue_size":"200"},"fetch_shard_store":{"type":"scaling","min":1,"max":16,"keep_alive":"5m","queue_size":-1},"get":{"type":"fixed","min":8,"max":8,"queue_size":"1k"},"snapshot":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"merge":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"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,"queue_size":-1},"warmer":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"flush":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"search":{"type":"fixed","min":13,"max":13,"queue_size":"1k"},"fetch_shard_started":{"type":"scaling","min":1,"max":16,"keep_alive":"5m","queue_size":-1},"listener":{"type":"fixed","min":4,"max":4,"queue_size":-1},"percolate":{"type":"fixed","min":8,"max":8,"queue_size":"1k"},"management":{"type":"scaling","min":1,"max":5,"keep_alive":"5m","queue_size":-1},"refresh":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1}},"network":{"refresh_interval_in_millis":5000,"primary_interface":{"address":"10.1.100.57","name":"en5","mac_address":"14:B1:C8:00:44:3D"}},"transport":{"bound_address":"inet[/0:0:0:0:0:0:0:0:9300]","publish_address":"inet[/10.1.100.57:9300]","profiles":{}},"http":{"bound_address":"inet[/0:0:0:0:0:0:0:0:9250]","publish_address":"inet[/10.1.100.57:9250]","max_content_length_in_bytes":104857600},"plugins":[]}}}'
31
+ http_version:
32
+ recorded_at: Mon, 26 Oct 2015 18:13:04 GMT
33
+ - request:
34
+ method: get
35
+ uri: http://localhost:9250/_nodes/stats/_all
36
+ body:
37
+ encoding: US-ASCII
38
+ string: ''
39
+ headers:
40
+ User-Agent:
41
+ - Faraday v0.9.2
42
+ Accept-Encoding:
43
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
44
+ Accept:
45
+ - "*/*"
46
+ response:
47
+ status:
48
+ code: 200
49
+ message: OK
50
+ headers:
51
+ Content-Type:
52
+ - application/json; charset=UTF-8
53
+ Content-Length:
54
+ - '6371'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"cluster_name":"elasticsearch_test","nodes":{"JwntYesBTV29Yv6TbdTMAg":{"timestamp":1445883184926,"name":"node-1","transport_address":"inet[/10.1.100.57:9300]","host":"cam-mbp-2852.cam.rapid7.com","ip":["inet[/10.1.100.57:9300]","NONE"],"attributes":{"bench":"true","test":"true"},"indices":{"docs":{"count":0,"deleted":0},"store":{"size_in_bytes":0,"throttle_time_in_millis":0},"indexing":{"index_total":0,"index_time_in_millis":0,"index_current":0,"delete_total":0,"delete_time_in_millis":0,"delete_current":0,"noop_update_total":0,"is_throttled":false,"throttle_time_in_millis":0},"get":{"total":0,"time_in_millis":0,"exists_total":0,"exists_time_in_millis":0,"missing_total":0,"missing_time_in_millis":0,"current":0},"search":{"open_contexts":0,"query_total":0,"query_time_in_millis":0,"query_current":0,"fetch_total":0,"fetch_time_in_millis":0,"fetch_current":0},"merges":{"current":0,"current_docs":0,"current_size_in_bytes":0,"total":0,"total_time_in_millis":0,"total_docs":0,"total_size_in_bytes":0},"refresh":{"total":0,"total_time_in_millis":0},"flush":{"total":0,"total_time_in_millis":0},"warmer":{"current":0,"total":0,"total_time_in_millis":0},"filter_cache":{"memory_size_in_bytes":0,"evictions":0},"id_cache":{"memory_size_in_bytes":0},"fielddata":{"memory_size_in_bytes":0,"evictions":0},"percolate":{"total":0,"time_in_millis":0,"current":0,"memory_size_in_bytes":-1,"memory_size":"-1b","queries":0},"completion":{"size_in_bytes":0},"segments":{"count":0,"memory_in_bytes":0,"index_writer_memory_in_bytes":0,"index_writer_max_memory_in_bytes":0,"version_map_memory_in_bytes":0,"fixed_bit_set_memory_in_bytes":0},"translog":{"operations":0,"size_in_bytes":0},"suggest":{"total":0,"time_in_millis":0,"current":0},"query_cache":{"memory_size_in_bytes":0,"evictions":0,"hit_count":0,"miss_count":0},"recovery":{"current_as_source":0,"current_as_target":0,"throttle_time_in_millis":0}},"os":{"timestamp":1445883184932,"uptime_in_millis":600082,"load_average":[1.75732421875,1.81494140625,1.68896484375],"cpu":{"sys":1,"user":3,"idle":94,"usage":4,"stolen":0},"mem":{"free_in_bytes":2840813568,"used_in_bytes":14339055616,"free_percent":31,"used_percent":68,"actual_free_in_bytes":5418557440,"actual_used_in_bytes":11761311744},"swap":{"used_in_bytes":543424512,"free_in_bytes":1604059136}},"process":{"timestamp":1445883184932,"open_file_descriptors":224,"cpu":{"percent":0,"sys_in_millis":2421,"user_in_millis":5567,"total_in_millis":7988},"mem":{"resident_in_bytes":197242880,"share_in_bytes":-1,"total_virtual_in_bytes":4015599616}},"jvm":{"timestamp":1445883184933,"uptime_in_millis":728876,"mem":{"heap_used_in_bytes":86263216,"heap_used_percent":8,"heap_committed_in_bytes":259522560,"heap_max_in_bytes":1037959168,"non_heap_used_in_bytes":32027448,"non_heap_committed_in_bytes":33554432,"pools":{"young":{"used_in_bytes":62974272,"max_in_bytes":286326784,"peak_used_in_bytes":71630848,"peak_max_in_bytes":286326784},"survivor":{"used_in_bytes":8912896,"max_in_bytes":35782656,"peak_used_in_bytes":8912896,"peak_max_in_bytes":35782656},"old":{"used_in_bytes":14376048,"max_in_bytes":715849728,"peak_used_in_bytes":14376048,"peak_max_in_bytes":715849728}}},"threads":{"count":71,"peak_count":73},"gc":{"collectors":{"young":{"collection_count":2,"collection_time_in_millis":30},"old":{"collection_count":0,"collection_time_in_millis":0}}},"buffer_pools":{"direct":{"count":89,"used_in_bytes":12590952,"total_capacity_in_bytes":12590952},"mapped":{"count":0,"used_in_bytes":0,"total_capacity_in_bytes":0}}},"thread_pool":{"generic":{"threads":1,"queue":0,"active":0,"rejected":0,"largest":3,"completed":80},"index":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"fetch_shard_store":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"get":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"snapshot":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"merge":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"suggest":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"bulk":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"optimize":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"warmer":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"flush":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"search":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"fetch_shard_started":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"listener":{"threads":4,"queue":0,"active":0,"rejected":0,"largest":4,"completed":9},"percolate":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"management":{"threads":2,"queue":0,"active":1,"rejected":0,"largest":2,"completed":51},"refresh":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0}},"network":{"tcp":{"active_opens":86832,"passive_opens":1576,"curr_estab":80,"in_segs":28959619,"out_segs":11294339,"retrans_segs":7945,"estab_resets":4168,"attempt_fails":47790,"in_errs":0,"out_rsts":-1}},"fs":{"timestamp":1445883184934,"total":{"total_in_bytes":499099262976,"free_in_bytes":418897707008,"available_in_bytes":418635563008,"disk_reads":0,"disk_writes":0,"disk_io_op":0,"disk_read_size_in_bytes":0,"disk_write_size_in_bytes":0,"disk_io_size_in_bytes":0},"data":[{"path":"/tmp/elasticsearch_test/nodes/0","mount":"/","dev":"/dev/disk1","type":"hfs","total_in_bytes":499099262976,"free_in_bytes":418897707008,"available_in_bytes":418635563008,"disk_reads":0,"disk_writes":0,"disk_io_op":0,"disk_read_size_in_bytes":0,"disk_write_size_in_bytes":0,"disk_io_size_in_bytes":0}]},"transport":{"server_open":13,"rx_count":6,"rx_size_in_bytes":1908,"tx_count":6,"tx_size_in_bytes":1908},"http":{"current_open":1,"total_opened":12},"breakers":{"fielddata":{"limit_size_in_bytes":622775500,"limit_size":"593.9mb","estimated_size_in_bytes":0,"estimated_size":"0b","overhead":1.03,"tripped":0},"request":{"limit_size_in_bytes":415183667,"limit_size":"395.9mb","estimated_size_in_bytes":0,"estimated_size":"0b","overhead":1.0,"tripped":0},"parent":{"limit_size_in_bytes":726571417,"limit_size":"692.9mb","estimated_size_in_bytes":0,"estimated_size":"0b","overhead":1.0,"tripped":0}}}}}'
58
+ http_version:
59
+ recorded_at: Mon, 26 Oct 2015 18:13:04 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://localhost:9250/_cat/recovery?format=json
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ User-Agent:
68
+ - Faraday v0.9.2
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - "*/*"
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Content-Type:
79
+ - application/json; charset=UTF-8
80
+ Content-Length:
81
+ - '2'
82
+ body:
83
+ encoding: UTF-8
84
+ string: "[]"
85
+ http_version:
86
+ recorded_at: Mon, 26 Oct 2015 18:13:22 GMT
87
+ - request:
88
+ method: get
89
+ uri: http://localhost:9250/_cat/recovery?format=json
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ User-Agent:
95
+ - Faraday v0.9.2
96
+ Accept-Encoding:
97
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
98
+ Accept:
99
+ - "*/*"
100
+ response:
101
+ status:
102
+ code: 200
103
+ message: OK
104
+ headers:
105
+ Content-Type:
106
+ - application/json; charset=UTF-8
107
+ Content-Length:
108
+ - '1850'
109
+ body:
110
+ encoding: UTF-8
111
+ string: '[{"index":"twitter","shard":"0","time":"67","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"1","time":"38","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"2","time":"24","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"3","time":"53","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"4","time":"3","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"}]'
112
+ http_version:
113
+ recorded_at: Mon, 26 Oct 2015 18:16:43 GMT
114
+ - request:
115
+ method: get
116
+ uri: http://localhost:9250/_cat/recovery
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ''
120
+ headers:
121
+ User-Agent:
122
+ - Faraday v0.9.2
123
+ Accept-Encoding:
124
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
125
+ Accept:
126
+ - "*/*"
127
+ response:
128
+ status:
129
+ code: 200
130
+ message: OK
131
+ headers:
132
+ Content-Type:
133
+ - text/plain; charset=UTF-8
134
+ Content-Length:
135
+ - '600'
136
+ body:
137
+ encoding: UTF-8
138
+ string: "twitter 0 67 gateway done cam-mbp-2852.cam.rapid7.com cam-mbp-2852.cam.rapid7.com
139
+ n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 \ntwitter 1 38 gateway done cam-mbp-2852.cam.rapid7.com
140
+ cam-mbp-2852.cam.rapid7.com n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 \ntwitter
141
+ 2 24 gateway done cam-mbp-2852.cam.rapid7.com cam-mbp-2852.cam.rapid7.com
142
+ n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 \ntwitter 3 53 gateway done cam-mbp-2852.cam.rapid7.com
143
+ cam-mbp-2852.cam.rapid7.com n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 \ntwitter
144
+ 4 3 gateway done cam-mbp-2852.cam.rapid7.com cam-mbp-2852.cam.rapid7.com
145
+ n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 \n"
146
+ http_version:
147
+ recorded_at: Mon, 26 Oct 2015 18:17:39 GMT
148
+ - request:
149
+ method: get
150
+ uri: http://localhost:9250/_cat/recovery?format=json&v=true
151
+ body:
152
+ encoding: US-ASCII
153
+ string: ''
154
+ headers:
155
+ User-Agent:
156
+ - Faraday v0.9.2
157
+ Accept-Encoding:
158
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
159
+ Accept:
160
+ - "*/*"
161
+ response:
162
+ status:
163
+ code: 200
164
+ message: OK
165
+ headers:
166
+ Content-Type:
167
+ - application/json; charset=UTF-8
168
+ Content-Length:
169
+ - '1850'
170
+ body:
171
+ encoding: UTF-8
172
+ string: '[{"index":"twitter","shard":"0","time":"67","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"1","time":"38","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"2","time":"24","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"3","time":"53","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"4","time":"3","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"}]'
173
+ http_version:
174
+ recorded_at: Mon, 26 Oct 2015 18:18:13 GMT
175
+ - request:
176
+ method: get
177
+ uri: http://localhost:9250/_cat/recovery?format=json&v=true
178
+ body:
179
+ encoding: US-ASCII
180
+ string: ''
181
+ headers:
182
+ User-Agent:
183
+ - Faraday v0.9.2
184
+ Accept-Encoding:
185
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
186
+ Accept:
187
+ - "*/*"
188
+ response:
189
+ status:
190
+ code: 200
191
+ message: OK
192
+ headers:
193
+ Content-Type:
194
+ - application/json; charset=UTF-8
195
+ Content-Length:
196
+ - '1850'
197
+ body:
198
+ encoding: UTF-8
199
+ string: '[{"index":"twitter","shard":"0","time":"67","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"1","time":"38","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"2","time":"24","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"3","time":"53","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"},{"index":"twitter","shard":"4","time":"3","type":"gateway","stage":"done","source_host":"cam-mbp-2852.cam.rapid7.com","target_host":"cam-mbp-2852.cam.rapid7.com","repository":"n/a","snapshot":"n/a","files":"0","files_percent":"0.0%","bytes":"0","bytes_percent":"0.0%","total_files":"0","total_bytes":"0","translog":"0","translog_percent":"100.0%","total_translog":"0"}]'
200
+ http_version:
201
+ recorded_at: Mon, 26 Oct 2015 18:18:23 GMT
202
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,90 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:9250/_nodes/_all
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.2
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
+ - '3486'
25
+ body:
26
+ encoding: UTF-8
27
+ string: '{"cluster_name":"elasticsearch_test","nodes":{"JwntYesBTV29Yv6TbdTMAg":{"name":"node-1","transport_address":"inet[/10.1.100.57:9300]","host":"cam-mbp-2852.cam.rapid7.com","ip":"10.1.100.57","version":"1.7.2","build":"e43676b","http_address":"inet[/10.1.100.57:9250]","attributes":{"bench":"true","test":"true"},"settings":{"node":{"bench":"true","test":"true","name":"node-1"},"client":{"type":"node"},"http":{"port":"9250"},"name":"node-1","logger":{"level":"DEBUG"},"path":{"work":"/tmp","data":"/tmp","home":"/Users/athompson/code/personal/elasticsearch-drain/tmp/elasticsearch-1.7.2","logs":"/Users/athompson/code/personal/elasticsearch-drain/tmp/elasticsearch-1.7.2/logs"},"config":{"ignore_system_properties":"true"},"cluster":{"routing":{"allocation":{"disk":{"threshold_enabled":"false"}}},"name":"elasticsearch_test"},"script":{"disable_dynamic":"false"},"discovery":{"zen":{"ping":{"multicast":{"enabled":"true"}}}},"foreground":"yes","network":{"host":"0.0.0.0"}},"os":{"refresh_interval_in_millis":1000,"available_processors":8,"cpu":{"vendor":"Intel","model":"MacBookPro11,3","mhz":2500,"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":34353,"max_file_descriptors":10240,"mlockall":false},"jvm":{"pid":34353,"version":"1.7.0_79","vm_name":"Java
28
+ HotSpot(TM) 64-Bit Server VM","vm_version":"24.79-b02","vm_vendor":"Oracle
29
+ Corporation","start_time_in_millis":1445882456057,"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
30
+ Cache","Par Eden Space","Par Survivor Space","CMS Old Gen","CMS Perm Gen"]},"thread_pool":{"generic":{"type":"cached","keep_alive":"30s","queue_size":-1},"index":{"type":"fixed","min":8,"max":8,"queue_size":"200"},"fetch_shard_store":{"type":"scaling","min":1,"max":16,"keep_alive":"5m","queue_size":-1},"get":{"type":"fixed","min":8,"max":8,"queue_size":"1k"},"snapshot":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"merge":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"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,"queue_size":-1},"warmer":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"flush":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"search":{"type":"fixed","min":13,"max":13,"queue_size":"1k"},"fetch_shard_started":{"type":"scaling","min":1,"max":16,"keep_alive":"5m","queue_size":-1},"listener":{"type":"fixed","min":4,"max":4,"queue_size":-1},"percolate":{"type":"fixed","min":8,"max":8,"queue_size":"1k"},"management":{"type":"scaling","min":1,"max":5,"keep_alive":"5m","queue_size":-1},"refresh":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1}},"network":{"refresh_interval_in_millis":5000,"primary_interface":{"address":"10.1.100.57","name":"en5","mac_address":"14:B1:C8:00:44:3D"}},"transport":{"bound_address":"inet[/0:0:0:0:0:0:0:0:9300]","publish_address":"inet[/10.1.100.57:9300]","profiles":{}},"http":{"bound_address":"inet[/0:0:0:0:0:0:0:0:9250]","publish_address":"inet[/10.1.100.57:9250]","max_content_length_in_bytes":104857600},"plugins":[]}}}'
31
+ http_version:
32
+ recorded_at: Wed, 28 Oct 2015 16:04:15 GMT
33
+ - request:
34
+ method: get
35
+ uri: http://localhost:9250/_nodes/stats/_all
36
+ body:
37
+ encoding: US-ASCII
38
+ string: ''
39
+ headers:
40
+ User-Agent:
41
+ - Faraday v0.9.2
42
+ Accept-Encoding:
43
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
44
+ Accept:
45
+ - "*/*"
46
+ response:
47
+ status:
48
+ code: 200
49
+ message: OK
50
+ headers:
51
+ Content-Type:
52
+ - application/json; charset=UTF-8
53
+ Content-Length:
54
+ - '6388'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"cluster_name":"elasticsearch_test","nodes":{"JwntYesBTV29Yv6TbdTMAg":{"timestamp":1446048255959,"name":"node-1","transport_address":"inet[/10.1.100.57:9300]","host":"cam-mbp-2852.cam.rapid7.com","ip":["inet[/10.1.100.57:9300]","NONE"],"attributes":{"bench":"true","test":"true"},"indices":{"docs":{"count":0,"deleted":0},"store":{"size_in_bytes":720,"throttle_time_in_millis":0},"indexing":{"index_total":0,"index_time_in_millis":0,"index_current":0,"delete_total":0,"delete_time_in_millis":0,"delete_current":0,"noop_update_total":0,"is_throttled":false,"throttle_time_in_millis":0},"get":{"total":0,"time_in_millis":0,"exists_total":0,"exists_time_in_millis":0,"missing_total":0,"missing_time_in_millis":0,"current":0},"search":{"open_contexts":0,"query_total":0,"query_time_in_millis":0,"query_current":0,"fetch_total":0,"fetch_time_in_millis":0,"fetch_current":0},"merges":{"current":0,"current_docs":0,"current_size_in_bytes":0,"total":0,"total_time_in_millis":0,"total_docs":0,"total_size_in_bytes":0},"refresh":{"total":5,"total_time_in_millis":0},"flush":{"total":5,"total_time_in_millis":1},"warmer":{"current":0,"total":10,"total_time_in_millis":12},"filter_cache":{"memory_size_in_bytes":0,"evictions":0},"id_cache":{"memory_size_in_bytes":0},"fielddata":{"memory_size_in_bytes":0,"evictions":0},"percolate":{"total":0,"time_in_millis":0,"current":0,"memory_size_in_bytes":-1,"memory_size":"-1b","queries":0},"completion":{"size_in_bytes":0},"segments":{"count":0,"memory_in_bytes":0,"index_writer_memory_in_bytes":0,"index_writer_max_memory_in_bytes":2560000,"version_map_memory_in_bytes":0,"fixed_bit_set_memory_in_bytes":0},"translog":{"operations":0,"size_in_bytes":17},"suggest":{"total":0,"time_in_millis":0,"current":0},"query_cache":{"memory_size_in_bytes":0,"evictions":0,"hit_count":0,"miss_count":0},"recovery":{"current_as_source":0,"current_as_target":0,"throttle_time_in_millis":0}},"os":{"timestamp":1446048255967,"uptime_in_millis":765153,"load_average":[2.41064453125,2.828125,2.830078125],"cpu":{"sys":1,"user":3,"idle":94,"usage":4,"stolen":0},"mem":{"free_in_bytes":115359744,"used_in_bytes":17064509440,"free_percent":32,"used_percent":67,"actual_free_in_bytes":5560053760,"actual_used_in_bytes":11619815424},"swap":{"used_in_bytes":630980608,"free_in_bytes":1516503040}},"process":{"timestamp":1446048255967,"open_file_descriptors":208,"cpu":{"percent":0,"sys_in_millis":134541,"user_in_millis":97381,"total_in_millis":231922},"mem":{"resident_in_bytes":172290048,"share_in_bytes":-1,"total_virtual_in_bytes":4039327744}},"jvm":{"timestamp":1446048255967,"uptime_in_millis":165799910,"mem":{"heap_used_in_bytes":57039208,"heap_used_percent":5,"heap_committed_in_bytes":259522560,"heap_max_in_bytes":1037959168,"non_heap_used_in_bytes":36488824,"non_heap_committed_in_bytes":37486592,"pools":{"young":{"used_in_bytes":34277112,"max_in_bytes":286326784,"peak_used_in_bytes":71630848,"peak_max_in_bytes":286326784},"survivor":{"used_in_bytes":984544,"max_in_bytes":35782656,"peak_used_in_bytes":8912896,"peak_max_in_bytes":35782656},"old":{"used_in_bytes":21777552,"max_in_bytes":715849728,"peak_used_in_bytes":21777552,"peak_max_in_bytes":715849728}}},"threads":{"count":74,"peak_count":78},"gc":{"collectors":{"young":{"collection_count":5,"collection_time_in_millis":89},"old":{"collection_count":0,"collection_time_in_millis":0}}},"buffer_pools":{"direct":{"count":118,"used_in_bytes":22570005,"total_capacity_in_bytes":22570005},"mapped":{"count":0,"used_in_bytes":0,"total_capacity_in_bytes":0}}},"thread_pool":{"generic":{"threads":2,"queue":0,"active":0,"rejected":0,"largest":5,"completed":4949},"index":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"fetch_shard_store":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"get":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"snapshot":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"merge":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"suggest":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"bulk":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"optimize":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"warmer":{"threads":1,"queue":0,"active":0,"rejected":0,"largest":4,"completed":5},"flush":{"threads":1,"queue":0,"active":0,"rejected":0,"largest":4,"completed":10},"search":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"fetch_shard_started":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"listener":{"threads":4,"queue":0,"active":0,"rejected":0,"largest":4,"completed":12},"percolate":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0},"management":{"threads":2,"queue":0,"active":1,"rejected":0,"largest":2,"completed":2802},"refresh":{"threads":0,"queue":0,"active":0,"rejected":0,"largest":0,"completed":0}},"network":{"tcp":{"active_opens":112127,"passive_opens":1684,"curr_estab":54,"in_segs":32268310,"out_segs":12523932,"retrans_segs":8280,"estab_resets":4941,"attempt_fails":62688,"in_errs":0,"out_rsts":-1}},"fs":{"timestamp":1446048255967,"total":{"total_in_bytes":499099262976,"free_in_bytes":418756890624,"available_in_bytes":418494746624,"disk_reads":0,"disk_writes":0,"disk_io_op":0,"disk_read_size_in_bytes":0,"disk_write_size_in_bytes":0,"disk_io_size_in_bytes":0},"data":[{"path":"/tmp/elasticsearch_test/nodes/0","mount":"/","dev":"/dev/disk1","type":"hfs","total_in_bytes":499099262976,"free_in_bytes":418756890624,"available_in_bytes":418494746624,"disk_reads":0,"disk_writes":0,"disk_io_op":0,"disk_read_size_in_bytes":0,"disk_write_size_in_bytes":0,"disk_io_size_in_bytes":0}]},"transport":{"server_open":0,"rx_count":6,"rx_size_in_bytes":1908,"tx_count":6,"tx_size_in_bytes":1908},"http":{"current_open":1,"total_opened":25},"breakers":{"fielddata":{"limit_size_in_bytes":622775500,"limit_size":"593.9mb","estimated_size_in_bytes":0,"estimated_size":"0b","overhead":1.03,"tripped":0},"request":{"limit_size_in_bytes":415183667,"limit_size":"395.9mb","estimated_size_in_bytes":0,"estimated_size":"0b","overhead":1.0,"tripped":0},"parent":{"limit_size_in_bytes":726571417,"limit_size":"692.9mb","estimated_size_in_bytes":0,"estimated_size":"0b","overhead":1.0,"tripped":0}}}}}'
58
+ http_version:
59
+ recorded_at: Wed, 28 Oct 2015 16:04:15 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://localhost:9250/_nodes/_all
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ User-Agent:
68
+ - Faraday v0.9.2
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - "*/*"
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Content-Type:
79
+ - application/json; charset=UTF-8
80
+ Content-Length:
81
+ - '3486'
82
+ body:
83
+ encoding: UTF-8
84
+ string: '{"cluster_name":"elasticsearch_test","nodes":{"JwntYesBTV29Yv6TbdTMAg":{"name":"node-1","transport_address":"inet[/10.1.100.57:9300]","host":"cam-mbp-2852.cam.rapid7.com","ip":"10.1.100.57","version":"1.7.2","build":"e43676b","http_address":"inet[/10.1.100.57:9250]","attributes":{"bench":"true","test":"true"},"settings":{"node":{"bench":"true","test":"true","name":"node-1"},"client":{"type":"node"},"http":{"port":"9250"},"name":"node-1","logger":{"level":"DEBUG"},"path":{"work":"/tmp","data":"/tmp","home":"/Users/athompson/code/personal/elasticsearch-drain/tmp/elasticsearch-1.7.2","logs":"/Users/athompson/code/personal/elasticsearch-drain/tmp/elasticsearch-1.7.2/logs"},"config":{"ignore_system_properties":"true"},"cluster":{"routing":{"allocation":{"disk":{"threshold_enabled":"false"}}},"name":"elasticsearch_test"},"script":{"disable_dynamic":"false"},"discovery":{"zen":{"ping":{"multicast":{"enabled":"true"}}}},"foreground":"yes","network":{"host":"0.0.0.0"}},"os":{"refresh_interval_in_millis":1000,"available_processors":8,"cpu":{"vendor":"Intel","model":"MacBookPro11,3","mhz":2500,"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":34353,"max_file_descriptors":10240,"mlockall":false},"jvm":{"pid":34353,"version":"1.7.0_79","vm_name":"Java
85
+ HotSpot(TM) 64-Bit Server VM","vm_version":"24.79-b02","vm_vendor":"Oracle
86
+ Corporation","start_time_in_millis":1445882456057,"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
87
+ Cache","Par Eden Space","Par Survivor Space","CMS Old Gen","CMS Perm Gen"]},"thread_pool":{"generic":{"type":"cached","keep_alive":"30s","queue_size":-1},"index":{"type":"fixed","min":8,"max":8,"queue_size":"200"},"fetch_shard_store":{"type":"scaling","min":1,"max":16,"keep_alive":"5m","queue_size":-1},"get":{"type":"fixed","min":8,"max":8,"queue_size":"1k"},"snapshot":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"merge":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"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,"queue_size":-1},"warmer":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"flush":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1},"search":{"type":"fixed","min":13,"max":13,"queue_size":"1k"},"fetch_shard_started":{"type":"scaling","min":1,"max":16,"keep_alive":"5m","queue_size":-1},"listener":{"type":"fixed","min":4,"max":4,"queue_size":-1},"percolate":{"type":"fixed","min":8,"max":8,"queue_size":"1k"},"management":{"type":"scaling","min":1,"max":5,"keep_alive":"5m","queue_size":-1},"refresh":{"type":"scaling","min":1,"max":4,"keep_alive":"5m","queue_size":-1}},"network":{"refresh_interval_in_millis":5000,"primary_interface":{"address":"10.1.100.57","name":"en5","mac_address":"14:B1:C8:00:44:3D"}},"transport":{"bound_address":"inet[/0:0:0:0:0:0:0:0:9300]","publish_address":"inet[/10.1.100.57:9300]","profiles":{}},"http":{"bound_address":"inet[/0:0:0:0:0:0:0:0:9250]","publish_address":"inet[/10.1.100.57:9250]","max_content_length_in_bytes":104857600},"plugins":[]}}}'
88
+ http_version:
89
+ recorded_at: Wed, 28 Oct 2015 16:04:53 GMT
90
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,37 @@
1
+ require 'test_helper'
2
+ require 'pp'
3
+
4
+ class TestAutoScaling < Minitest::Test
5
+ def setup
6
+ VCR.insert_cassette 'autoscaling', record: :once
7
+ @asg = ::Elasticsearch::Drain::AutoScaling.new(
8
+ 'esuilogs-razor-d0prod-r01-v000',
9
+ 'us-east-1'
10
+ )
11
+ end
12
+
13
+ def teardown
14
+ VCR.eject_cassette
15
+ end
16
+
17
+ def test_asg
18
+ assert_respond_to @asg, :asg
19
+ end
20
+
21
+ def test_find_instances_is_array
22
+ assert_respond_to @asg.find_instances_in_asg, :each
23
+ end
24
+
25
+ def test_find_instances_matches_instance_pattern
26
+ assert_match /i-[a-z0-9]{8}/, @asg.find_instances_in_asg.first
27
+ end
28
+
29
+ def test_instances_is_array
30
+ assert_respond_to @asg.instances, :each
31
+ end
32
+
33
+ def test_instances_is_private_ipaddresses
34
+ ip = @asg.instances.first
35
+ assert private_ipaddress?(ip)
36
+ end
37
+ end
@@ -0,0 +1,26 @@
1
+ require 'test_helper'
2
+ require 'pp'
3
+
4
+ class TestCluster < Minitest::Test
5
+ def setup
6
+ VCR.insert_cassette 'cluster', record: :new_episodes
7
+ @drain = ::Elasticsearch::Drain.new(
8
+ 'localhost:9250',
9
+ 'esuilogs-razor-d0prod-r01-v000',
10
+ 'us-west-2'
11
+ )
12
+ @cluster = ::Elasticsearch::Drain::Cluster.new(@drain.client)
13
+ end
14
+
15
+ def teardown
16
+ VCR.eject_cassette
17
+ end
18
+
19
+ def test_cluster_health_is_valid
20
+ assert (@cluster.healthy? || %w(red yellow green).include?(@cluster.health['status']))
21
+ end
22
+
23
+ def test_cluster_relocating_shards
24
+ refute @cluster.relocating_shards?
25
+ end
26
+ end
@@ -0,0 +1,58 @@
1
+ require 'test_helper'
2
+ require 'pp'
3
+
4
+ class TestNode < Minitest::Test
5
+ def setup
6
+ VCR.insert_cassette 'node', record: :new_episodes
7
+ @drain = ::Elasticsearch::Drain.new(
8
+ 'localhost:9250',
9
+ 'esuilogs-razor-d0prod-r01-v000',
10
+ 'us-west-2'
11
+ )
12
+ @node = ::Elasticsearch::Drain::Nodes.new(@drain.client, @drain.asg).nodes.first
13
+ end
14
+
15
+ def teardown
16
+ VCR.eject_cassette
17
+ end
18
+
19
+ def test_version
20
+ assert_instance_of String, @node.version
21
+ end
22
+
23
+ def test_hostname
24
+ assert_instance_of String, @node.hostname
25
+ end
26
+
27
+ def test_name
28
+ assert_instance_of String, @node.name
29
+ end
30
+
31
+ def test_id
32
+ assert_instance_of String, @node.id
33
+ end
34
+
35
+ def test_ipaddress
36
+ assert_respond_to IPAddr.new(@node.ipaddress).to_i, :+
37
+ end
38
+
39
+ def test_transport_address
40
+ ipaddress, port = @node.transport_address.split(':')
41
+ assert_respond_to IPAddr.new(ipaddress).to_i, :+
42
+ assert_respond_to port.to_i, :+
43
+ end
44
+
45
+ def test_http_address
46
+ ipaddress, port = @node.http_address.split(':')
47
+ assert_respond_to IPAddr.new(ipaddress).to_i, :+
48
+ assert_respond_to port.to_i, :+
49
+ end
50
+
51
+ def test_bytes_stored_on_host
52
+ assert_respond_to @node.bytes_stored, :+
53
+ end
54
+
55
+ def test_in_recovery
56
+ assert @node.in_recovery?
57
+ end
58
+ end