There was an error while loading. Please reload this page.
#Pomelo0.5新特性
在0.5版本中,主要增强了Pomelo高可用的特性,包括master服务器的高可用和其它服务器的可配置自动重启,另外还提供一个全局的globalChannel和服务器进程与cpu绑定的功能。
##master服务器高可用
##globalChannel
globalChannel是提供全局的channel服务,其实现主要是通过redis将相关信息存储;Pomelo原有的channelService只能在具体某个服务器中创建channel,这种channel只能存储该服务器的用户信息,而globalChannelService则可以创建全局的globalChannel,所有服务器的用户信息都可以通过globalChannel进行存储。
###使用说明
globalChannel默认不加载,需要使用只需要在app.js中进行配置即可,参考配置如下(开启redis-server)。
javascript app.configure('production|development', 'connector', function(){ app.set('globalChannelConfig', { host: '127.0.0.1', port: 6379 }); });
javascript