Skip to content

Commit

Permalink
patch: Addresses Issue zotero/dataserver#130
Browse files Browse the repository at this point in the history
When a message has continued=false, delay is only 250ms

Increase global-topic delays
  • Loading branch information
uniuuu committed Oct 22, 2023
1 parent 2d1d79e commit 6ad8515
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/stream-server/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ var config = {
],
// Minimum delay before clients should act on global topic notifications -- since these are triggered
// by webhooks or other queued notifications, they need time to be processed elsewhere
globalTopicsMinDelay: 30 * 1000,
globalTopicsMinDelay: 60 * 1000,
// Notification action period -- clients are given a randomly chosen delay within this time
// period before they should act upon the notification, so that we don't DDoS ourselves
globalTopicsDelayPeriod: 180 * 1000,
continuedDelayDefault: 3 * 1000,
globalTopicsDelayPeriod: 1800 * 1000,
defaultDelay: 3 * 1000,
continuedDelay: 30 * 1000,
notContinuedDelay: 250,
statsD: {
host: ''
}
Expand Down

0 comments on commit 6ad8515

Please sign in to comment.