-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
There appears to be an issue with redis connections. They work fine for a time and then they seem to break.
It appears to me as if the error message that was used to determine if the client should be re-registered has changed. Instead of it only being UNKNOWN_CLIENT
it is now ERR UNKOWN_CLIENT
bottleneck/src/RedisDatastore.coffee
Line 89 in b835283
else if e.message == "UNKNOWN_CLIENT" |
The error received. This error happens exactly every 5 seconds.
ReplyError: ERR UNKNOWN_CLIENT
at parseError (/app/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14) {
command: 'EVALSHA',
args: [
'8bd3e064b718321194a8df49c69e48fd0ffb4dcd',
8,
'b_node-print-rate-limit_settings',
'b_node-print-rate-limit_job_weights',
'b_node-print-rate-limit_job_expirations',
'b_node-print-rate-limit_job_clients',
'b_node-print-rate-limit_client_running',
'b_node-print-rate-limit_client_num_queued',
'b_node-print-rate-limit_client_last_registered',
'b_node-print-rate-limit_client_last_seen',
1677246715764,
'fbe2isbe9mc'
],
code: 'ERR'
}
In my setup I am passing in the redis connection details directly and using the redis datastore option.
const rateLimiter = new Bottleneck({
maxConcurrent: 2,
minTime: 100,
// set the limiter id
id: "node-print-rate-limit",
// setup the redis store
datastore: "redis",
clientOptions: getDetails(),
timeout: 30 * 1000,
});
seanc, douglascayers, laur-tapp and fawad-redwireless
Metadata
Metadata
Assignees
Labels
No labels