GWicke has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/280951

Change subject: RESTBase: Increase log sampling rates
......................................................................

RESTBase: Increase log sampling rates

We started sampling normal & slow request logs recently, which has proven very
useful for tracking down large request surges. With the current settings, we
are logging about 12-15 requests *per hour*, which is at the lower end of what
is useful.

This patch increases the sampling rate by a factor of five (and 10 for slow
requests). This should result in roughly one log message per minute.

Change-Id: I2a2a9982e684b146edfa7f429f7dfef4b5559a1b
---
M modules/restbase/templates/config.yaml.erb
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/51/280951/1

diff --git a/modules/restbase/templates/config.yaml.erb 
b/modules/restbase/templates/config.yaml.erb
index 8b84fb4..39129eb 100644
--- a/modules/restbase/templates/config.yaml.erb
+++ b/modules/restbase/templates/config.yaml.erb
@@ -893,9 +893,9 @@
   level: <%= @logging_level %>
   sampled_levels:
     # Target is about 1 request logged per minute @1000 req/s
-    trace/request: 0.00001
+    trace/request: 0.00005
     # Not sure what the rate of these is, so start conservatively.
-    trace/request/slow: 0.0001
+    trace/request/slow: 0.001
   streams:
   # XXX: Use gelf-stream -> logstash
   - type: gelf

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a2a9982e684b146edfa7f429f7dfef4b5559a1b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: GWicke <gwi...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to