File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ export AWS_SECRET_KEY=
3
3
export BIOTHINGS_REPOSITORY = https://github.com/biothings/biothings.api.git
4
4
export BIOTHINGS_VERSION = master
5
5
export PYTHON_VERSION =
6
+ export ES_HEAP_SIZE =
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ ADD ansible_playbook /tmp/ansible_playbook
231
231
ADD inventory /etc/ansible/hosts
232
232
233
233
COPY --from=build-webapp --chown=root:www-data /build/src/github.com/biothings/biothings_studio/webapp/dist /srv/www/webapp
234
+ ARG ES_HEAP_SIZE
234
235
235
236
WORKDIR /tmp/ansible_playbook
236
237
RUN if [ -n "$API_NAME" ]; \
@@ -240,12 +241,14 @@ RUN if [ -n "$API_NAME" ]; \
240
241
-e "studio_version=$STUDIO_VERSION" \
241
242
-e "api_name=$API_NAME" \
242
243
-e "api_version=$API_VERSION" \
244
+ -e "es_heap_size=$ES_HEAP_SIZE" \
243
245
-c local; \
244
246
else \
245
247
ansible-playbook biothings_studio.yml \
246
248
-e "biothings_version=$BIOTHINGS_VERSION" \
247
249
-e "biothings_repository=$BIOTHINGS_REPOSITORY" \
248
250
-e "studio_version=$STUDIO_VERSION" \
251
+ -e "es_heap_size=$ES_HEAP_SIZE" \
249
252
-c local; \
250
253
fi
251
254
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ BIOTHINGS_VERSION ?= master
9
9
BIOTHINGS_REPOSITORY ?= https://github.com/biothings/biothings.api.git
10
10
DOCKER_BUILD_EXTRA_OPTS ?= --force-rm
11
11
PYTHON_VERSION ?=
12
+ ES_HEAP_SIZE ?=
12
13
13
14
biothings-studio :
14
15
docker build $(DOCKER_BUILD_EXTRA_OPTS ) \
@@ -75,6 +76,7 @@ demohub:
75
76
--build-arg STUDIO_VERSION=$(STUDIO_VERSION) \
76
77
--build-arg BIOTHINGS_VERSION=$(BIOTHINGS_VERSION) \
77
78
--build-arg BIOTHINGS_REPOSITORY=$(BIOTHINGS_REPOSITORY) \
79
+ --build-arg ES_HEAP_SIZE=512m \
78
80
--build-arg API_VERSION=master \
79
81
--build-arg TEST=1 \
80
82
--build-arg AWS_ACCESS_KEY=$(AWS_ACCESS_KEY) \
@@ -86,6 +88,7 @@ demohub-test:
86
88
--build-arg STUDIO_VERSION=$(STUDIO_VERSION) \
87
89
--build-arg BIOTHINGS_VERSION=$(BIOTHINGS_VERSION) \
88
90
--build-arg BIOTHINGS_REPOSITORY=$(BIOTHINGS_REPOSITORY) \
91
+ --build-arg ES_HEAP_SIZE=512m \
89
92
--build-arg API_VERSION=master \
90
93
--build-arg TEST=1 \
91
94
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
Original file line number Diff line number Diff line change 110
110
- name : mongodb data directory
111
111
file : path="{{ software.common_configurations.mongodb.dbpath }}" state=directory owner=mongodb group=mongodb
112
112
113
+ # - debug: var=software.web_node
114
+
113
115
- name : biothings (override requirement_web.txt version)
114
- git : repo={{ biothings_repository }} dest=/home/biothings/biothings.api version={{ software.web_node.biothings_git_version }}
116
+ git : repo={{ software.web_node. biothings_repository }} dest=/home/biothings/biothings.api version={{ software.web_node.biothings_git_version }}
115
117
become_user : " biothings"
116
118
become : true
117
119
177
179
- {"line": "", "re": "^cluster.initial_master_nodes.*$"}
178
180
- {"line": "xpack.security.enabled: false", "re": "^xpack.security.enabled.*$"}
179
181
182
+
183
+ - name : Update /etc/elasticsearch/jvm.options.d/heap.options again replacing min/max heap size
184
+ when : software.web_node.elasticsearch.heap_size != ''
185
+ shell :
186
+ cmd : |
187
+ cat > /etc/elasticsearch/jvm.options.d/heap.options << EOF
188
+ -Xms{{ software.web_node.elasticsearch.heap_size }}
189
+ -Xmx{{ software.web_node.elasticsearch.heap_size }}
190
+ EOF
191
+ args :
192
+ executable : /bin/sh
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ software:
13
13
plugin :
14
14
head : " mobz/elasticsearch-head"
15
15
bigdesk : " lukas-vlcek/bigdesk"
16
- heap_size : " 2g "
16
+ heap_size : " {{ es_heap_size | default('')}} "
17
17
node_roles : ['data', 'master']
18
- biothings_repository : " {{ biothings_repository | default('https://github.com/biothings/biothings.api.git') }}"
18
+ biothings_repository : " {{ biothings_repository | default('https://github.com/biothings/biothings.api.git', true ) }}"
19
19
studio_git_version : " {{ studio_version | default('master')}}"
20
20
biothings_git_version : " {{ biothings_version | default('master')}}"
21
21
common_configurations :
You can’t perform that action at this time.
0 commit comments