12345678910111213141516171819202122232425262728 |
- //waitForConnections: 决定当没有连接池或者链接数打到最大值时pool的行为. 为true时链接会被放入队列中在可用是调用,为false时会立即返回error. (Default: true)
- //connectionLimit: 最大连接数. (Default: 10)
- //queueLimit: 连接池中连接请求的烈的最大长度,超过这个长度就会报错,值为0时没有限制. (Default: 0)
- global['DEBUG'] = true;
- var dbInfo = {};
- dbInfo['Web'] = {
- host : '221.228.83.154',
- user : 'ojiatest',
- password : 'ojia305',
- database : 'Web',
- port : 3306,
- connectionLimit : 100,
- };
- var redisInfo = {};
- redisInfo['Web'] = {
- host : '221.228.83.154',
- port : 6407,
- password : 'ojia123',
- db : 1
- };
- exports.dbInfo = dbInfo;
- exports.redisInfo = redisInfo;
|