smartcloud 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartcloud/grids/elasticsearch.rb +3 -6
- data/lib/smartcloud/machine.rb +0 -1
- data/lib/smartcloud/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 474fdd2356fd60ade2ebb2cad2982ebf66d2d045ae19559e13d7cc244b43657a
|
4
|
+
data.tar.gz: 17f10d83a70e04d06ba32205bbe3878da6eec8b106898c385fdc36bf00b0e24a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f27dfd480192c5eac77388da0c8e94487a7266b7b4596ad9b1883cf98a14932b8d4b096f9b10a7512788b002254231f7614099a61ced315075e360830f31dd3
|
7
|
+
data.tar.gz: 612b0aa19cce9b011b720c994917b6977507ed6e46861d3a007c43247a4d922379b331453684bbd070dc41d753b051104073922395aa4ebb9205c5e9de6c11cd
|
@@ -10,10 +10,8 @@ module Smartcloud
|
|
10
10
|
|
11
11
|
print "-----> Creating settings for elasticsearch ... "
|
12
12
|
|
13
|
-
vm_max_map_count_filepath = "~/.smartcloud/grids/grid-elasticsearch/vm_max_map_count"
|
14
13
|
ssh = Smartcloud::SSH.new
|
15
|
-
ssh.run "sudo sysctl
|
16
|
-
ssh.run "sudo sysctl -w vm.max_map_count=262144"
|
14
|
+
ssh.run "echo 'vm.max_map_count=262144' | sudo tee /etc/sysctl.d/60-smartcloud-elasticsearch.conf && sudo sysctl --system"
|
17
15
|
|
18
16
|
puts "done"
|
19
17
|
end
|
@@ -21,10 +19,9 @@ module Smartcloud
|
|
21
19
|
def uninstall
|
22
20
|
print "-----> Removing settings for elasticsearch ... "
|
23
21
|
|
24
|
-
vm_max_map_count_filepath = "~/.smartcloud/grids/grid-elasticsearch/vm_max_map_count"
|
25
22
|
ssh = Smartcloud::SSH.new
|
26
|
-
|
27
|
-
ssh.run "test -f
|
23
|
+
# NOTE: sysctl does not reset this setting until restart of system even after sudo sysctl --system is run.
|
24
|
+
ssh.run "test -f /etc/sysctl.d/60-smartcloud-elasticsearch.conf && sudo rm /etc/sysctl.d/60-smartcloud-elasticsearch.conf && sudo sysctl --system"
|
28
25
|
|
29
26
|
puts "done"
|
30
27
|
end
|
data/lib/smartcloud/machine.rb
CHANGED
data/lib/smartcloud/version.rb
CHANGED