Authored by mali

排队去掉同步redis,走单中心

... ... @@ -93,7 +93,7 @@ public class RedisCache {
// 通过配置,决定是否从单中心获取同一个redis的排队队列
public int getSortId(int activityId) {
if (configReader.getBoolean(ACTIVITY_GET_SORT_METHOD_SWITCH, false)) {
if (configReader.getBoolean(ACTIVITY_GET_SORT_METHOD_SWITCH, true)) {
log.info("method RedisCache.getSortId(int) enter getSortIdByNoSyn"); // 从单中心走
return getSortIdByNoSyn(activityId);
}
... ...
# global configurations, ConfigReader will write this file to zookeeper.
# \u5207\u6362\u6392\u961f\u53d6\u53f7\u7684\u65b0\u65b9\u6cd5
activity.get.sort.method.switch = false
\ No newline at end of file
activity.get.sort.method.switch = true
\ No newline at end of file
... ...