Ori.livneh has uploaded a new change for review. https://gerrit.wikimedia.org/r/268821
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(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/21/268821/1 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: newchange Gerrit-Change-Id: Ib82b93d167be071cd3ae6ee577c1a235c7986719 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Ori.livneh <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
