Authored by 姜枫

add memcache config & open shut api

... ... @@ -69,7 +69,12 @@ app.use(session({
store: new MemcachedStore({
hosts: config.memcache.session,
prefix: 'yohobuy_session:'
prefix: 'yohobuy_session:',
poolSize: 25,
reconnect: 5000,
timeout: 1000,
retries: 1,
retry: 3000
})
}));
... ...
... ... @@ -87,12 +87,16 @@ if (isProduction) {
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
timeout: 3000
poolSize: 25,
reconnect: 5000,
timeout: 300,
retries: 1,
retry: 3000
},
useOneapm: true,
useCache: true,
interfaceShunt: {
open: false,
open: true,
url: 'http://123.206.2.55/strategy'
}
});
... ...