Commit Graph
26171 Commits
Author SHA1 Message Date
James Allen 8db30020ae Monitor event loop by looking for skew
If we monitor with setImmediate, we miss big blocking loops. For example,
suppose we have 1000 1ms loops then a single bad 1000ms loop. setImmediate
will only be called at the right time 1/1000 of the time (it has to be the
loop just before the bad one). So this monitoring method gives a good average
if the std dev is low, but doesn't pick up spikes.

Instead, we can monitor the skew from the expected time between setIntervals.
In the case above, with a setInterval for 1000ms, we will pick up a skew
proportional to the amount of time that it overlaps the bad loop. So 50%
change of picking up skew > 500ms, and thus getting a good sense of any
spikes.
2015-12-03 16:32:20 +00:00
James Allen 3b559d3966 Remove undefined reference to dst 2015-12-03 14:54:48 +00:00
James Allen 50112a59d4 Monitor memory usage and do periodic GC 2015-12-03 10:52:06 +00:00
Henry Oswald 25411189a7 redirect to login if session expired in file upload 2015-12-02 15:40:14 +00:00
Henry Oswald 1541eb319c add more null checks to health check 2015-12-02 10:10:52 +00:00
Henry Oswald a964119b5e check err in health check and null check res 2015-12-01 21:50:18 +00:00
Henry Oswald 1d0228ce0c updated packages to work with node 4.2
still needs a deep test
2015-12-01 21:28:35 +00:00
Henry Oswald 9383977ca5 remove socket.io as a dependency 2015-12-01 21:18:00 +00:00
Henry Oswald 30bfae5b35 upgraded bunyan 2015-12-01 20:51:08 +00:00
James Allen 5b17764da2 Pin down logger version number 2015-12-01 17:28:26 +00:00
James Allen 3580e3ba6b Update to latest logger 2015-12-01 17:18:45 +00:00
Henry Oswald 62908092b9 Added tip for copying the database when upgrading 2015-12-01 16:17:15 +00:00
Brian Gough e8f09f3357 added comment about flushing to track changes 2015-12-01 16:03:05 +00:00
Brian Gough 6e97521971 Revert "Merge pull request #4 from sharelatex/flush-ops-from-redis"
This reverts commit 84a9ad8b67b860a92271cf7bb669cf21cc0b5b86, reversing
changes made to a6d4649f4f2db06862e8cbc5e132a073ce8c20b2.
2015-12-01 15:58:40 +00:00
Brian Gough 13e22e1802 Revert "only flush to track-changes when ops are queued"
This reverts commit 0baa8f989481ca263fa71e90af21f13b29c29504.
2015-12-01 15:48:49 +00:00
Brian Gough 64f5d5526e Revert "update tests"
This reverts commit 501e891760fd5c5bd0e6ffc75f866fd565561f31.
2015-12-01 15:48:31 +00:00
Henry Oswald 6738fdd1fc added translation for rate limit message to client 2015-12-01 13:11:19 +00:00
Henry Oswald 8590af3e49 added rate limit on server side for file uploads 2015-12-01 13:08:49 +00:00
Henry Oswald a6aea41fb1 added max of 20 files which can be uploaded at same time to client 2015-12-01 12:55:35 +00:00
James Allen 830d676f4f Add in limit on all JSON parsing 2015-12-01 11:05:49 +00:00
Henry Oswald 69734c20c0 added heapdump endpoint 2015-11-30 16:16:16 +00:00
James Allen 92d18d7e2e Reduce limit to actuall 1Mb, not 1Gb 2015-11-30 15:40:03 +00:00
James Allen 0372fa3203 Add in extra logging about size of messages 2015-11-30 15:25:09 +00:00
Brian Gough 4bf90afe0e update tests 2015-11-30 15:22:21 +00:00
Brian Gough 7a9577e081 only flush to track-changes when ops are queued 2015-11-30 15:17:11 +00:00
Henry Oswald 4fa38178be ignore some common errors in sentry 2015-11-30 13:49:46 +00:00
Marc Egea i Sala 866f7dedee Fix error log folder
Error log is stored under /var/log/err.log. This PR fixes it and stores the log under /var/log/wlgb/err.log
2015-11-30 11:06:00 +00:00
Marc Egea i Sala dfb4835cc1 Merge pull request #6 from overleaf/version-update
Update local version after processing snapshots
2015-11-30 11:00:41 +00:00
Brian Gough 529a061567 Merge pull request #4 from sharelatex/flush-ops-from-redis
push ops to track changes when document is flushed
2015-11-30 10:46:21 +00:00
Brian Gough 11be8c3733 increase timeout in lock manager test
on heavily loaded machines 20ms isn't long enough to consistently get
multiple calls to the lock manager
2015-11-27 14:25:25 +00:00
Brian Gough 3842f0d1cc Merge pull request #9 from sharelatex/only-delete-applied-ops
Only delete applied ops
2015-11-27 12:45:51 +00:00
Brian Gough dedb02596f Merge pull request #10 from sharelatex/update-in-place
modify last compressed op in place
2015-11-27 12:45:43 +00:00
Brian Gough 8ebc069ddb modify last compressed op in place 2015-11-26 16:17:18 +00:00
Brian Gough 3432d9e91a added comments for redis delete 2015-11-26 15:16:54 +00:00
James Allen 8ddfbb99de Only parse body when we need to for copyFile request 2015-11-25 17:01:19 +00:00
James Allen bc6c8d6afc Don't send multiple status codes on insertFile error 2015-11-25 16:07:51 +00:00
Brian Gough e65549099c only delete the applied ops from redis 2015-11-25 16:01:07 +00:00
Henry Oswald d6b3262ac7 Merge pull request #19 from EDP-Sciences/master
Add a PersistorManager library using the aws-sdk library
2015-11-25 14:50:38 +00:00
Xavier Trochu 81a7203315 Fix the checkIfFileExists API. 2015-11-25 15:40:35 +01:00
Henry Oswald 5213be4fe9 Merge branch 'master' of https://github.com/sharelatex/web-sharelatex 2015-11-25 11:54:40 +00:00
Henry Oswald 91a84cb232 increase compile throttle limit 2015-11-25 11:07:53 +00:00
Henry Oswald 1ddf95e746 accesabble != accessible 2015-11-24 16:53:44 +00:00
Henry Oswald 8ca962b734 added missing convert handler 2015-11-24 14:17:40 +00:00
Marc Egea i Sala 0390f80aaa Merge pull request #5 from overleaf/file-not-in-the-current-commit
Try to download file if it's not in the git tree
2015-11-24 13:22:46 +00:00
John Lees-Miller 318e11deeb mock the persistent store with jmock 2015-11-24 12:06:43 +00:00
John Lees-Miller e2574ab163 fix whitespace 2015-11-24 12:06:05 +00:00
John Lees-Miller 62749a0dab update to IDEA 15 2015-11-24 12:05:54 +00:00
John Lees-Miller 624c3e6af1 update to junit 4.12 to get jmock working
Also moved junit to the test scope.
2015-11-24 12:05:24 +00:00
Henry Oswald 4f3b01ed43 Merge branch 'master' of https://github.com/sharelatex/web-sharelatex 2015-11-23 17:11:06 +00:00
Henry Oswald 89b2cd8477 added secure banner to both payment forms 2015-11-23 17:10:53 +00:00