elasticsearch-manager 0.1.2.pre → 0.1.2.pre.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e33a67d294a013df625637e54a74b3768103eff
4
- data.tar.gz: bacfd5645a75323de255fcdb4e7eed862d611ef5
3
+ metadata.gz: 7df641072ed25e81a1ec97cd9e33f77419ea7c48
4
+ data.tar.gz: 6ab6877ce6dd23693060dc0560ce40e16595404f
5
5
  SHA512:
6
- metadata.gz: f481ee93f5117ad7ca76d2986061bb93fb8a8c4767246e2b80814d806a7a44b519d52103cafa6fbc5957c07ca8289832a8a44d1b27809b60a6f71c75b9366702
7
- data.tar.gz: 7cdca00339dd4c242afbbb4c1ec78d9782c86649a0dcdee31630d70deda76be98b9ad791cbd355f84cef71f25d90c7bd364007d8ea7d8abb3f4eb2bef0e155cc
6
+ metadata.gz: 5fef69122372459c338888afede7b611f2f2f5dfedc05f3cbe4d4e6c6fc428c7c7e521c96736d7e538361ac941361ffcb079dfb100f6fc0f59b32a02db56162d
7
+ data.tar.gz: ee67f4e9466b580294c58fa099282a96b1129da6776762ac612a12ed9b1db49c8760f8ff6ce6b9588c8e84403215cdeb64886fb3caa489c1cc4c7bda2261e6c0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elasticsearch-manager (0.1.2)
4
+ elasticsearch-manager (0.1.2.pre)
5
5
  colorize (~> 0.7)
6
6
  highline (~> 1.7)
7
7
  json (~> 1.8)
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Manager
3
- VERSION = "0.1.2.pre"
3
+ VERSION = "0.1.2.pre.2"
4
4
  end
5
5
  end
data/spec/cmd_spec.rb CHANGED
@@ -20,8 +20,8 @@ describe 'Elasticsearch::Manager::CMD' '#rolling_restart' do
20
20
 
21
21
  context 'restart cluster' do
22
22
  it 'does a clean restart' do
23
- expect(Net::SSH).to receive(:start).with('10.110.33.218', ENV['USER']).ordered
24
23
  expect(Net::SSH).to receive(:start).with('10.110.40.133', ENV['USER']).ordered
24
+ expect(Net::SSH).to receive(:start).with('10.110.33.218', ENV['USER']).ordered
25
25
  expect(Net::SSH).to receive(:start).with('10.110.38.153', ENV['USER']).ordered
26
26
 
27
27
  allow(ssh_connection).to receive(:exec) do |arg|
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "cluster_name": "socrata_test_es_cluster",
3
3
  "nodes": {
4
- "v8w7dipKTo-52KuS6mMqYA": {
4
+ "qRZ0OuvnS0aFolT49pnI9A": {
5
5
  "name": "node1.example.com",
6
6
  "transport_address": "inet[/10.110.39.215:9300]",
7
7
  "host": "ip-10-110-39-215.us-west-2.compute.internal",
@@ -276,7 +276,7 @@
276
276
  }
277
277
  ]
278
278
  },
279
- "j4eRj4UNRlmZDEtbjH5yTA": {
279
+ "mut8vyUIQlyG4eX6KVXxhw": {
280
280
  "name": "node2.example.com",
281
281
  "transport_address": "inet[/10.110.42.16:9300]",
282
282
  "host": "ip-10-110-42-16.us-west-2.compute.internal",
@@ -551,7 +551,7 @@
551
551
  }
552
552
  ]
553
553
  },
554
- "ofXIjVIMR-OmzYXTDyRP_Q": {
554
+ "bpYEXBf-QsCc7oLCjrpO-w": {
555
555
  "name": "node3.example.com",
556
556
  "transport_address": "inet[ip-10-110-34-69.us-west-2.compute.internal/10.110.34.69:9300]",
557
557
  "host": "ip-10-110-34-69.us-west-2.compute.internal",
@@ -192324,13 +192324,11 @@
192324
192324
  }
192325
192325
  },
