Gehel has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370800 )

Change subject: Tuning of throttling parameters.
......................................................................

Tuning of throttling parameters.

User feedback is that throttling happens too often when request times out.

Parameters are updated as:

* 60 seconds of query time per minute, burst at 120 seconds per minute (from
  60 seconds per minute, no burst)
* 30 errors per minute, burst at 60 errors per minute (from 10 errors per
  minute, no burst)

Change-Id: I9ab4a5ea832b78cb5d11576d93da867b50b75f1b
---
M 
blazegraph/src/main/java/org/wikidata/query/rdf/blazegraph/throttling/ThrottlingFilter.java
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/rdf 
refs/changes/00/370800/1

diff --git 
a/blazegraph/src/main/java/org/wikidata/query/rdf/blazegraph/throttling/ThrottlingFilter.java
 
b/blazegraph/src/main/java/org/wikidata/query/rdf/blazegraph/throttling/ThrottlingFilter.java
index 9477ed4..c6d5a71 100644
--- 
a/blazegraph/src/main/java/org/wikidata/query/rdf/blazegraph/throttling/ThrottlingFilter.java
+++ 
b/blazegraph/src/main/java/org/wikidata/query/rdf/blazegraph/throttling/ThrottlingFilter.java
@@ -104,11 +104,11 @@
     @Override
     public void init(FilterConfig filterConfig) throws ServletException {
         int requestDurationThresholdInSeconds = 
loadIntParam("request-duration-threshold-in-seconds", filterConfig, 10);
-        int timeBucketCapacityInSeconds = 
loadIntParam("time-bucket-capacity-in-seconds", filterConfig, 60);
+        int timeBucketCapacityInSeconds = 
loadIntParam("time-bucket-capacity-in-seconds", filterConfig, 120);
         int timeBucketRefillAmountInSeconds = 
loadIntParam("time-bucket-refill-amount-in-seconds", filterConfig, 60);
         int timeBucketRefillPeriodInMinutes = 
loadIntParam("time-bucket-refill-period-in-minutes", filterConfig, 1);
-        int errorBucketCapacity = loadIntParam("error-bucket-capacity", 
filterConfig, 10);
-        int errorBucketRefillAmount = 
loadIntParam("error-bucket-refill-amount", filterConfig, 100);
+        int errorBucketCapacity = loadIntParam("error-bucket-capacity", 
filterConfig, 60);
+        int errorBucketRefillAmount = 
loadIntParam("error-bucket-refill-amount", filterConfig, 30);
         int errorBucketRefillPeriodInMinutes = 
loadIntParam("error-bucket-refill-period-in-minutes", filterConfig, 1);
         int maxStateSize = loadIntParam("max-state-size", filterConfig, 10000);
         int stateExpirationInMinutes = 
loadIntParam("state-expiration-in-minutes", filterConfig, 15);

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ab4a5ea832b78cb5d11576d93da867b50b75f1b
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/rdf
Gerrit-Branch: master
Gerrit-Owner: Gehel <guillaume.leder...@wikimedia.org>

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

Reply via email to