openstudio-aws 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openstudio/aws/version.rb +1 -1
- data/lib/openstudio/lib/openstudio_aws_wrapper.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76eec425f52bafbaf9d13e89f9fb5132cd84c2a7
|
4
|
+
data.tar.gz: 54633b016b3c40bdb45745f929b5f94863568f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81568f9f15ec8c8ae4a1c46285a94f8ab125c27ae10fbc83dae6110fceeec3464588543046c545f1b859e6c2f1ba00f8b3f0affe4d05886a1e9ad9ffb157f927
|
7
|
+
data.tar.gz: 8881ab513320eccb64da71d7fc6926ffd91b2889c4f883ba2eb0c2e1ea93cfd3a943fa6182ceaa8fa3006d2c01e75adedb9661c49b4aac56064304e60db91aa1
|
@@ -502,12 +502,12 @@ class OpenStudioAwsWrapper
|
|
502
502
|
max_pool = 16 * web_cores
|
503
503
|
rez_mem = 512 * max_pool
|
504
504
|
total_procs = total_procs - mongo_cores - web_cores + 2
|
505
|
-
@server.shell_command("
|
506
|
-
@server.shell_command("
|
507
|
-
@server.shell_command("
|
508
|
-
@server.shell_command("
|
509
|
-
@server.shell_command("
|
510
|
-
@server.shell_command("
|
505
|
+
@server.shell_command("sed -i -e 's/AWS_MAX_REQUESTS/#{max_requests}/g' /home/ubuntu/docker-compose.yml && echo \"true\"")
|
506
|
+
@server.shell_command("sed -i -e 's/AWS_MONGO_CORES/#{mongo_cores}/g' /home/ubuntu/docker-compose.yml && echo \"true\"")
|
507
|
+
@server.shell_command("sed -i -e 's/AWS_WEB_CORES/#{web_cores}/g' /home/ubuntu/docker-compose.yml && echo \"true\"")
|
508
|
+
@server.shell_command("sed -i -e 's/AWS_MAX_POOL/#{max_pool}/g' /home/ubuntu/docker-compose.yml && echo \"true\"")
|
509
|
+
@server.shell_command("sed -i -e 's/AWS_REZ_MEM/#{rez_mem}/g' /home/ubuntu/docker-compose.yml && echo \"true\"")
|
510
|
+
@server.shell_command("sed -i -e 's/AWS_OS_SERVER_NUMBER_OF_WORKERS/#{total_procs}/g' /home/ubuntu/docker-compose.yml && echo \"true\"")
|
511
511
|
@server.shell_command("echo '' >> /home/ubuntu/.env && echo \"true\"")
|
512
512
|
@server.shell_command("docker stack deploy --compose-file docker-compose.yml osserver && echo \"true\"")
|
513
513
|
sleep 10
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstudio-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Long
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|