elasticsearch_s3_backup 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch_s3_backup/version.rb +1 -1
- data/lib/elasticsearch_s3_backup.rb +1 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2105524d46917aa46d271cab57f1ee0358f79abe
|
4
|
+
data.tar.gz: 0c0ae0dfe3066aa5e0e36518e7ac8cabadc07535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ee88a13722edf3aff649fe6ccebd6b4051df379e2d930644f5b3c7c31555435203d97c5e18949bd2435843ab40359b1973d2cccf319db95b30da13b9b490f9e
|
7
|
+
data.tar.gz: fba02786fc4e80bba4c1a88aae4c74bfe0f5250754882dd0e06f4ef880d5dc98ef7ad26aa474b2325df13ac8d4cc342c0d66089ffa5297815a9780236464bd89
|
@@ -18,7 +18,6 @@ module EverTools
|
|
18
18
|
:new_repo_params,
|
19
19
|
:sentry_dsn,
|
20
20
|
:node_name,
|
21
|
-
:elasticsearch_auth_file,
|
22
21
|
:cluster_name
|
23
22
|
|
24
23
|
attr_reader :conf, :backup_repo, :snapshot_label
|
@@ -60,14 +59,10 @@ module EverTools
|
|
60
59
|
Raven.capture_exception(e) if sentry_dsn
|
61
60
|
end
|
62
61
|
|
63
|
-
def auth
|
64
|
-
File.read(elasticsearch_auth_file).strip
|
65
|
-
end
|
66
|
-
|
67
62
|
def es_api
|
68
63
|
@es_api ||= begin
|
69
64
|
es_host = @conf['es_host'] || 'localhost'
|
70
|
-
Elasticsearch::Client.new host: "http://#{
|
65
|
+
Elasticsearch::Client.new host: "http://#{es_host}:9200",
|
71
66
|
transport_options: {
|
72
67
|
request: {
|
73
68
|
timeout: 1200
|
@@ -173,11 +168,6 @@ module EverTools
|
|
173
168
|
[@restore_test_index, @backup_test_index].each do |test_index|
|
174
169
|
es_api.indices.delete index: test_index
|
175
170
|
end
|
176
|
-
rescue Elasticsearch::Transport::Transport::Errors::Unauthorized
|
177
|
-
logger.info 'It seems like our auth key expired. Re-create the connection.'
|
178
|
-
@es_api = nil
|
179
|
-
tries -= 1
|
180
|
-
retry if tries >= 0
|
181
171
|
end
|
182
172
|
|
183
173
|
def cleanup_test_indexes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch_s3_backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Herot
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.5
|
181
|
+
rubygems_version: 2.4.5
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Backs up ElasticSearch to S3
|