Adds configuration options examples for keep alive
This commit is contained in:
parent
7610658ac7
commit
dc388ca2db
@ -34,6 +34,15 @@ module.exports.db_pool_size = 500;
|
|||||||
module.exports.db_pool_idleTimeout = 30000;
|
module.exports.db_pool_idleTimeout = 30000;
|
||||||
// Milliseconds between idle client checking
|
// Milliseconds between idle client checking
|
||||||
module.exports.db_pool_reapInterval = 1000;
|
module.exports.db_pool_reapInterval = 1000;
|
||||||
|
// allows to use an object to connect with node-postgres instead of a connection string
|
||||||
|
//module.exports.db_use_config_object = true;
|
||||||
|
// requires enabling db_use_config_object=true
|
||||||
|
// allows to enable/disable keep alive for database connections
|
||||||
|
// by default is not enabled
|
||||||
|
//module.exports.db_keep_alive = {
|
||||||
|
// enabled: true,
|
||||||
|
// initialDelay: 5000
|
||||||
|
//};
|
||||||
module.exports.redis_host = '127.0.0.1';
|
module.exports.redis_host = '127.0.0.1';
|
||||||
module.exports.redis_port = 6379;
|
module.exports.redis_port = 6379;
|
||||||
module.exports.redisPool = 50;
|
module.exports.redisPool = 50;
|
||||||
|
@ -35,6 +35,15 @@ module.exports.db_pool_size = 500;
|
|||||||
module.exports.db_pool_idleTimeout = 30000;
|
module.exports.db_pool_idleTimeout = 30000;
|
||||||
// Milliseconds between idle client checking
|
// Milliseconds between idle client checking
|
||||||
module.exports.db_pool_reapInterval = 1000;
|
module.exports.db_pool_reapInterval = 1000;
|
||||||
|
// allows to use an object to connect with node-postgres instead of a connection string
|
||||||
|
//module.exports.db_use_config_object = true;
|
||||||
|
// requires enabling db_use_config_object=true
|
||||||
|
// allows to enable/disable keep alive for database connections
|
||||||
|
// by default is not enabled
|
||||||
|
//module.exports.db_keep_alive = {
|
||||||
|
// enabled: true,
|
||||||
|
// initialDelay: 5000
|
||||||
|
//};
|
||||||
module.exports.redis_host = '127.0.0.1';
|
module.exports.redis_host = '127.0.0.1';
|
||||||
module.exports.redis_port = 6379;
|
module.exports.redis_port = 6379;
|
||||||
module.exports.redisPool = 50;
|
module.exports.redisPool = 50;
|
||||||
|
@ -40,6 +40,15 @@ module.exports.redis_port = 6379;
|
|||||||
module.exports.redisPool = 50;
|
module.exports.redisPool = 50;
|
||||||
module.exports.redisIdleTimeoutMillis = 10000;
|
module.exports.redisIdleTimeoutMillis = 10000;
|
||||||
module.exports.redisReapIntervalMillis = 1000;
|
module.exports.redisReapIntervalMillis = 1000;
|
||||||
|
// allows to use an object to connect with node-postgres instead of a connection string
|
||||||
|
//module.exports.db_use_config_object = true;
|
||||||
|
// requires enabling db_use_config_object=true
|
||||||
|
// allows to enable/disable keep alive for database connections
|
||||||
|
// by default is not enabled
|
||||||
|
//module.exports.db_keep_alive = {
|
||||||
|
// enabled: true,
|
||||||
|
// initialDelay: 5000
|
||||||
|
//};
|
||||||
module.exports.redisLog = false;
|
module.exports.redisLog = false;
|
||||||
// Max number of entries in the query tables cache
|
// Max number of entries in the query tables cache
|
||||||
module.exports.tableCacheMax = 8192;
|
module.exports.tableCacheMax = 8192;
|
||||||
|
@ -32,6 +32,15 @@ module.exports.db_pool_size = 500;
|
|||||||
module.exports.db_pool_idleTimeout = 30000;
|
module.exports.db_pool_idleTimeout = 30000;
|
||||||
// Milliseconds between idle client checking
|
// Milliseconds between idle client checking
|
||||||
module.exports.db_pool_reapInterval = 1000;
|
module.exports.db_pool_reapInterval = 1000;
|
||||||
|
// allows to use an object to connect with node-postgres instead of a connection string
|
||||||
|
//module.exports.db_use_config_object = true;
|
||||||
|
// requires enabling db_use_config_object=true
|
||||||
|
// allows to enable/disable keep alive for database connections
|
||||||
|
// by default is not enabled
|
||||||
|
//module.exports.db_keep_alive = {
|
||||||
|
// enabled: true,
|
||||||
|
// initialDelay: 5000
|
||||||
|
//};
|
||||||
module.exports.redis_host = '127.0.0.1';
|
module.exports.redis_host = '127.0.0.1';
|
||||||
module.exports.redis_port = 6336;
|
module.exports.redis_port = 6336;
|
||||||
module.exports.redisPool = 50;
|
module.exports.redisPool = 50;
|
||||||
|
Loading…
Reference in New Issue
Block a user