Yuvipanda has submitted this change and it was merged.
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(-)
Approvals:
BryanDavis: Looks good to me, but someone else must approve
Yuvipanda: Verified; Looks good to me, approved
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.1
+trace/request: 0.5
# 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: merged
Gerrit-Change-Id: I2a2a9982e684b146edfa7f429f7dfef4b5559a1b
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: GWicke
Gerrit-Reviewer: BryanDavis
Gerrit-Reviewer: Dzahn
Gerrit-Reviewer: Eevans
Gerrit-Reviewer: Filippo Giunchedi
Gerrit-Reviewer: Mobrovac
Gerrit-Reviewer: Ppchelko
Gerrit-Reviewer: Yuvipanda
Gerrit-Reviewer: jenkins-bot <>
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits