Commit Graph

188 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
77d47b31fb cleanly shutdown
wait for webserver to stop accepting connections
destroy current connections
wait for db connection to close
2018-03-22 16:36:23 -04:00
Barış Soner Uşaklı
8a6345ded7 possible fix for pubsub 2018-01-22 16:41:22 -05:00
Ben Lubar
e85aabbe74 Allow running as a cluster without Redis (#6233)
* [database/*] Allow databases other than Redis to provide pubsub for clustering if Redis is not present

* [pubsub] Delay messages sent before the database is ready until the database is ready.

* [pubsub] Restore old behavior of not using the database in non-clustered NodeBB instances.

See comment: https://github.com/NodeBB/NodeBB/pull/6233#issuecomment-357814968
2018-01-18 13:02:56 -05:00
Baris Usakli
5ca3b535e7 closes #6105 2017-11-22 12:19:08 -05:00
Peter Jaszkowiak
e609e497b3 Provide more error information to logs
Provides full stack instead of just message
2017-11-01 18:59:48 -06:00
Barış Soner Uşaklı
7ad4420b6a closes #6000 2017-10-23 15:09:13 -04:00
Baris Usakli
7fe239229d show 3 digits 2017-06-20 16:34:34 -04:00
Peter Jaszkowiak
3c2d4fe649 Switch from underscore to lodash 2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
fd0043f36a more tests 2017-05-19 20:24:54 -04:00
Barış Soner Uşaklı
54a9e7eab9 #5674 2017-05-12 15:53:07 -04:00
Barış Soner Uşaklı
33f135c091 closes #5675 2017-05-12 15:40:09 -04:00
barisusakli
b91b41dfa3 show database values in gbs 2017-04-22 17:08:54 -04:00
barisusakli
b7b65c7d63 change style 2017-04-22 00:19:23 -04:00
barisusakli
65a65b19c0 tests for #5600 2017-04-16 14:46:02 -04:00
barisusakli
9f8d80e3a4 closes #5600 2017-04-16 14:22:40 -04:00
Peter Jaszkowiak
57696b22f4 Partial fix #5538 2017-03-30 03:17:45 -06:00
Barış Soner Uşaklı
6b0a907ede closes #5552 2017-03-26 15:12:28 +03:00
Julian Lam
b6134b160e moved auto_reconnect out of socketOptions object for Mongo 2017-03-21 15:55:24 -04:00
barisusakli
5e0de4b8fb closes #5517 2017-03-10 12:22:10 +03:00
barisusakli
0c7dee05ef fix lint 2017-03-10 00:38:34 +03:00
barisusakli
92fa9fecb6 add mongodb connection options #3670
increase reconnect tries
add keepAlive setting
set autoReconnect to true, should be on by default
2017-03-10 00:31:50 +03:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
a038c66549 ESlint quotes 2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
b1b486f729 ESlint quote-props 2017-02-18 01:19:20 -07:00
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
1cf25f57fc ESlint no-space-func 2017-02-17 22:17:10 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
Dominic Lennon
3f116e7636 Fixing null ttl issue for MongoSession 2017-01-16 14:58:27 +00:00
Dominic Lennon
b1f0f8fa8b Adding ttl value to the MongoStore options 2017-01-16 14:52:25 +00:00
Dominic Lennon
a06e39528f Code review change 2017-01-16 08:48:53 +00:00
Dominic Lennon
ed19454eca Adding more specific timing for session timings 2017-01-11 10:51:41 +00:00
Dominic Lennon
d248ef95cd Fix for issue #5334. SessionStore now uses the correct value 2017-01-10 11:48:27 +00:00
Barış Soner Uşaklı
e0501656b6 parallel startup 2016-12-09 00:18:25 +03:00
Barış Soner Uşaklı
bca6151892 fix lint 2016-12-09 00:00:40 +03:00
Barış Soner Uşaklı
8c8e2ae190 closes #5271 2016-12-09 00:00:39 +03:00
barisusakli
1c3d9f7e94 switch to createIndex 2016-11-24 16:15:04 +03:00
barisusakli
5d6e2ad083 multiple test fixes 2016-11-23 17:15:36 +03:00
barisusakli
6d97c4cec8 up mongo deps, create session store after db.authenticate 2016-10-14 22:18:28 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
3275d26590 removed comments 2016-10-07 11:03:19 +03:00
Nguyen Trung Quan
279559ff97 Fix: Memory leak & connection flood when access /admin/advanced/database 2016-10-07 11:14:28 +07:00
barisusakli
7f041a756d closes #4865 2016-08-04 20:58:04 +03:00
wktang
414a26fe42 Default mongodb db name should be "nodebb" instead of 0 (unlike redis). (#4573) 2016-04-27 14:52:36 -04:00
Mr.Lee
3e2f36fc29 Make the description more clear.
The same description in mongo.js  and install.js are ambiguous.
2016-04-16 23:34:57 +08:00
barisusakli
20ca1e40aa fallback 2016-01-11 18:40:40 +02:00
barisusakli
d44d036b67 up mongodb connect-mongo remove workaround 2016-01-11 17:42:23 +02:00
barisusakli
7185463d81 display avg object size in bytes 2015-12-26 08:40:08 +02:00
barisusakli
dcbf53bae3 moved search to dbsearch 2015-12-11 10:57:13 +02:00
barisusakli
a1dca63914 fileSize fix 2015-10-17 18:38:34 -04:00
barisusakli
a9fae94e5a switch to dbStats, only display fileSize if it exists 2015-10-17 18:37:07 -04:00