Skip to content

Commit 5587465

Browse files
Adds New Relic APM agent and increases gunicorn workers from 4 -> 8 (#129)
1 parent d679c9a commit 5587465

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ ENV DJANGO_SETTINGS_MODULE=tracdjangoplugin.settings TRAC_ENV=/code/trac-env/
5959
ENTRYPOINT ["/code/docker-entrypoint.sh"]
6060

6161
# Start gunicorn
62-
CMD ["/venv/bin/gunicorn", "tracdjangoplugin.wsgi:application", "--bind", "0.0.0.0:9000", "--workers", "4", "--max-requests", "1000"]
62+
CMD ["/venv/bin/newrelic-admin", "run-program", "/venv/bin/gunicorn", "tracdjangoplugin.wsgi:application", "--bind", "0.0.0.0:9000", "--workers", "8", "--max-requests", "1000"]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ requests-oauthlib==1.0.0
1717
trac-github==2.3
1818

1919
gunicorn==19.10.0
20+
newrelic
2021

2122
-e ./DjangoPlugin

0 commit comments

Comments
 (0)