文档来自链接 : http://www.kbengine.org/docs/concepts/layout.html
结构图如下:
|----------|
| client | x N
|----------|
------------------------|-----|-------------------------------
|----------| |----------| |----------|
| loginsrv | x N | basesrv | x N |basesrvmgr| x 1
|----------| |----------| |----------|
------------------------|-----|-------------------------------
|----------| |----------|
| cellsrv | x N |cellsrvmgr| x 1
|----------| |----------|
------------------------|-----|-------------------------------
|----------| |----------|
| dbmgr | x 1 | billing | x 1
|----------| |----------|
------------------------|-----|-------------------------------
|----------|
| mysql | x 1
|----------|
各部分说明:
· loginapp:
登陆服务器,登陆验证,注册,端口访问(?)。
可以被部署在多台硬件设备上。
· dbmgr:
高性能的数据服务
默认数据库为Mysql.
· baseappmgr:
协调baseapp服务器群。
· baseapp:
客户端服务器端的通信(客户端和baseapp的链接由loginapp指派?)。
定时备份entity到数据库,baseapp相互备份,故障修复。
可以部署到多台硬件服务器,自动均衡负载。
有网关的功能。
· cellappmgr:
协调cellapp服务器群。
· cellapp:
游戏的基本功能,例如AOI、寻路、AI、战斗等。
可以部署到多台硬件服务器,自动均衡负载。
游戏的一个区域。
· client:
Unity3D,HTML5,Cocos2d等会提供插件和服务器端对接。
· kbmachine:
抽象一个服务器硬件节点,接受远程命令,搜集硬件信息和组件状态。
· billingsystem:
对接第三方支付的模块。
Quick access to third-party billing, third-party accounts, third-party datas.
· guiconsole:
gui命令行工具。
· messagelog:
搜集和备份日志。