Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
4effd3c6
Commit
4effd3c6
authored
Oct 14, 2016
by
Troy Sankey
Committed by
GitHub
Oct 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3421 from edx/pwnage101/PERF-372-x-queue-start
instruct nginx to add a X-Queue-Start header
parents
3218cadf
f0e27251
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
48 additions
and
0 deletions
+48
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/analytics_api.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/credentials.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/ecommerce.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/edx_notes_api.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/forum.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/insights.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms-preview.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/programs.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/xqueue.j2
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/xserver.j2
+4
-0
No files found.
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/analytics_api.j2
View file @
4effd3c6
...
...
@@ -48,6 +48,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2
View file @
4effd3c6
...
...
@@ -94,6 +94,10 @@ error_page {{ k }} {{ v }};
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{% endif %}
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/credentials.j2
View file @
4effd3c6
...
...
@@ -56,6 +56,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{% endif %}
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/ecommerce.j2
View file @
4effd3c6
...
...
@@ -86,6 +86,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{% endif %}
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/edx_notes_api.j2
View file @
4effd3c6
...
...
@@ -46,6 +46,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/forum.j2
View file @
4effd3c6
...
...
@@ -52,6 +52,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{% endif %}
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/insights.j2
View file @
4effd3c6
...
...
@@ -36,6 +36,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms-preview.j2
View file @
4effd3c6
...
...
@@ -30,6 +30,10 @@ server {
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{% endif %}
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
View file @
4effd3c6
...
...
@@ -123,6 +123,10 @@ error_page {{ k }} {{ v }};
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{% endif %}
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/programs.j2
View file @
4effd3c6
...
...
@@ -102,6 +102,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
{% endif %}
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/xqueue.j2
View file @
4effd3c6
...
...
@@ -25,6 +25,10 @@ location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/xserver.j2
View file @
4effd3c6
...
...
@@ -29,6 +29,10 @@ server {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# newrelic-specific header records the time when nginx handles a request.
proxy_set_header X-Queue-Start "t=${msec}";
proxy_set_header Host $http_host;
proxy_redirect off;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment