Commit Graph

68 Commits

Author SHA1 Message Date
Christopher Hoskin
5d2eb129e8 Init metrics at top of app.coffee 2019-01-11 10:19:47 +00:00
Henry Oswald
541dac11cb pull clsi compile size limit into setting and bump to 7mb 2019-01-08 12:56:16 +00:00
Christopher Hoskin
f92e626647 Inject routes after app defined 2018-11-29 15:49:12 +00:00
Christopher Hoskin
6159aff001 Inject metrics 2018-11-29 14:30:00 +00:00
Henry Oswald
7c4c8a9e44 remove debugging get settings function 2018-09-14 10:26:40 +01:00
Henry Oswald
c490479a1a remove some console.logs 2018-07-30 15:11:41 +01:00
Henry Oswald
dd015a05cb remove express header 2018-07-16 15:38:23 +01:00
Henry Oswald
a75cec7d52 added maint down endpoint 2018-07-05 15:07:07 +01:00
Henry Oswald
ec85957ae4 add load balance http endpoints to shut box down 2018-06-28 16:04:34 +01:00
Henry Oswald
b330ee2d5b grep works with command
updated build scripts
acceptence tests break, files are written as root when user is node
2018-03-29 17:07:22 +01:00
Henry Oswald
b5a7eabaab update build script and add load balancer agent 2018-03-29 12:12:29 +01:00
Henry Oswald
17c51c2ba0 added debugging and new moving commands 2018-03-16 17:30:11 +00:00
Henry Oswald
a2a8b70b74 acceptence tests pass inside docker container (apart from sync) 2018-03-02 17:14:23 +00:00
James Allen
b64106b730 Provide hosts and siblings container as environment settings and add npm run start script
wip acceptence tests run, but don't all pass

wip

removed npm-debug from git
2018-03-02 17:14:18 +00:00
Joe Green
3692570df0 Increase smoke test interval to 30 seconds
The smoke tests can sometimes take ~20 seconds to complete, which causes the http POST to time out. This should solve that problem.
2017-11-29 11:01:51 +00:00
Henry Oswald
e5081df2a9 Revert "change"
This reverts commit 104ce81ebd.
2017-07-23 22:45:04 +01:00
Henry Oswald
104ce81ebd change 2017-07-23 22:42:07 +01:00
Shane Kilkelly
a74f4ac1a6 Send a 404 if the project files have gone away when running synctex.
This is semantically nicer than the 500 response which used to be
produced in these circumstances.
2017-06-23 14:46:40 +01:00
Henry Oswald
d4d3048719 remove tcp code, moved to agent load balancer 2017-02-23 11:09:18 +00:00
Henry Oswald
bc1b8f4b2f Update app.coffee 2017-02-20 15:19:04 +00:00
Henry Oswald
599977c3e0 if host has 1 cpu (staging) then set availableWorkingCpus to 1 2017-02-20 15:16:52 +00:00
Brian Gough
69666bef60 add support for stopping compile 2016-07-14 16:43:52 +01:00
Brian Gough
0b8435e358 add route to serve files from top level of per user containers 2016-06-15 16:12:19 +01:00
Brian Gough
0887fe3a72 add per-user routes for clearing cache and extend expiry methods
this adds separate functionality for clearing the cache (assets and
database) and the project compile directory for a specific user
2016-06-02 15:32:33 +01:00
Brian Gough
226e6c87b1 add per-user routes and methods 2016-06-02 15:32:31 +01:00
Brian Gough
0da85d5d03 be ready to serve files from per-user containers 2016-05-20 10:23:07 +01:00
Brian Gough
f8ae215c1e avoid clobbering the existing port variable 2016-05-19 16:38:18 +01:00
Brian Gough
f92c70935b allow direct path to output file /project/project_id/build/build_id/output/*
this avoids use of the query string ?build=... and so we can match the
url directly with the nginx location directive
2016-05-13 10:10:48 +01:00
Henry Oswald
5f7cd5ece5 added project status endpoint
used for getting the server a project is on
2016-04-20 15:38:05 +01:00
Henry Oswald
3c021fd4c9 ignore ECONNRESET 2016-04-12 13:32:58 +01:00
Henry Oswald
f453f954e4 use socket.end for tcp checks 2016-04-12 10:49:45 +01:00
Henry Oswald
cd499fa4e5 server load endpoint uses settings for port 2016-04-11 13:47:06 +01:00
Henry Oswald
7799e0bfdd return 0 for server which is being hammered
socket.destroy when finished
2016-04-08 15:40:02 +01:00
Henry Oswald
6ca8c10734 added err handler to socket 2016-04-08 15:25:00 +01:00
Henry Oswald
84cba7365f work of 1 min load and set server as up 2016-04-08 15:18:22 +01:00
Henry Oswald
11be12fc8e evaluate on every call 2016-04-08 14:14:05 +01:00
Henry Oswald
3e70c0f8e4 added example server load tcp server 2016-04-08 13:31:23 +01:00
Brian Gough
665dbff75a parameter check on project_id 2016-03-31 12:12:25 +01:00
Brian Gough
8fcbec5c0f add support for sentry 2016-03-30 14:35:47 +01:00
Shane Kilkelly
29be2dc700 When serving output files, intelligently determine the appropriate content-type.
cherry pick 6fa3fda3ed28239cf3ac9720629f9707663aa197 from datajoy.
2015-09-21 16:59:35 +01:00
Henrique Dias
ba475db052 Merge remote-tracking branch 'upstream/master' into texcount 2015-09-08 09:13:04 -03:00
Brian Gough
c2054a5ec3 add memory logger from metrics-sharelatex 2015-08-14 14:47:42 +01:00
Henrique Dias
25d73ab6f9 initial version of texcount 2015-06-08 18:35:24 -03:00
Brian Gough
03c105c3d9 replace deprecated send(code,body) calls 2015-05-15 16:27:39 +01:00
Henry Oswald
d9d16b7189 make startup message consistent 2015-04-30 15:07:48 +01:00
Brian Gough
143f948193 add heapdump support for memory profiling 2015-04-09 14:40:02 +01:00
Brian Gough
65f2f23cf6 add v8 profiler on /profile?time=MS url 2015-03-16 15:02:45 +00:00
Brian Gough
37cc9f3715 provide a static server which forbids symlinks
prevents mismatch between rootdir of server and rootdir of symlink
checking middleware
2015-02-27 13:57:57 +00:00
Brian Gough
0692e964ef use OutputCacheManager to construct static path to files 2015-02-27 13:16:01 +00:00
Brian Gough
151ea99639 accept build id parameter when serving static files 2015-02-25 17:05:19 +00:00