Commit Graph
5375 Commits
Author SHA1 Message Date
Brian Gough 8cdc8c410a fix error logging 2019-09-26 15:46:45 +01:00
Brian Gough fc62abfcfa run flush of queued projects in the background 2019-09-26 15:46:14 +01:00
Brian Gough ba35c73cb6 add comment about ZPOPMIN 2019-09-26 15:18:10 +01:00
Brian Gough a709a0adaa for simplicity keep the cutoff time the same while flushing the queue 2019-09-26 15:05:38 +01:00
Brian Gough eae4b352ca remove unnecessary check 2019-09-26 14:59:03 +01:00
Brian Gough 9f358ead9f add an acceptance test for flush with queue processing 2019-09-26 10:55:05 +01:00
Brian Gough b49621b3e9 add comments 2019-09-26 10:14:49 +01:00
Brian Gough 83dd43b809 add metric for queue length 2019-09-25 17:04:36 +01:00
Brian Gough f6b2ac7360 queue deletes for deferred processing 2019-09-25 16:42:49 +01:00
Brian Gough f05e048203 Merge pull request #88 from overleaf/bg-upgrade-redis-wrapper
upgrade redis-sharelatex to 1.0.10
2019-09-19 16:26:57 +01:00
Brian Gough c32101f0fb upgrade redis-sharelatex to 1.0.10 2019-09-19 16:22:43 +01:00
Brian Gough adafbb0cf9 Merge pull request #87 from overleaf/bg-remove-redis-server-hashing
remove redis server-side hashing for performance
2019-09-10 14:38:49 +01:00
Brian Gough 912a3a7753 remove redis server-side hashing for performance
we still  compute the document hash in node, and check it on retrieval
but we don't check the hash at the point of writing it in redis which
was previously done with a redis Lua script.
2019-09-09 15:27:58 +01:00
Simon Detheridge b6a7a0ab4c Merge pull request #78 from overleaf/spd-web-ratelimit
Generate retryable error when hitting rate limits in web
2019-09-09 13:58:47 +01:00
Simon Detheridge 21e294c6eb Generate retryable error when hitting rate limits in web 2019-09-02 11:27:04 +01:00
Henry Oswald c64cae2248 Merge pull request #86 from overleaf/ho-add-logging
Add logging for all project flushing
2019-08-30 09:46:46 +01:00
Henry Oswald aa15a76059 added log lines for all project flushing 2019-08-30 07:38:53 +01:00
Henry Oswald 0ae838dd2d add logger into project flusher 2019-08-29 20:36:00 +01:00
Brian Gough 59886a980b Merge pull request #77 from overleaf/bg-minimal-connected-users-fix
only show connected users with a user_id
2019-08-16 10:47:58 +01:00
Brian Gough fe2e7b3065 minimal fix for undefined connected users 2019-08-16 10:07:30 +01:00
Henry Oswald 38ed780d80 add log line to draining 2019-08-15 14:41:22 +01:00
Brian Gough a9ba7937c5 Merge pull request #84 from overleaf/bg-skip-history-flush-on-realtime-shutdown
skip history flush when project is cleared by realtime shutdown
2019-08-15 11:06:15 +01:00
Brian Gough e75f2cc325 add unit tests for skipping history flush 2019-08-15 11:01:45 +01:00
Brian Gough 7493462154 add acceptance test for realtime shutdown 2019-08-15 10:38:07 +01:00
Brian Gough cfbc891175 Merge pull request #75 from overleaf/bg-clean-up-shutdown-code
clean up unused variable, convert setting to number
2019-08-15 10:00:32 +01:00
Brian Gough a76e0dca88 skip history flush when project is cleared by realtime shutdown
history is flushed by a background cron job anyway
2019-08-15 09:51:16 +01:00
Brian Gough b0f0fb64ac clean up unused variable, convert setting to number 2019-08-15 09:48:42 +01:00
Brian Gough a7a161556f Merge branch 'bg-status-on-shutdown' 2019-08-15 09:42:00 +01:00
Brian Gough fa94e3d5e3 Merge pull request #69 from overleaf/ho-drain-connections-timewindow
add shutdownDrainTimeWindow, drains all connections within time range
2019-08-15 09:22:10 +01:00
Brian Gough 022e47b5c8 Merge pull request #73 from overleaf/bg-connected-client-metrics
add connected client count metric
2019-08-15 09:20:03 +01:00
Brian Gough 3552fa40c2 Merge pull request #72 from overleaf/bg-refresh-client-list
refresh client list
2019-08-15 09:19:20 +01:00
Brian Gough f3ab3d7b19 Merge pull request #74 from overleaf/ho-health-check-endpoint
add health check endpoint and http route logger
2019-08-15 09:18:45 +01:00
Henry Oswald 78629610d5 add health check endpoint and http route logger 2019-08-14 15:38:02 +01:00
Brian Gough f13e66b453 fix client count so that result is zero when all clients have left 2019-08-14 15:34:23 +01:00
Brian Gough 8270c14d86 add connected client count metric 2019-08-14 15:22:03 +01:00
Brian Gough d57b229e17 update tests 2019-08-14 13:03:14 +01:00
Brian Gough d3171e4e2e remove unwanted argument 2019-08-14 13:03:06 +01:00
Henry Oswald 2ae4c8c174 Merge branch 'ho-drain-connections-timewindow' of github.com:overleaf/real-time into ho-drain-connections-timewindow 2019-08-14 11:52:22 +01:00
Henry Oswald 4a984f533e remove forceDrainMsDelay
as soon as a pod is marked as being killed we should start draining
2019-08-14 11:51:25 +01:00
Brian Gough 20d442120f notify docupdate if the flush is from a shutdown 2019-08-13 17:36:53 +01:00
Brian Gough 7db882f339 fix unit tests 2019-08-13 17:26:49 +01:00
Brian Gough 0708f717fd reject connections when shutdown in progress
send a message to the client to reconnect immediately
2019-08-13 16:59:15 +01:00
Brian Gough 53431953fc make shutDownInProgress available via settings 2019-08-13 16:56:48 +01:00
Brian Gough b3e5709b64 enforce a minimum drain rate 2019-08-13 16:15:30 +01:00
Henry Oswald 00cca29d9e add shutdownDrainTimeWindow, drains all connections within time range 2019-08-13 14:21:47 +01:00
Brian Gough 5b54d36b37 fail readiness check when shutting down 2019-08-13 10:41:35 +01:00
Brian Gough 2000f478a7 refresh the client list on demand 2019-08-13 10:40:03 +01:00
Alasdair Smith 5b5d6048cc Merge pull request #25 from overleaf/as-remove-unnecessary-deps
Remove unnecessary eslint dependencies
2019-08-12 10:50:19 +01:00
Alasdair Smith 89a7d6db7c Remove unnecessary eslint dependencies 2019-08-12 10:34:28 +01:00
Miguel Serrano 49c7bde799 Merge pull request #66 from overleaf/msm-patched-eventemitter-socketio-node7
Patched EventEmitter for socket.io compatibility with Node >= 7
2019-08-12 11:30:11 +02:00