...
|
...
|
@@ -145,7 +145,6 @@ module.exports = { |
|
|
apiCache: {
|
|
|
cache: true
|
|
|
},
|
|
|
sessionRedisPrefix: 'yohobuy_session:',
|
|
|
zookeeperServer: '192.168.102.168:2188',
|
|
|
redis: {
|
|
|
connect: {
|
...
|
...
|
@@ -164,6 +163,11 @@ module.exports = { |
|
|
}
|
|
|
return Math.min(options.attempt * 100, 1000);
|
|
|
}
|
|
|
},
|
|
|
session: {
|
|
|
host: '192.168.102.49',
|
|
|
port: '6379',
|
|
|
prefix: 'yohobuy_session:'
|
|
|
}
|
|
|
},
|
|
|
REQUEST_LIMIT: {
|
...
|
...
|
@@ -206,21 +210,27 @@ if (isProduction) { |
|
|
zookeeperServer: 'web.zookeeper.yohoops.org:2181',
|
|
|
redis: {
|
|
|
connect: {
|
|
|
host: 'web.redis.yohoops.org'
|
|
|
},
|
|
|
port: '6379',
|
|
|
retry_strategy(options) {
|
|
|
if (options.error && options.error.code === 'ECONNREFUSED') {
|
|
|
console.log('redis连接不成功');
|
|
|
}
|
|
|
if (options.total_retry_time > 1000 * 60 * 60 * 6) {
|
|
|
console.log('redis连接超时');
|
|
|
return;
|
|
|
}
|
|
|
if (options.attempt > 10) {
|
|
|
return 1000 * 60 * 60 * 0.5;
|
|
|
host: 'web.redis.yohoops.org',
|
|
|
port: '6379',
|
|
|
retry_strategy(options) {
|
|
|
if (options.error && options.error.code === 'ECONNREFUSED') {
|
|
|
console.log('redis连接不成功');
|
|
|
}
|
|
|
if (options.total_retry_time > 1000 * 60 * 60 * 6) {
|
|
|
console.log('redis连接超时');
|
|
|
return;
|
|
|
}
|
|
|
if (options.attempt > 10) {
|
|
|
return 1000 * 60 * 60 * 0.5;
|
|
|
}
|
|
|
return Math.min(options.attempt * 100, 1000);
|
|
|
}
|
|
|
return Math.min(options.attempt * 100, 1000);
|
|
|
},
|
|
|
session: {
|
|
|
host: 'redis.web.yohoops.org',
|
|
|
port: '6379',
|
|
|
pass: 'redis9646',
|
|
|
prefix: 'yohobuy_session:'
|
|
|
}
|
|
|
},
|
|
|
report: {
|
...
|
...
|
@@ -244,25 +254,6 @@ if (isProduction) { |
|
|
yohoNowApi: process.env.YOHO_NOW_API || 'http://yohonow-test.yohops.com:9999/',
|
|
|
},
|
|
|
useOneapm: true,
|
|
|
useCache: true,
|
|
|
redis: {
|
|
|
connect: {
|
|
|
host: '192.168.104.32',
|
|
|
port: '6379',
|
|
|
retry_strategy(options) {
|
|
|
if (options.error && options.error.code === 'ECONNREFUSED') {
|
|
|
// console.log('redis连接不成功');
|
|
|
}
|
|
|
if (options.total_retry_time > 1000 * 60 * 60 * 6) {
|
|
|
// console.log('redis连接超时');
|
|
|
return;
|
|
|
}
|
|
|
if (options.attempt > 10) {
|
|
|
return 1000 * 60 * 60 * 0.5;
|
|
|
}
|
|
|
return Math.min(options.attempt * 100, 1000);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
useCache: true
|
|
|
});
|
|
|
} |
...
|
...
|
|