commit | f6eba3bdd823d802c89d5d169728c84b51da113d | [log] [tgz] |
---|---|---|
author | Antonio Barone <syntonyze@gmail.com> | Fri Oct 12 16:13:23 2018 +0100 |
committer | Antonio Barone <syntonyze@gmail.com> | Fri Oct 12 16:13:23 2018 +0100 |
tree | 6e2c60b827f521ab47f8c2b819ba049fde1173ae | |
parent | 7980649550427f32f52de231e02ec1066e60b439 [diff] |
Expose elasticsearch ports from docker-compose Expose both REST port (9200) and node cluster port (9300) to allow elasticsearch to be reachable from the host in order to allow ETL spark job to reach it. Also, decreased required startup memory from 4g to 1g to avoid out of memory error. Bug: Issue 9854 Change-Id: Ie995e3b290c922e73bd9b54bae97a6c09d383b9a
diff --git a/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala b/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala index f288fab..6e5da17 100644 --- a/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala +++ b/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala
@@ -64,9 +64,13 @@ | networks: | - ek | environment: - | - ES_JAVA_OPTS=-Xmx4g -Xms4g + | - ES_JAVA_OPTS=-Xmx1g -Xms1g | - http.host=0.0.0.0 - | + | - network.host=_site_ + | - http.publish_host=_site_ + | ports: + | - "9200:9200" + | - "9300:9300" |networks: | ek: | driver: bridge