Brian Gough
|
c21cc013f3
|
use null instead of err in callbacks on success
|
2017-07-12 10:48:32 +01:00 |
|
Brian Gough
|
bb0dc4b4d5
|
release the lock if it took too long to acquire it
|
2017-07-12 10:48:32 +01:00 |
|
Brian Gough
|
54c0fc1180
|
put a 5 second timeout in getting redis lock
|
2017-07-11 14:28:58 +01:00 |
|
Brian Gough
|
673f4228ce
|
add metric for unlock errors
sentry does not record them reliably, due to rate limiting
|
2017-06-05 16:29:58 +01:00 |
|
Brian Gough
|
a550078071
|
replace verbose logging by slow query log
|
2017-05-18 15:04:12 +01:00 |
|
Brian Gough
|
387ecac6cb
|
log for each get/try/release lock
|
2017-05-18 11:17:08 +01:00 |
|
Brian Gough
|
dff6e2c3da
|
bug fix in backoff
|
2017-05-16 16:31:28 +01:00 |
|
Brian Gough
|
c7d8fbbb8a
|
exponential backoff for lock up to maximum time
|
2017-05-16 15:22:02 +01:00 |
|
James Allen
|
4104ca4889
|
Add in separate redis config for the lock and fix a few web -> realtime
|
2017-05-03 16:27:32 +01:00 |
|
Brian Gough
|
5583764d05
|
fix callback prototype in getLock
|
2017-03-30 15:31:47 +01:00 |
|
Brian Gough
|
c11618b475
|
improve unlock error handling
|
2017-03-30 15:31:34 +01:00 |
|
James Allen
|
508a95c19b
|
Use the main redis instance for locks
|
2016-07-06 11:50:02 +01:00 |
|
James Allen
|
1db6f8f159
|
Pull out rclient into RedisBackend that supports sending requests to multiple rclients
|
2016-06-07 17:58:18 +01:00 |
|
James Allen
|
4ab4e27724
|
Include COUNT in lock and make RND per-process incase randomBytes blocks
|
2016-04-13 16:27:53 +01:00 |
|
James Allen
|
d15a22be26
|
Remove misleading log line about lock value
|
2016-04-13 12:20:53 +01:00 |
|
James Allen
|
945c728db2
|
Use signed locks so only the locking party can remove their lock
|
2016-04-13 11:59:56 +01:00 |
|
Henry Oswald
|
5ff8983528
|
implemeneted redis-sharelatex
|
2014-10-07 12:08:36 +01:00 |
|
Henry Oswald
|
9c85e9b848
|
moved back to not include sentinal while we upgrade to 0.10.x node
|
2014-09-29 12:07:32 +01:00 |
|
Henry Oswald
|
672dd3de1b
|
works with sentinal v1
|
2014-09-26 17:38:59 +01:00 |
|
James Allen
|
d1434f7646
|
Increase redis lock expiry time to 30 seconds
|
2014-05-07 09:48:29 +01:00 |
|
James Allen
|
414b669a2c
|
Point every redis connection to the new config
|
2014-02-13 10:36:26 +00:00 |
|
James Allen
|
e1a7d4f24a
|
Initial open sourcing
|
2014-02-12 10:40:42 +00:00 |
|