Skip to content

cita-cloud/consensus_overlord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consensus_overlord

CITA-Cloudconsensus微服务的实现。

基于overlord算法实现。

编译docker镜像

docker build -t citacloud/consensus_overlord .

使用方法

$ consensus -h
consensus 6.7.0
Rivtower Technologies <[email protected]>

Usage: consensus <COMMAND>

Commands:
  run   run this service
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

consensus-run

运行consensus服务。

$ consensus run -h
run this service

Usage: consensus run [OPTIONS]

Options:
  -c, --config <CONFIG_PATH>                 Chain config path [default: config.toml]
  -p, --private_key_path <PRIVATE_KEY_PATH>  private key path [default: private_key]
  -h, --help                                 Print help

参数:

  1. 微服务配置文件。

    参见示例example/config.toml

    其中[consensus_overlord]段为微服务的配置:

    • consensus_port 为该服务监听的端口号。
    • domain 节点的域名
    • network_port 网络微服务的gRPC端口
    • controller_port 控制器微服务的gRPC端口
    • metrics_port 是metrics信息的导出端口
    • enable_metrics 是metrics功能的开关

    其中[consensus_overlord.log_config]段为微服务日志的配置:

    • max_level 日志等级
    • filter 日志过滤配置
    • service_name 服务名称,用作日志文件名与日志采集的服务名称
    • rolling_file_path 日志文件路径
    • agent_endpoint jaeger 采集端地址
$ consensus run -c example/config.toml -p example/private_key
2023-02-08T06:20:57.500676Z  INFO consensus: grpc port of consensus_overlord: 50001

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published