# og_pkt **Repository Path**: chenyingzi/og_pkt ## Basic Information - **Project Name**: og_pkt - **Description**: openGauss 集群部署 xml 模板生成工具 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/chenyingzi/og_pkt - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-19 - **Last Updated**: 2023-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # og_pkt ## 使用帮助 ```shell python.exe .\og_pkt.py Usage: og_pkt [options] Options: -m, --master Number of master nodes, only set to 1 -s, --standby Number of standby nodes -S, --cascade Number of cascade standby nodes -C, --cm_enable Enable the cluster manager -c, --comment_enable Enable the comment in the xml file -D, --deploy Deployment path -d, --data Data path -n, --cluster Cluster name -X, --xmlfile XML file name -l, --local Quick to generate Single node deployment ``` ## 使用示例 ### 单主部署 ```shell python.exe .\og_pkt.py -l -D /opengauss/og_deploy -d /opengauss/og_data -X local.xml -c ``` ```xml ``` ### 一主一备 ```shell python.exe .\og_pkt.py -s 1 -X 1master_1standby.xml -c ``` ```xml ``` ### 一主一备一级联 ```shell python.exe .\og_pkt.py -s 1 -S 1 -X 1master_1standby_1cascade.xml -c ``` ```xml ```