Authored by 周少峰

redis config

... ... @@ -1539,7 +1539,7 @@ const showMainAsync = (req, data) => {
HeaderModel.requestHeaderData(data.channel), // 通用头部数据
_getProductIntroAsync(productId, productSkn), // 商品详细介绍
curUserProduct(productData), // 商品详细价格
tdk('skn', data.skn, req) //seo
tdk('skn', data.skn, req) // seo
]);
let smallSortNavigator = requestData[0];
... ...
... ... @@ -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, {
... ...