Ori.livneh has submitted this change and it was merged.

Change subject: Add 'Backend-Timing' response header on all Apaches
......................................................................


Add 'Backend-Timing' response header on all Apaches

Configure all Apaches to add a "Backend-Timing" response header with the format
'D=XXX t=XXX', where 't' is when the request was received and 'D' is how long
it took to serve the request, both measured in microseconds. The microsecond
resolution is impractical, but this is what Apache provides.

Tested with Apache 2.2 and 2.4.

Change-Id: Ib82b93d167be071cd3ae6ee577c1a235c7986719
---
M modules/apache/files/defaults.conf
1 file changed, 12 insertions(+), 0 deletions(-)

Approvals:
  Ori.livneh: Verified; Looks good to me, approved
  BBlack: Looks good to me, but someone else must approve



diff --git a/modules/apache/files/defaults.conf 
b/modules/apache/files/defaults.conf
index ec71d12..fa3c931 100644
--- a/modules/apache/files/defaults.conf
+++ b/modules/apache/files/defaults.conf
@@ -33,3 +33,15 @@
 # When receiving a graceful-stop signal, wait up to 5 seconds for client
 # connections to close gracefully.
 GracefulShutdownTimeout 5
+
+# Add a response header with the following format:
+#
+#   Backend-Timing: D=109640 t=1454711664235870
+#
+# Where 't' is a timestamp for when the request was received and 'D'
+# is how long it took to begin serving the request, both measured in
+# microseconds. See:
+#   <http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header>
+<IfModule mod_headers.c>
+    Header set Backend-Timing "%D %t"
+</IfModule>

-- 
To view, visit https://gerrit.wikimedia.org/r/268821
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib82b93d167be071cd3ae6ee577c1a235c7986719
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: BBlack <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to