This is an automated email from the ASF dual-hosted git repository. vgalaxies pushed a commit to branch trans-pd in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
commit d2dc9687370eb891c67090d1d1aa3d6f612ef9fc Author: VGalaxies <[email protected]> AuthorDate: Sun May 12 12:28:09 2024 +0800 translate pd dist --- .../src/assembly/static/conf/application.yml | 27 +++++++++++----------- .../assembly/static/conf/application.yml.template | 21 +++++++++-------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml index bccdeca4c..e673e97d7 100644 --- a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml +++ b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml @@ -37,43 +37,44 @@ license: license-path: ./conf/hugegraph.license grpc: port: 8686 - # grpc 的服务地址,部署时需要改为本地实际 IPv4 地址 + # The service address of grpc needs to be changed to the actual local IPv4 address when deploying. host: 127.0.0.1 server: - # rest 服务端口号 + # REST service port number port: 8620 pd: - # 存储路径 + # Storage path data-path: ./pd_data - # 自动扩容的检查周期,定时检查每个 store 的分区数量,自动进行分区数量平衡 + # The check cycle of automatic expansion regularly checks the number of partitions in each store and automatically balances the number of partitions patrol-interval: 1800 - # 初始 store 列表,在列表内的 store 自动激活 + # The initial store list, grpc IP: grpc port, the store in the list is automatically activated initial-store-count: 1 # grpc IP:grpc port initial-store-list: 127.0.0.1:8500 raft: - # 本机 raft 服务地址 + # The address of the local raft service address: 127.0.0.1:8610 - # pd 集群服务地址 + # The service address of the PD cluster peers-list: 127.0.0.1:8610 store: - # store 下线时间。超过该时间,认为 store 永久不可用,分配副本到其他机器,单位秒 + # The time when the store went offline. After that time, the store is considered permanently unavailable, and the replica is allocated to another machine, in seconds max-down-time: 172800 - # 是否开启 store 监控数据存储 + # Specifies whether to enable store monitoring data storage monitor_data_enabled: true - # 监控数据的间隔,minute (默认), hour, second + # The interval between monitoring data, minute, hour, second # default: 1 min * 1 day = 1440 monitor_data_interval: 1 minute - # 监控数据的保留时间 1 天; day, month, year + # Retention time of monitoring data is 1 day; day, month, year monitor_data_retention: 1 day initial-store-count: 1 partition: - # 默认每个分区副本数 + # Default number of replicas per partition default-shard-count: 1 - # 默认每机器最大副本数,初始分区数 = store-max-shard-count * store-number / default-shard-count + # The default maximum number of replicas per machine + # the initial number of partitions= store-max-shard-count * store-number / default-shard-count store-max-shard-count: 12 diff --git a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml.template b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml.template index 43f52df60..8b8f0d63c 100644 --- a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml.template +++ b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/application.yml.template @@ -33,8 +33,8 @@ management: grpc: port: $GRPC_PORT$ - # grpc的服务地址, - #注意:部署时需要改为本地实际IPv4地址。 + # grpc's service address, + # Note: You need to change to the local actual Iv 4 address when deploying. host: $GRPC_HOST$ netty-server: max-inbound-message-size: 100MB @@ -43,29 +43,30 @@ server: port : $SERVER_PORT$ pd: - # 集群ID,区分不同的PD集群 + # Cluster ID: to distinguish different PD clusters patrol-interval: 2147483647 data-path: $PD_DATA_PATH$ raft: address: $RAFT_ADDRESS$ - # raft集群 + # raft cluster peers-list: $RAFT_PEERS_LIST$ - # 快照生成时间间隔,单位秒 + # The interval between snapshot generation, in seconds snapshotInterval: 300 metrics: true store: - # store心跳超时时间,超过该时间,认为store临时不可用,转移Leader到其他副本,单位秒 + # If the store heartbeat timeout period exceeds this time, the store is temporarily unavailable and the leader is transferred to another replica in seconds keepAlive-timeout: 60 - # store下线时间。超过该时间,认为store永久不可用,分配副本到其他机器,单位秒 + # The time when the store went offline. After that time, the store is considered permanently unavailable, and the replica is allocated to another machine, in seconds max-down-time: 1800 partition: - # 默认分区总数 + # The default total number of partitions default-total-count: 30 - # 默认每个分区副本数 + # Default number of replicas per partition default-shard-count: 3 discovery: - #客户端注册后,无心跳最长次数,超过后,之前的注册信息会被删除 + # After the client registers, the maximum number of heartbeats is not reached, and after that, the + previous registration information will be deleted heartbeat-try-count: 3
