Authored by shuaiguo

Merge branch 'hotfix/11' into 'master'

Hotfix/11



See merge request !446
... ... @@ -314,10 +314,37 @@ if (isProduction) {
},
useOneapm: true,
useCache: true,
zookeeperServer: 'zk.yohoops.com:2181',
monitorReport: {
host: '192.168.102.22',
// influxdb
host: 'influxdb.yohoops.com',
port: 8086,
db: 'web_monitor',
}
},
redis: {
connect: {
host: 'redis.yohoops.com',
port: '6379',
enable_offline_queue: false,
retry_strategy(options) {
if (options.error && options.error.code === 'ECONNREFUSED') {
console.log('connect redis server fail');
}
if (options.attempt < 10) {
return Math.min(options.attempt * 100, 1000);
} else if (options.attempt > 10 && options.attempt < 100) {
return 1000;
} else {
return 1000 * 10;
}
}
},
session: {
host: 'redis.yohoops.com',
port: '6379',
prefix: 'yohobuy_session:'
}
},
});
}
... ...