{
  "database": {
    "account": {
      "root": {
        "user": "root",
        "password": "123456"
      }
    },
    "serverInfo": {
      "server1": {
        "write": {
          "host": ["web-mysql"],
          "port": 3306,
          "timeout": 2,
          "account": "root"
        },
        "read": {
          "host": ["web-mysql"],
          "port": 3306,
          "timeout": 2,
          "account": "root"
        }
      }
    },
    "databases": {
      "wonderful": {
        "serverInfo": "server1",
        "startConns": "swoole_cpu_num()*10",
        "maxSpareConns": "swoole_cpu_num()*10",
        "maxSpareExp": 3600,
        "maxConns": "swoole_cpu_num()*20",
        "charset": "utf8mb4"
      }
    }
  }
}
