Browse Source

负载同步

zhengtao 7 tháng trước cách đây
mục cha
commit
436d8cdc47
1 tập tin đã thay đổi với 8 bổ sung7 xóa
  1. 8 7
      game/game_cluster/nodes/main.go

+ 8 - 7
game/game_cluster/nodes/main.go

@@ -29,6 +29,7 @@ func main() {
 			gameCommand(),
 			webadminCommand(),
 			adminApiCommand(),
+			dbCommand(),
 		},
 	}
 
@@ -40,7 +41,7 @@ func versionCommand() *cli.Command {
 		Name:      "version",
 		Aliases:   []string{"ver", "v"},
 		Usage:     "view version",
-		UsageText: "db cluster node version",
+		UsageText: "game cluster node version",
 		Action: func(c *cli.Context) error {
 			fmt.Println(mhayaConst.Version())
 			return nil
@@ -134,9 +135,9 @@ func adminApiCommand() *cli.Command {
 
 func gameCommand() *cli.Command {
 	return &cli.Command{
-		Name:      "db",
-		Usage:     "run db node",
-		UsageText: "node db --path=./db/config/profile-gc.json --node=10001",
+		Name:      "game",
+		Usage:     "run game node",
+		UsageText: "node game --path=./db/config/profile-gc.json --node=10001",
 		Flags:     getFlag(),
 		Action: func(c *cli.Context) error {
 			path, node := getParameters(c)
@@ -148,9 +149,9 @@ func gameCommand() *cli.Command {
 
 func dbCommand() *cli.Command {
 	return &cli.Command{
-		Name:      "db",
-		Usage:     "run db node",
-		UsageText: "node db --path=./db/config/profile-gc.json --node=m-db",
+		Name:      "database",
+		Usage:     "run database node",
+		UsageText: "node database --path=./db/config/profile-gc.json --node=m-db",
 		Flags:     getFlag(),
 		Action: func(c *cli.Context) error {
 			path, node := getParameters(c)