192326
192326
  "routing_nodes": {
192327
- "unassigned": [],
192328
- "nodes": {
192329
- "mut8vyUIQlyG4eX6KVXxhw": [
192327
+ "unassigned": [
192330
192328
  {
192331
192329
  "state": "STARTED",
192332
- "primary": true,
192333
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192330
+ "primary": false,
192331
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192334
192332
  "relocating_node": null,
192335
192333
  "shard": 0,
192336
192334
  "index": ".marvel-2015.04.17"
@@ -192338,475 +192336,476 @@
192338
192336
  {
192339
192337
  "state": "STARTED",
192340
192338
  "primary": false,
192341
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192339
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192342
192340
  "relocating_node": null,
192343
192341
  "shard": 0,
192344
- "index": ".marvel-2015.04.18"
192342
+ "index": ".marvel-2015.04.19"
192345
192343
  },
192346
192344
  {
192347
192345
  "state": "STARTED",
192348
- "primary": true,
192349
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192346
+ "primary": false,
192347
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192350
192348
  "relocating_node": null,
192351
192349
  "shard": 0,
192352
- "index": ".marvel-2015.04.15"
192350
+ "index": ".marvel-2015.04.13"
192353
192351
  },
192354
192352
  {
192355
192353
  "state": "STARTED",
192356
- "primary": false,
192357
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192354
+ "primary": true,
192355
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192358
192356
  "relocating_node": null,
192359
192357
  "shard": 0,
192360
- "index": ".marvel-2015.04.22"
192358
+ "index": ".marvel-2015.04.14"
192361
192359
  },
192362
192360
  {
192363
192361
  "state": "STARTED",
192364
192362
  "primary": false,
192365
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192363
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192366
192364
  "relocating_node": null,
192367
192365
  "shard": 0,
192368
- "index": ".marvel-2015.04.01"
192366
+ "index": ".marvel-2015.04.16"
192369
192367
  },
192370
192368
  {
192371
192369
  "state": "STARTED",
192372
- "primary": true,
192373
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192370
+ "primary": false,
192371
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192374
192372
  "relocating_node": null,
192375
192373
  "shard": 0,
192376
- "index": ".marvel-2015.05.02"
192374
+ "index": ".marvel-2015.04.21"
192377
192375
  },
192378
192376
  {
192379
192377
  "state": "STARTED",
192380
192378
  "primary": false,
192381
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192379
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192382
192380
  "relocating_node": null,
192383
192381
  "shard": 0,
192384
- "index": ".marvel-2015.05.03"
192382
+ "index": ".marvel-2015.04.20"
192385
192383
  },
192386
192384
  {
192387
192385
  "state": "STARTED",
192388
192386
  "primary": false,
192389
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192387
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192390
192388
  "relocating_node": null,
192391
192389
  "shard": 0,
192392
- "index": ".marvel-2015.03.31"
192390
+ "index": ".marvel-2015.04.23"
192393
192391
  },
192394
192392
  {
192395
192393
  "state": "STARTED",
192396
- "primary": true,
192397
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192394
+ "primary": false,
192395
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192398
192396
  "relocating_node": null,
192399
192397
  "shard": 0,
192400
- "index": ".marvel-2015.04.08"
192398
+ "index": ".marvel-kibana"
192401
192399
  },
192402
192400
  {
192403
192401
  "state": "STARTED",
192404
192402
  "primary": false,
192405
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192403
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192406
192404
  "relocating_node": null,
192407
192405
  "shard": 0,
192408
- "index": ".marvel-2015.04.30"
192406
+ "index": ".marvel-2015.05.01"
192409
192407
  },
192410
192408
  {
192411
192409
  "state": "STARTED",
192412
192410
  "primary": false,
192413
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192411
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192414
192412
  "relocating_node": null,
192415
192413
  "shard": 0,
192416
- "index": ".marvel-2015.04.07"
192414
+ "index": ".marvel-2015.05.04"
192417
192415
  },
192418
192416
  {
192419
192417
  "state": "STARTED",
192420
- "primary": false,
192421
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192418
+ "primary": true,
192419
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192422
192420
  "relocating_node": null,
192423
192421
  "shard": 0,
192424
- "index": ".marvel-2015.04.04"
192422
+ "index": ".marvel-2015.05.03"
192425
192423
  },
192426
192424
  {
192427
192425
  "state": "STARTED",
192428
192426
  "primary": true,
192429
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192427
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192430
192428
  "relocating_node": null,
192431
192429
  "shard": 0,
192432
- "index": ".marvel-2015.04.05"
192430
+ "index": ".marvel-2015.03.30"
192433
192431
  },
192434
192432
  {
192435
192433
  "state": "STARTED",
192436
- "primary": false,
192437
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192434
+ "primary": true,
192435
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192438
192436
  "relocating_node": null,
192439
192437
  "shard": 0,
192440
- "index": ".marvel-2015.04.02"
192438
+ "index": ".marvel-2015.03.31"
192441
192439
  },
192442
192440
  {
192443
192441
  "state": "STARTED",
192444
- "primary": true,
192445
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192442
+ "primary": false,
192443
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192446
192444
  "relocating_node": null,
192447
192445
  "shard": 0,
192448
- "index": ".marvel-2015.04.03"
192446
+ "index": ".marvel-2015.04.08"
192449
192447
  },
192450
192448
  {
192451
192449
  "state": "STARTED",
192452
192450
  "primary": false,
192453
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192451
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192454
192452
  "relocating_node": null,
192455
192453
  "shard": 0,
192456
- "index": ".marvel-2015.04.12"
192454
+ "index": ".marvel-2015.04.09"
192457
192455
  },
192458
192456
  {
192459
192457
  "state": "STARTED",
192460
- "primary": false,
192461
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192458
+ "primary": true,
192459
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192462
192460
  "relocating_node": null,
192463
192461
  "shard": 0,
192464
- "index": ".marvel-2015.04.25"
192462
+ "index": ".marvel-2015.04.06"
192465
192463
  },
192466
192464
  {
192467
192465
  "state": "STARTED",
192468
192466
  "primary": true,
192469
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192467
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192470
192468
  "relocating_node": null,
192471
192469
  "shard": 0,
192472
- "index": ".marvel-2015.04.24"
192470
+ "index": ".marvel-2015.04.30"
192473
192471
  },
192474
192472
  {
192475
192473
  "state": "STARTED",
192476
- "primary": false,
192477
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192474
+ "primary": true,
192475
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192478
192476
  "relocating_node": null,
192479
192477
  "shard": 0,
192480
- "index": ".marvel-2015.04.11"
192478
+ "index": ".marvel-2015.04.07"
192481
192479
  },
192482
192480
  {
192483
192481
  "state": "STARTED",
192484
192482
  "primary": false,
192485
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192483
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192486
192484
  "relocating_node": null,
192487
192485
  "shard": 0,
192488
- "index": ".marvel-2015.04.27"
192486
+ "index": ".marvel-2015.04.05"
192489
192487
  },
192490
192488
  {
192491
192489
  "state": "STARTED",
192492
192490
  "primary": true,
192493
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192491
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192494
192492
  "relocating_node": null,
192495
192493
  "shard": 0,
192496
- "index": ".marvel-2015.04.10"
192494
+ "index": ".marvel-2015.04.02"
192497
192495
  },
192498
192496
  {
192499
192497
  "state": "STARTED",
192500
- "primary": false,
192501
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192498
+ "primary": true,
192499
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192502
192500
  "relocating_node": null,
192503
192501
  "shard": 0,
192504
- "index": ".marvel-2015.04.26"
192502
+ "index": ".marvel-2015.04.11"
192505
192503
  },
192506
192504
  {
192507
192505
  "state": "STARTED",
192508
192506
  "primary": true,
192509
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192507
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192510
192508
  "relocating_node": null,
192511
192509
  "shard": 0,
192512
- "index": ".marvel-2015.04.29"
192510
+ "index": ".marvel-2015.04.27"
192513
192511
  },
192514
192512
  {
192515
192513
  "state": "STARTED",
192516
192514
  "primary": true,
192517
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192515
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192518
192516
  "relocating_node": null,
192519
192517
  "shard": 0,
192520
- "index": ".marvel-2015.04.28"
192518
+ "index": ".marvel-2015.04.26"
192521
192519
  },
192522
192520
  {
192523
192521
  "state": "STARTED",
192524
- "primary": true,
192525
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192522
+ "primary": false,
192523
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192526
192524
  "relocating_node": null,
192527
- "shard": 4,
192528
- "index": "shiny"
192525
+ "shard": 0,
192526
+ "index": ".marvel-2015.04.28"
192529
192527
  },
192530
192528
  {
192531
192529
  "state": "STARTED",
192532
- "primary": true,
192533
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192530
+ "primary": false,
192531
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192534
192532
  "relocating_node": null,
192535
- "shard": 0,
192533
+ "shard": 3,
192536
192534
  "index": "shiny"
192537
192535
  },
192538
192536
  {
192539
192537
  "state": "STARTED",
192540
- "primary": false,
192541
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192538
+ "primary": true,
192539
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192542
192540
  "relocating_node": null,
192543
192541
  "shard": 1,
192544
192542
  "index": "shiny"
192545
192543
  },
192546
192544
  {
192547
192545
  "state": "STARTED",
192548
- "primary": false,
192549
- "node": "mut8vyUIQlyG4eX6KVXxhw",
192546
+ "primary": true,
192547
+ "node": "qRZ0OuvnS0aFolT49pnI9A",
192550
192548
  "relocating_node": null,
192551
192549
  "shard": 2,
192552
192550
  "index": "shiny"
192553
192551
  }
192554
- ],
192555
- "bpYEXBf-QsCc7oLCjrpO-w": [
192552
+ ],
192553
+ "nodes": {
192554
+ "mut8vyUIQlyG4eX6KVXxhw": [
192556
192555
  {
192557
192556
  "state": "STARTED",
192558
192557
  "primary": true,
192559
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192558
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192560
192559
  "relocating_node": null,
192561
192560
  "shard": 0,
192562
- "index": ".marvel-2015.04.18"
192561
+ "index": ".marvel-2015.04.17"
192563
192562
  },
192564
192563
  {
192565
192564
  "state": "STARTED",
192566
- "primary": true,
192567
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192565
+ "primary": false,
192566
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192568
192567
  "relocating_node": null,
192569
192568
  "shard": 0,
192570
- "index": ".marvel-2015.04.19"
192569
+ "index": ".marvel-2015.04.18"
192571
192570
  },
192572
192571
  {
192573
192572
  "state": "STARTED",
192574
192573
  "primary": true,
192575
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192574
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192576
192575
  "relocating_node": null,
192577
192576
  "shard": 0,
192578
- "index": ".marvel-2015.04.13"
192577
+ "index": ".marvel-2015.04.15"
192579
192578
  },
192580
192579
  {
192581
192580
  "state": "STARTED",
192582
192581
  "primary": false,
192583
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192582
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192584
192583
  "relocating_node": null,
192585
192584
  "shard": 0,
192586
- "index": ".marvel-2015.04.14"
192585
+ "index": ".marvel-2015.04.22"
192587
192586
  },
192588
192587
  {
192589
192588
  "state": "STARTED",
192590
192589
  "primary": false,
192591
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192590
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192592
192591
  "relocating_node": null,
192593
192592
  "shard": 0,
192594
- "index": ".marvel-2015.04.15"
192593
+ "index": ".marvel-2015.04.01"
192595
192594
  },
192596
192595
  {
192597
192596
  "state": "STARTED",
192598
192597
  "primary": true,
192599
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192598
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192600
192599
  "relocating_node": null,
192601
192600
  "shard": 0,
192602
- "index": ".marvel-2015.04.16"
192601
+ "index": ".marvel-2015.05.02"
192603
192602
  },
192604
192603
  {
192605
192604
  "state": "STARTED",
192606
- "primary": true,
192607
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192605
+ "primary": false,
192606
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192608
192607
  "relocating_node": null,
192609
192608
  "shard": 0,
192610
- "index": ".marvel-2015.04.21"
192609
+ "index": ".marvel-2015.05.03"
192611
192610
  },
192612
192611
  {
192613
192612
  "state": "STARTED",
192614
- "primary": true,
192615
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192613
+ "primary": false,
192614
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192616
192615
  "relocating_node": null,
192617
192616
  "shard": 0,
192618
- "index": ".marvel-2015.04.20"
192617
+ "index": ".marvel-2015.03.31"
192619
192618
  },
192620
192619
  {
192621
192620
  "state": "STARTED",
192622
192621
  "primary": true,
192623
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192622
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192624
192623
  "relocating_node": null,
192625
192624
  "shard": 0,
192626
- "index": ".marvel-2015.04.23"
192625
+ "index": ".marvel-2015.04.08"
192627
192626
  },
192628
192627
  {
192629
192628
  "state": "STARTED",
192630
- "primary": true,
192631
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192629
+ "primary": false,
192630
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192632
192631
  "relocating_node": null,
192633
192632
  "shard": 0,
192634
- "index": ".marvel-2015.04.22"
192633
+ "index": ".marvel-2015.04.30"
192635
192634
  },
192636
192635
  {
192637
192636
  "state": "STARTED",
192638
- "primary": true,
192639
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192637
+ "primary": false,
192638
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192640
192639
  "relocating_node": null,
192641
192640
  "shard": 0,
192642
- "index": ".marvel-2015.04.01"
192641
+ "index": ".marvel-2015.04.07"
192643
192642
  },
192644
192643
  {
192645
192644
  "state": "STARTED",
192646
- "primary": true,
192647
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192645
+ "primary": false,
192646
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192648
192647
  "relocating_node": null,
192649
192648
  "shard": 0,
192650
- "index": ".marvel-kibana"
192649
+ "index": ".marvel-2015.04.04"
192651
192650
  },
192652
192651
  {
192653
192652
  "state": "STARTED",
192654
192653
  "primary": true,
192655
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192654
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192656
192655
  "relocating_node": null,
192657
192656
  "shard": 0,
192658
- "index": ".marvel-2015.05.01"
192657
+ "index": ".marvel-2015.04.05"
192659
192658
  },
192660
192659
  {
192661
192660
  "state": "STARTED",
192662
192661
  "primary": false,
192663
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192662
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192664
192663
  "relocating_node": null,
192665
192664
  "shard": 0,
192666
- "index": ".marvel-2015.05.02"
192665
+ "index": ".marvel-2015.04.02"
192667
192666
  },
192668
192667
  {
192669
192668
  "state": "STARTED",
192670
192669
  "primary": true,
192671
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192670
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192672
192671
  "relocating_node": null,
192673
192672
  "shard": 0,
192674
- "index": ".marvel-2015.05.04"
192673
+ "index": ".marvel-2015.04.03"
192675
192674
  },
192676
192675
  {
192677
192676
  "state": "STARTED",
192678
192677
  "primary": false,
192679
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192680
- "relocating_node": null,
192681
- "shard": 0,
192682
- "index": ".marvel-2015.03.30"
192683
- },
192684
- {
192685
- "state": "STARTED",
192686
- "primary": true,
192687
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192678
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192688
192679
  "relocating_node": null,
192689
192680
  "shard": 0,
192690
- "index": ".marvel-2015.04.09"
192681
+ "index": ".marvel-2015.04.12"
192691
192682
  },
192692
192683
  {
192693
192684
  "state": "STARTED",
192694
192685
  "primary": false,
192695
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192686
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192696
192687
  "relocating_node": null,
192697
192688
  "shard": 0,
192698
- "index": ".marvel-2015.04.06"
192689
+ "index": ".marvel-2015.04.25"
192699
192690
  },
192700
192691
  {
192701
192692
  "state": "STARTED",
192702
192693
  "primary": true,
192703
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192694
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192704
192695
  "relocating_node": null,
192705
192696
  "shard": 0,
192706
- "index": ".marvel-2015.04.04"
192697
+ "index": ".marvel-2015.04.24"
192707
192698
  },
192708
192699
  {
192709
192700
  "state": "STARTED",
192710
192701
  "primary": false,
192711
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192702
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192712
192703
  "relocating_node": null,
192713
192704
  "shard": 0,
192714
- "index": ".marvel-2015.04.03"
192705
+ "index": ".marvel-2015.04.11"
192715
192706
  },
192716
192707
  {
192717
192708
  "state": "STARTED",
192718
- "primary": true,
192719
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192709
+ "primary": false,
192710
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192720
192711
  "relocating_node": null,
192721
192712
  "shard": 0,
192722
- "index": ".marvel-2015.04.12"
192713
+ "index": ".marvel-2015.04.27"
192723
192714
  },
192724
192715
  {
192725
192716
  "state": "STARTED",
192726
192717
  "primary": true,
192727
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192718
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192728
192719
  "relocating_node": null,
192729
192720
  "shard": 0,
192730
- "index": ".marvel-2015.04.25"
192721
+ "index": ".marvel-2015.04.10"
192731
192722
  },
192732
192723
  {
192733
192724
  "state": "STARTED",
192734
192725
  "primary": false,
192735
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192726
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192736
192727
  "relocating_node": null,
192737
192728
  "shard": 0,
192738
- "index": ".marvel-2015.04.24"
192729
+ "index": ".marvel-2015.04.26"
192739
192730
  },
192740
192731
  {
192741
192732
  "state": "STARTED",
192742
- "primary": false,
192743
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192733
+ "primary": true,
192734
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192744
192735
  "relocating_node": null,
192745
192736
  "shard": 0,
192746
- "index": ".marvel-2015.04.10"
192737
+ "index": ".marvel-2015.04.29"
192747
192738
  },
192748
192739
  {
192749
192740
  "state": "STARTED",
192750
- "primary": false,
192751
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192741
+ "primary": true,
192742
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192752
192743
  "relocating_node": null,
192753
192744
  "shard": 0,
192754
- "index": ".marvel-2015.04.29"
192745
+ "index": ".marvel-2015.04.28"
192755
192746
  },
192756
192747
  {
192757
192748
  "state": "STARTED",
192758
- "primary": false,
192759
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192749
+ "primary": true,
192750
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192760
192751
  "relocating_node": null,
192761
192752
  "shard": 4,
192762
192753
  "index": "shiny"
192763
192754
  },
192764
192755
  {
192765
192756
  "state": "STARTED",
192766
- "primary": false,
192767
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192757
+ "primary": true,
192758
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192768
192759
  "relocating_node": null,
192769
192760
  "shard": 0,
192770
192761
  "index": "shiny"
192771
192762
  },
192772
192763
  {
192773
192764
  "state": "STARTED",
192774
- "primary": true,
192775
- "node": "bpYEXBf-QsCc7oLCjrpO-w",
192765
+ "primary": false,
192766
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192776
192767
  "relocating_node": null,
192777
- "shard": 3,
192768
+ "shard": 1,
192769
+ "index": "shiny"
192770
+ },
192771
+ {
192772
+ "state": "STARTED",
192773
+ "primary": false,
192774
+ "node": "mut8vyUIQlyG4eX6KVXxhw",
192775
+ "relocating_node": null,
192776
+ "shard": 2,
192778
192777
  "index": "shiny"
192779
192778
  }
192780
192779
  ],
192781
- "qRZ0OuvnS0aFolT49pnI9A": [
192780
+ "bpYEXBf-QsCc7oLCjrpO-w": [
192782
192781
  {
192783
192782
  "state": "STARTED",
192784
- "primary": false,
192785
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192783
+ "primary": true,
192784
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192786
192785
  "relocating_node": null,
192787
192786
  "shard": 0,
192788
- "index": ".marvel-2015.04.17"
192787
+ "index": ".marvel-2015.04.18"
192789
192788
  },
192790
192789
  {
192791
192790
  "state": "STARTED",
192792
- "primary": false,
192793
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192791
+ "primary": true,
192792
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192794
192793
  "relocating_node": null,
192795
192794
  "shard": 0,
192796
192795
  "index": ".marvel-2015.04.19"
192797
192796
  },
192798
192797
  {
192799
192798
  "state": "STARTED",
192800
- "primary": false,
192801
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192799
+ "primary": true,
192800
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192802
192801
  "relocating_node": null,
192803
192802
  "shard": 0,
192804
192803
  "index": ".marvel-2015.04.13"
192805
192804
  },
192806
192805
  {
192807
192806
  "state": "STARTED",
192808
- "primary": true,
192809
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192807
+ "primary": false,
192808
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192810
192809
  "relocating_node": null,
192811
192810
  "shard": 0,
192812
192811
  "index": ".marvel-2015.04.14"
@@ -192814,193 +192813,193 @@
192814
192813
  {
192815
192814
  "state": "STARTED",
192816
192815
  "primary": false,
192817
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192816
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192818
192817
  "relocating_node": null,
192819
192818
  "shard": 0,
192820
- "index": ".marvel-2015.04.16"
192819
+ "index": ".marvel-2015.04.15"
192821
192820
  },
192822
192821
  {
192823
192822
  "state": "STARTED",
192824
- "primary": false,
192825
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192823
+ "primary": true,
192824
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192826
192825
  "relocating_node": null,
192827
192826
  "shard": 0,
192828
- "index": ".marvel-2015.04.21"
192827
+ "index": ".marvel-2015.04.16"
192829
192828
  },
192830
192829
  {
192831
192830
  "state": "STARTED",
192832
- "primary": false,
192833
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192831
+ "primary": true,
192832
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192834
192833
  "relocating_node": null,
192835
192834
  "shard": 0,
192836
- "index": ".marvel-2015.04.20"
192835
+ "index": ".marvel-2015.04.21"
192837
192836
  },
192838
192837
  {
192839
192838
  "state": "STARTED",
192840
- "primary": false,
192841
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192839
+ "primary": true,
192840
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192842
192841
  "relocating_node": null,
192843
192842
  "shard": 0,
192844
- "index": ".marvel-2015.04.23"
192843
+ "index": ".marvel-2015.04.20"
192845
192844
  },
192846
192845
  {
192847
192846
  "state": "STARTED",
192848
- "primary": false,
192849
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192847
+ "primary": true,
192848
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192850
192849
  "relocating_node": null,
192851
192850
  "shard": 0,
192852
- "index": ".marvel-kibana"
192851
+ "index": ".marvel-2015.04.23"
192853
192852
  },
192854
192853
  {
192855
192854
  "state": "STARTED",
192856
- "primary": false,
192857
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192855
+ "primary": true,
192856
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192858
192857
  "relocating_node": null,
192859
192858
  "shard": 0,
192860
- "index": ".marvel-2015.05.01"
192859
+ "index": ".marvel-2015.04.22"
192861
192860
  },
192862
192861
  {
192863
192862
  "state": "STARTED",
192864
- "primary": false,
192865
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192863
+ "primary": true,
192864
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192866
192865
  "relocating_node": null,
192867
192866
  "shard": 0,
192868
- "index": ".marvel-2015.05.04"
192867
+ "index": ".marvel-2015.04.01"
192869
192868
  },
192870
192869
  {
192871
192870
  "state": "STARTED",
192872
192871
  "primary": true,
192873
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192872
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192874
192873
  "relocating_node": null,
192875
192874
  "shard": 0,
192876
- "index": ".marvel-2015.05.03"
192875
+ "index": ".marvel-kibana"
192877
192876
  },
192878
192877
  {
192879
192878
  "state": "STARTED",
192880
192879
  "primary": true,
192881
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192880
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192882
192881
  "relocating_node": null,
192883
192882
  "shard": 0,
192884
- "index": ".marvel-2015.03.30"
192883
+ "index": ".marvel-2015.05.01"
192885
192884
  },
192886
192885
  {
192887
192886
  "state": "STARTED",
192888
- "primary": true,
192889
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192887
+ "primary": false,
192888
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192890
192889
  "relocating_node": null,
192891
192890
  "shard": 0,
192892
- "index": ".marvel-2015.03.31"
192891
+ "index": ".marvel-2015.05.02"
192893
192892
  },
192894
192893
  {
192895
192894
  "state": "STARTED",
192896
- "primary": false,
192897
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192895
+ "primary": true,
192896
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192898
192897
  "relocating_node": null,
192899
192898
  "shard": 0,
192900
- "index": ".marvel-2015.04.08"
192899
+ "index": ".marvel-2015.05.04"
192901
192900
  },
192902
192901
  {
192903
192902
  "state": "STARTED",
192904
192903
  "primary": false,
192905
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192904
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192906
192905
  "relocating_node": null,
192907
192906
  "shard": 0,
192908
- "index": ".marvel-2015.04.09"
192907
+ "index": ".marvel-2015.03.30"
192909
192908
  },
192910
192909
  {
192911
192910
  "state": "STARTED",
192912
192911
  "primary": true,
192913
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192912
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192914
192913
  "relocating_node": null,
192915
192914
  "shard": 0,
192916
- "index": ".marvel-2015.04.06"
192915
+ "index": ".marvel-2015.04.09"
192917
192916
  },
192918
192917
  {
192919
192918
  "state": "STARTED",
192920
- "primary": true,
192921
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192919
+ "primary": false,
192920
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192922
192921
  "relocating_node": null,
192923
192922
  "shard": 0,
192924
- "index": ".marvel-2015.04.30"
192923
+ "index": ".marvel-2015.04.06"
192925
192924
  },
192926
192925
  {
192927
192926
  "state": "STARTED",
192928
192927
  "primary": true,
192929
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192928
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192930
192929
  "relocating_node": null,
192931
192930
  "shard": 0,
192932
- "index": ".marvel-2015.04.07"
192931
+ "index": ".marvel-2015.04.04"
192933
192932
  },
192934
192933
  {
192935
192934
  "state": "STARTED",
192936
192935
  "primary": false,
192937
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192936
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192938
192937
  "relocating_node": null,
192939
192938
  "shard": 0,
192940
- "index": ".marvel-2015.04.05"
192939
+ "index": ".marvel-2015.04.03"
192941
192940
  },
192942
192941
  {
192943
192942
  "state": "STARTED",
192944
192943
  "primary": true,
192945
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192944
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192946
192945
  "relocating_node": null,
192947
192946
  "shard": 0,
192948
- "index": ".marvel-2015.04.02"
192947
+ "index": ".marvel-2015.04.12"
192949
192948
  },
192950
192949
  {
192951
192950
  "state": "STARTED",
192952
192951
  "primary": true,
192953
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192952
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192954
192953
  "relocating_node": null,
192955
192954
  "shard": 0,
192956
- "index": ".marvel-2015.04.11"
192955
+ "index": ".marvel-2015.04.25"
192957
192956
  },
192958
192957
  {
192959
192958
  "state": "STARTED",
192960
- "primary": true,
192961
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192959
+ "primary": false,
192960
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192962
192961
  "relocating_node": null,
192963
192962
  "shard": 0,
192964
- "index": ".marvel-2015.04.27"
192963
+ "index": ".marvel-2015.04.24"
192965
192964
  },
192966
192965
  {
192967
192966
  "state": "STARTED",
192968
- "primary": true,
192969
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192967
+ "primary": false,
192968
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192970
192969
  "relocating_node": null,
192971
192970
  "shard": 0,
192972
- "index": ".marvel-2015.04.26"
192971
+ "index": ".marvel-2015.04.10"
192973
192972
  },
192974
192973
  {
192975
192974
  "state": "STARTED",
192976
192975
  "primary": false,
192977
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192976
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192978
192977
  "relocating_node": null,
192979
192978
  "shard": 0,
192980
- "index": ".marvel-2015.04.28"
192979
+ "index": ".marvel-2015.04.29"
192981
192980
  },
192982
192981
  {
192983
192982
  "state": "STARTED",
192984
192983
  "primary": false,
192985
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192984
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192986
192985
  "relocating_node": null,
192987
- "shard": 3,
192986
+ "shard": 4,
192988
192987
  "index": "shiny"
192989
192988
  },
192990
192989
  {
192991
192990
  "state": "STARTED",
192992
- "primary": true,
192993
- "node": "qRZ0OuvnS0aFolT49pnI9A",
192991
+ "primary": false,
192992
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
192994
192993
  "relocating_node": null,
192995
- "shard": 1,
192994
+ "shard": 0,
192996
192995
  "index": "shiny"
192997
192996
  },
192998
192997
  {
192999
192998
  "state": "STARTED",
193000
192999
  "primary": true,
193001
- "node": "qRZ0OuvnS0aFolT49pnI9A",
193000
+ "node": "bpYEXBf-QsCc7oLCjrpO-w",
193002
193001
  "relocating_node": null,
193003
- "shard": 2,
193002
+ "shard": 3,
193004
193003
  "index": "shiny"
193005
193004
  }
193006
193005
  ]
data/spec/manager_spec.rb CHANGED
@@ -134,8 +134,8 @@ describe 'Elasticsearch::Manager::ESManager' 'routing' do
134
134
  context 'rolling restart' do
135
135
 
136
136
  it 'does a clean restart' do
137
- expect(Net::SSH).to receive(:start).with('10.110.33.218', ENV['USER']).ordered
138
137
  expect(Net::SSH).to receive(:start).with('10.110.40.133', ENV['USER']).ordered
138
+ expect(Net::SSH).to receive(:start).with('10.110.33.218', ENV['USER']).ordered
139
139
  expect(Net::SSH).to receive(:start).with('10.110.38.153', ENV['USER']).ordered
140
140
 
141
141
  allow(ssh_connection).to receive(:exec) do |arg|
data/spec/spec_helper.rb CHANGED
@@ -41,11 +41,10 @@ class RestartTimeoutRack
41
41
  end
42
42
  @health_call_count += 1
43
43
  when '/_cluster/settings'
44
- if env['rack.input'].read[/none/].nil?
45
- ret = '{"transient":{"cluster":{"routing":{"allocation":{"enable":"all"}}}}}'
46
- else
47
- ret = '{"transient":{"cluster":{"routing":{"allocation":{"enable":"none"}}}}}'
48
- end
44
+ inp = env['rack.input'].read
45
+ at = inp[/\.([\w_]+)":/,1]
46
+ val = inp[/allocation.*":["]?([^"]+)["]?}}/,1]
47
+ ret = "{\"transient\":{\"cluster\":{\"routing\":{\"allocation\":{\"#{at}\":\"#{val}\"}}}}}"
49
48
  when '/_cluster/state'
50
49
  if @state_call_count < @state_success_count
51
50
  ret = File.read(DIR + '/fixtures/state.json')
@@ -191,11 +190,7 @@ RSpec.configure do |config|
191
190
  headers: {'Content-Type' => 'application/json'})
192
191
 
193
192
  stub_request(:put, /localhost:9200\/_cluster\/settings/).
194
- with(:body => '{"transient":{"cluster.routing.allocation.enable":"all"}}').
195
- to_return(status: 200,
196
- body: '{"transient":{"cluster":{"routing":{"allocation":{"enable":"all"}}}}}',
197
- headers: {'Content-Type' => 'application/json'})
198
-
193
+ to_rack(RestartTimeoutRack.new(15))
199
194
 
200
195
  stub_request(:any, /localhost-restart-timeout:9200\//).
201
196
  to_rack(RestartTimeoutRack.new)
@@ -208,7 +203,7 @@ RSpec.configure do |config|
208
203
  to_rack(RestartTimeoutRack.new)
209
204
 
210
205
  stub_request(:any, /localhost-restart-not-available:9200\//).
211
- to_rack(RestartTimeoutRack.new(1))
206
+ to_rack(RestartTimeoutRack.new(2))
212
207
  stub_request(:any, /localhost-cmd-restart-not-available:9200\//).
213
208
  to_rack(RestartTimeoutRack.new(1))
214
209
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre
4
+ version: 0.1.2.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Oldfield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-10 00:00:00.000000000 Z
11
+ date: 2015-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler