Commit 8c79f35a by Feanil Patel Committed by GitHub

Merge pull request #3850 from edx/feanil/make_gocd_jvm_memory_configurable

Make the gocd jvm max memory configurable.
parents ae010685 b2b6c1e1
......@@ -98,3 +98,6 @@ GO_SERVER_ADMIN_USERS: ["admin"]
# key for go-agents to autoregister with the go-server
GO_SERVER_AUTO_REGISTER_KEY: "dev-only-override-this-key"
# The maximum amount of memory used by the go-server."
GO_SERVER_MAX_MEM: "1024m"
......@@ -161,14 +161,18 @@
lineinfile:
destfile: /etc/default/go-server
regexp: "^export GO_SERVER_SYSTEM_PROPERTIES=*"
line: "export GO_SERVER_SYSTEM_PROPERTIES='-Dgo.config.repo.gc.cron=\"0 0 2 ? * SAT\" -Dgo.config.repo.gc.periodic=\"Y\"'"
line: "export GO_SERVER_SYSTEM_PROPERTIES='-Xmx{{GO_SERVER_MAX_MEM}} -Dgo.config.repo.gc.cron=\"0 0 2 ? * SAT\" -Dgo.config.repo.gc.periodic=\"Y\"'"
tags:
- environment_variables
- install
- install:app-configuration
- name: restart go-server
service:
name: "{{ GO_SERVER_SERVICE_NAME }}"
state: restarted
tags:
- install
- install:app-configuration
- include: setup_regular_backup.yml
when: GO_SERVER_BACKUP_S3_BUCKET and GO_SERVER_BACKUP_S3_OBJECT and GO_SERVER_CONFIGURE_BACKUPS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment