wir haben Discourse auf Version 2.2.5 aktualisiert.
Es geht dabei um Einschränkungen hinsichtlich der Anzahl der Beiträge pro Benutzer pro Tag.
Unsere Standardeinstellungen lauten: DISCOURSE_MAX_REQS_PER_IP_PER_MINUTE: Anzahl der Anfragen pro IP pro Minute (Standard ist 200) DISCOURSE_MAX_REQS_PER_IP_PER_10_SECONDS: Anzahl der Anfragen pro IP pro 10 Sekunden (Standard ist 50)
Wir möchten diese Werte erhöhen auf: DISCOURSE_MAX_REQS_PER_IP_PER_MINUTE: 1000 DISCOURSE_MAX_REQS_PER_IP_PER_10_SECONDS: 500
Glauben Sie, dass dies Auswirkungen auf den Discourse-Server und die Performance hat?
Einige Benutzer haben sich bereits beschwert, dass sie das Limit für die Anzahl der gesendeten Beiträge erreichen.
01:09:42 {"errors":["You’ve performed this action too many times. Please wait 19 seconds before trying again."],"error_type":"rate_limit","extras":{"wait_seconds":19}}
That is indeed the Nginx per-IP rate limits, are you sure you are not behind a reverse proxy which is incorrectly sending all client IP addresses as the same IP address?
Is it always the same users? Are they trying to use the API?
If it’s not and they aren’t then check the profiles of some affected users, do their IPs look accurate? Are they all the same or similar? If so it’s either a misconfigured reverse proxy or something like Cloudflare being used with the orange cloud enabled without the template specified in the YML.
Yes they are using the same user, to generate a lot of posts per minute (via user API key).
But they now complain they are limited in terms of number of posts allowed for that user.
Do you think it could help if I increase: DISCOURSE_MAX_REQS_PER_IP_PER_MINUTE : 1000 DISCOURSE_MAX_REQS_PER_IP_PER_10_SECONDS : 500
Ich möchte die Rate für eine bestimmte API für Admin festlegen können.
Ich weiß nicht, wie ich die globale Rate ändern soll.
Ich wäre Ihnen dankbar, wenn Sie mir sagen könnten, wo diese Einstellung zu finden ist.
Ich komme aus China, daher ist mein Englisch nicht gut, bitte entschuldigen Sie das.