...
|
...
|
@@ -185,7 +185,27 @@ if (isProduction) { |
|
|
open: false,
|
|
|
url: 'http://123.206.2.55/strategy'
|
|
|
},
|
|
|
zookeeperServer: 'web.zookeeper.yohoops.org:2181'
|
|
|
zookeeperServer: 'web.zookeeper.yohoops.org:2181',
|
|
|
redis: {
|
|
|
connect: {
|
|
|
host: '10.66.101.9'
|
|
|
},
|
|
|
port: '6379',
|
|
|
retry_strategy(options) {
|
|
|
if (options.error && options.error.code === 'ECONNREFUSED') {
|
|
|
console.log('redis连接不成功');
|
|
|
}
|
|
|
if (options.total_retry_time > 1000 * 60) {
|
|
|
console.log('redis连接超时');
|
|
|
return undefined;
|
|
|
}
|
|
|
if (options.attempt > 10) {
|
|
|
console.log('redis连接超过次数');
|
|
|
return undefined;
|
|
|
}
|
|
|
return Math.min(options.attempt * 100, 1000);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
} else if (isTest) {
|
|
|
Object.assign(module.exports, {
|
...
|
...
|
|