Commit Graph

46 Commits

Author SHA1 Message Date
Daniel García Aubert
fdaae20af7 Use let instead of var 2018-11-15 14:34:36 +01:00
Daniel García Aubert
267baf621e Send userm system, time and percent CPU metrics 2018-11-15 13:49:57 +01:00
Daniel García Aubert
e28349ff29 Send metrics about memory and CPU usage 2018-11-15 11:03:51 +01:00
Daniel García Aubert
a616982ec3 Use strict mode 2018-10-24 15:42:33 +02:00
Simon Martín
b4724d7408 data ingestion logger reopenFileStreams 2018-06-18 18:48:38 +02:00
Daniel García Aubert
d7e24f7745 Use external module to get full qualified domain name properly 2018-06-08 13:30:54 +02:00
Raul Ochoa
28af78ba99 Avoid global stats client 2017-03-30 17:32:22 +02:00
Raul Ochoa
57d7ec3048 Make active GC cycles for Node.js >=v6 2017-03-30 16:27:34 +02:00
Raul Ochoa
db9bfacf07 Extract stats client creation 2017-03-30 16:13:17 +02:00
Raul Ochoa
742d7255a1 Log Node.js version on startup 2017-02-10 10:03:36 +01:00
Raul Ochoa
bf1a67780d Merge branch 'master' into express-4.x 2016-09-30 17:37:30 +02:00
Raul Ochoa
b0dfe1d509 Only reload log files if logger exists 2016-09-30 17:10:52 +02:00
Daniel García Aubert
aa0ce62a85 Implement batch logger to log query times when queries are defined with id 2016-09-29 15:09:36 +02:00
Raul Ochoa
abc2f130c9 Migrate to express 4.x series
- Remove express logger
 - Error handler responds with application/[json|javascript]
 - Fix all tests relying on res.headers
 - assert.response based on request module
2016-09-26 18:09:27 +02:00
Raul Ochoa
4dfdb2eaea Fix example 2016-09-15 00:40:25 +02:00
Raul Ochoa
27b73cb163 Allow to use --config /path/to/config.js to specify configuration file 2016-09-15 00:36:24 +02:00
Raul Ochoa
510f1cd7d7 Rename var 2016-09-14 23:10:14 +02:00
Raul Ochoa
84b80547c2 Remove settings' app_root 2016-09-14 21:02:56 +02:00
Raul Ochoa
f92d50cccf Rename from app to server
Removes app_root dependency in requires
2016-09-14 20:54:53 +02:00
Raul Ochoa
e315e77525 Allow to use absolute paths for log files
Fixes #355
2016-09-14 20:03:16 +02:00
Raul Ochoa
0626d80e24 Removes support for optional rollbar logging 2016-09-14 19:22:31 +02:00
Daniel García Aubert
e9bd93cf3f Now batch service is linked to express app in order to make it accesible from main app module to expose drain mechanism 2016-01-25 16:28:19 +01:00
Daniel García Aubert
c6bae6d951 app module moved to right place 2015-12-03 18:33:17 +01:00
Daniel García Aubert
a697fe6faa Making test pass 2015-12-03 18:19:39 +01:00
Daniel García Aubert
e5dedb6315 Split query controller and separated from app 2015-12-03 17:28:18 +01:00
Raul Ochoa
cac2fff5ed jshint: fix application entrypoint 2015-05-12 17:33:41 +02:00
Raul Ochoa
256b82b1d8 Closes fd for log files on kill -HUP. Fixes #187 2014-12-02 12:25:25 +01:00
Luis Bosque
6bb015bb14 [CDB-3678] Add X-Served-By-Host header 2014-07-30 12:39:03 +02:00
Raul Ochoa
bd6c1e7164 Adds support to append logs to file with log4js. It listens to HUP signal to re-open the log file. In case the specified log filename is not writeable the server will not start. 2014-06-04 19:46:13 +02:00
Sandro Santilli
7100da2200 Set the NODE_ENV environment variable from app.js 2014-03-14 10:48:33 +01:00
Sandro Santilli
4013e84b15 Allow passing environment configuration name via NODE_ENV to app.js
Also print environment configuration name on app start
2014-03-13 13:54:10 +01:00
Sandro Santilli
a1adabdeb8 Include version in startup log 2014-03-13 13:50:53 +01:00
Sandro Santilli
65f31fd7c1 Add optional support for rollbar
Closes #150
Logs messages of severity ERROR or higher
2014-03-13 12:09:39 +01:00
Sandro Santilli
1f3aca837b Use log4js for logging
Closes #136
2014-03-13 11:52:40 +01:00
Sandro Santilli
6c47537f47 Honour the 'node_socket_timeout' configuration directive
Closes #128
Includes testcase, which required enhancing assert.response to
handle errors.
Changes app controller to a function that only reads configuration
when executed (rather than when only require'd).
2014-01-31 10:58:19 +01:00
Sandro Santilli
1c9179eeec Allow 'staging' as an env name for non-clustered run 2013-05-29 17:09:20 +02:00
Sandro Santilli
650756852a Use a default base_url when not specified in config file
Also report the base_url at startup
2013-05-24 14:45:10 +02:00
Sandro Santilli
133add8741 Allow using "test" as and environment name 2013-03-14 09:16:06 +01:00
Sandro Santilli
7fe09935cd Restrict listening host to configured `node_host` 2012-10-09 18:41:23 +02:00
Simon Tokumine
eba7eb4e28 quick tidy 2011-10-07 17:28:07 +01:00
Simon Tokumine
d9bdb1f1dc trim startup things 2011-08-23 14:58:06 +01:00
Simon Tokumine
fefa051450 added true oauth to application. got rid of bogus 2011-08-17 17:27:45 +01:00
Simon Tokumine
80ecdc565c oauth 2011-06-20 15:39:12 +02:00
Fernando Blat
21277ff9d2 Introduced a new parameter db_port to change it in a easy way
Some space and linebreaks cleaning
2011-06-13 12:31:50 +02:00
Simon Tokumine
bcd56de458 first draft, tidied, unit tests, modules, refactor, environments, see TODO for next steps" 2011-06-13 04:23:02 +01:00
Fernando Blat
159f72fe3d First version of the API server with some TODOs to solve 2011-06-09 18:34:02 +02:00