luban-elasticsearch 0.1.0 → 0.1.1

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: 1328aee63f3300543019dc41790862ec368d6330
4
- data.tar.gz: d85be6d25a77f28a5273ed84af0a6a2db5d6dd0a
3
+ metadata.gz: c7e609163b6c607d76660ecb403fd237a9410470
4
+ data.tar.gz: d2412a4ddfa38750a469735fe234a0533978d0b8
5
5
  SHA512:
6
- metadata.gz: 8137d42e0b1a8a9b63d1654f4f7209d37f57b068af6f3488a02709672d9a0758698dc847e1adfac2bfa9a33be6ddc447d2c976ad946fe2c335e34987995ca783
7
- data.tar.gz: 7ae71ed56374a43ecd622e54e777ac8a3ad3c3881bebc19c48ae75025b2d761b2772c557c7f744fdb4adb978ae685cfb66ab0e4c629753ebd97850aa5c014685
6
+ metadata.gz: ef8c206e5dcf1d78d84f01949467e8f80d13013ab2da4a954c0689301e65609aea06303170a2966b23e5f78558925a8c71c51b9b464ef795344b04ce58e1ae74
7
+ data.tar.gz: e3241e4fcb14c54650f2dc457e281e46ce2b2ff967ea124cdf3fdeb598be807a2e8c553ccd75b322faeb18a5f50b92b967743cf82b3072c8567446915286cf53
data/CHANGLOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change log
2
2
 
3
- ## Version 0.1.0 (Aug 23, 2016)
3
+ ## Version 0.1.1 (Aug 31, 2016)
4
+
5
+ Minor enhancements:
6
+ * Specified bin path for current version of Java in Elasticsearch start command to ensure the right version of Java is being used during Elasticsearch startup
7
+ * Turned on bootstrap.mlockall to true to boost up elasticsearch performance
8
+
9
+ ## Version 0.1.0 (Aug 30, 2016)
4
10
 
5
11
  New features:
6
12
  * Initialized Luban deployemnt package of Elasticsearch
@@ -8,8 +8,8 @@ module Luban
8
8
  base.define_executable 'elasticsearch'
9
9
  end
10
10
 
11
- def java_home_path
12
- @java_home_path ||= readlink(app_path.join('java'))
11
+ def java_bin_path
12
+ @java_bin_path ||= package_bin_path('java')
13
13
  end
14
14
 
15
15
  def process_pattern
@@ -17,7 +17,7 @@ module Luban
17
17
  end
18
18
 
19
19
  def start_command
20
- @start_command ||= "#{elasticsearch_executable} -d -p #{pid_file_path} --path.conf=#{profile_path}"
20
+ @start_command ||= "PATH=#{java_bin_path}:$PATH #{elasticsearch_executable} -d -p #{pid_file_path} --path.conf=#{profile_path}"
21
21
  end
22
22
 
23
23
  def stop_command
@@ -40,7 +40,7 @@ path.logs: <%= logs_path %>
40
40
  #
41
41
  # Lock the memory on startup:
42
42
  #
43
- # bootstrap.mlockall: true
43
+ bootstrap.mlockall: true
44
44
  #
45
45
  # Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
46
46
  # available on the system and that the owner of the process is allowed to use this limit.
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Packages
4
4
  class Elasticsearch
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Chi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban