将游戏服务器uid与sdk分离
This commit is contained in:
1 parent
6d7e4867f5
commit
ddb55671b5
31 files changed
+457
-296
No files matched your search
@@ -35,15 +35,21 @@ sleep 5
|
||||
|
||||
echo "init hk4e database table"
|
||||
mongo --host "${IP}" --port 27117 <<EOF
|
||||
sh.enableSharding("node_hk4e")
|
||||
sh.shardCollection("node_hk4e.region", {"region_id": "hashed"})
|
||||
sh.enableBalancing("node_hk4e.region")
|
||||
sh.enableSharding("dispatch_hk4e")
|
||||
sh.shardCollection("dispatch_hk4e.account", {"AccountID": "hashed"})
|
||||
sh.shardCollection("dispatch_hk4e.account", {"account_id": "hashed"})
|
||||
sh.enableBalancing("dispatch_hk4e.account")
|
||||
sh.shardCollection("dispatch_hk4e.client_log", {"_id": "hashed"})
|
||||
sh.enableBalancing("dispatch_hk4e.client_log")
|
||||
sh.enableSharding("gate_hk4e")
|
||||
sh.shardCollection("gate_hk4e.account", {"open_id": "hashed"})
|
||||
sh.enableBalancing("gate_hk4e.account")
|
||||
sh.enableSharding("gs_hk4e")
|
||||
sh.shardCollection("gs_hk4e.player", {"PlayerID": "hashed"})
|
||||
sh.shardCollection("gs_hk4e.player", {"player_id": "hashed"})
|
||||
sh.enableBalancing("gs_hk4e.player")
|
||||
sh.shardCollection("gs_hk4e.chat_msg", {"Uid": "hashed"})
|
||||
sh.shardCollection("gs_hk4e.chat_msg", {"uid": "hashed"})
|
||||
sh.enableBalancing("gs_hk4e.chat_msg")
|
||||
sh.startBalancer()
|
||||
db.adminCommand("flushRouterConfig")
|
||||
|
||||
Reference in new issue
Block a user