etcd命令说明 etcd Version: 3.0.15

etcd Version: 3.0.15
Git SHA: fc00305
Go Version: go1.6.3
Go OS/Arch: linux/amd64

usage: etcd [flags]
    start an etcd server

    etcd --version
      show the version of etcd

    etcd -h | --help
      show the help information about etcd

    etcd --config-file
      path to the server configuration file

member flags:

    --name ‘default‘
      human-readable name for this member.
    --data-dir ‘${name}.etcd‘
      path to the data directory.
    --wal-dir ‘‘
      path to the dedicated wal directory.
    --snapshot-count ‘10000‘
      number of committed transactions to trigger a snapshot to disk.
    --heartbeat-interval ‘100‘
      time (in milliseconds) of a heartbeat interval.
    --election-timeout ‘1000‘
      time (in milliseconds) for an election to timeout. See tuning documentation for details.
    --listen-peer-urls ‘http://localhost:2380‘    etcd作为分布式节点通信端口 ,支持多个rul , ‘http://localhost:2380, http://localhost:7001‘
      list of URLs to listen on for peer traffic.    
    --listen-client-urls ‘http://localhost:2379‘    客户端操作etcd API的端口
      list of URLs to listen on for client traffic.   如果服务启动时,设置了--listen-client-urls,需要设置 --advertise-client-urls
    --max-snapshots ‘5‘
      maximum number of snapshot files to retain (0 is unlimited).
    --max-wals ‘5‘
      maximum number of wal files to retain (0 is unlimited).
    --cors ‘‘
      comma-separated whitelist of origins for CORS (cross-origin resource sharing).
    --quota-backend-bytes ‘0‘
      raise alarms when backend size exceeds the given quota (0 defaults to low space quota).

clustering flags:

    --initial-advertise-peer-urls ‘http://localhost:2380‘                 作为集群中的peer接口如果启动服务时,设置了--initial-advertise-peer-urls, 需要设置--initial-cluster
      list of this member‘s peer URLs to advertise to the rest of the cluster.
    --initial-cluster ‘default=http://localhost:2380‘        STATIC 初始化集群,内容是advertised peer URLs, 与各个节点的 initial-advertise-peer-urls 匹配。  
      initial cluster configuration for bootstrapping.
    --initial-cluster-state ‘new‘
      initial cluster state (‘new‘ or ‘existing‘).
    --initial-cluster-token ‘etcd-cluster‘              通过设置etcd集群的token,生成不同的集群ID和memberid,区别其他群。当系统中有多个集群时。
      initial cluster token for the etcd cluster during bootstrap.
      Specifying this can protect you from unintended cross-cluster interaction when running multiple clusters.
    --advertise-client-urls ‘http://localhost:2379‘         作为分布式的客户端连接端口 for  member to other member、proxy、 client in cluster。    
      list of this member‘s client URLs to advertise to the public.
      The client URLs advertised should be accessible to machines that talk to etcd cluster. etcd client libraries parse these URLs to connect to the cluster.
    --discovery ‘‘
      discovery URL used to bootstrap the cluster.
    --discovery-fallback ‘proxy‘
      expected behavior (‘exit‘ or ‘proxy‘) when discovery services fails.
      "proxy" supports v2 API only.
    --discovery-proxy ‘‘
      HTTP proxy to use for traffic to discovery service.
    --discovery-srv ‘‘
      dns srv domain used to bootstrap the cluster.
    --strict-reconfig-check
      reject reconfiguration requests that would cause quorum loss.
    --auto-compaction-retention ‘0‘
      auto compaction retention in hour. 0 means disable auto compaction.

proxy flags:
    "proxy" supports v2 API only.

    --proxy ‘off‘
      proxy mode setting (‘off‘, ‘readonly‘ or ‘on‘).
    --proxy-failure-wait 5000
      time (in milliseconds) an endpoint will be held in a failed state.
    --proxy-refresh-interval 30000
      time (in milliseconds) of the endpoints refresh interval.
    --proxy-dial-timeout 1000
      time (in milliseconds) for a dial to timeout.
    --proxy-write-timeout 5000
      time (in milliseconds) for a write to timeout.
    --proxy-read-timeout 0
      time (in milliseconds) for a read to timeout.

security flags:

    --ca-file ‘‘ [DEPRECATED]
      path to the client server TLS CA file. ‘-ca-file ca.crt‘ could be replaced by ‘-trusted-ca-file ca.crt -client-cert-auth‘ and etcd will perform the same.
    --cert-file ‘‘
      path to the client server TLS cert file.
    --key-file ‘‘
      path to the client server TLS key file.
    --client-cert-auth ‘false‘
      enable client cert authentication.
    --trusted-ca-file ‘‘
      path to the client server TLS trusted CA key file.
    --auto-tls ‘false‘
      client TLS using generated certificates.
    --peer-ca-file ‘‘ [DEPRECATED]
      path to the peer server TLS CA file. ‘-peer-ca-file ca.crt‘ could be replaced by ‘-peer-trusted-ca-file ca.crt -peer-client-cert-auth‘ and etcd will perform the same.
    --peer-cert-file ‘‘
      path to the peer server TLS cert file.
    --peer-key-file ‘‘
      path to the peer server TLS key file.
    --peer-client-cert-auth ‘false‘
      enable peer client cert authentication.
    --peer-trusted-ca-file ‘‘
      path to the peer server TLS trusted CA file.
    --peer-auto-tls ‘false‘
      peer TLS using self-generated certificates if --peer-key-file and --peer-cert-file are not provided.

logging flags

    --debug ‘false‘
      enable debug-level logging for etcd.
    --log-package-levels ‘‘
      specify a particular log level for each etcd package (eg: ‘etcdmain=CRITICAL,etcdserver=DEBUG‘).

unsafe flags:

    Please be CAUTIOUS when using unsafe flags because it will break the guarantees
    given by the consensus protocol.

    --force-new-cluster ‘false‘
      force to create a new one-member cluster.

profiling flags:
    --enable-pprof ‘false‘
      Enable runtime profiling data via HTTP server. Address is at client URL + "/debug/pprof"

时间: 2024-10-13 09:06:07

etcd命令说明 etcd Version: 3.0.15的相关文章

无法解决“Microsoft.SharePoint.Security, Version=15.0.0.0,”与“Microsoft.SharePoint.Security, Version=14.0.0.0”之间的冲突

VisualStudio 2013创建控制台项目,.NetFramework选为4.5.生成目标平台:x64.然后添加对Microsoft.SharePoint.dll的引用. 生成项目时,"错误列表"报告了如下警告: 发现同一依赖程序集的不同版本间存在冲突.请将项目文件中的"AutoGenerateBindingRedirects"属性设置为 true.有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=294190

/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15‘

./filezilla: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./filezilla) 如果是64位系统报错信息如下: ./filezilla: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./filezilla) 原因是没有GLIBCXX_3.4.15版本,或是更高的版本.输入命令

Linux下安装二进制版mysql-8.0.15

1.添加用户## 添加用户组groupadd mysql## 添加用户,指定用户home目录useradd -g mysql mysql -d /data/mysql## 解压下载的mysql二进制包tar -xvf mysql-8.0.15-linux-glibc2.12-x86_64.tar.xz -C /data/mysql## 如果需要修改目录名称,mv修改目录名称,不多说明## 因/data目录有比较大的磁盘空间,防止后期数据量太大,导致磁盘空间不够,将mysql的包及相关配置放在/d

登录注册页面(连接MySQL8.0.15版本)

原文链接:https://mp.weixin.qq.com/s?__biz=MzI4Njg5MDA5NA==&mid=2247483779&idx=1&sn=e23e68e96123b9e218c95f808b8a8237&scene=19#wechat_redirect 前言:在讲解Web开发模式的时候,曾经写过XML版的用户登陆注册案例!现在在原有的项目上,使用数据库版来完成用户的登陆注册! 本来使用的是XML文件作为小型数据库,现在使用Mysql数据库,代码究竟要改多

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 问题描述: 再windows server 2008 r2 环境下搭建.net网站 ,运行是IIS7.0提示以上问题 解决方案: 这里需要注册一下ASP.NET 4.

/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

/usr/lib/libstdc++.so.6 | grep GLIBC 会输出下面这些内容 GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBC

部署老系统出现的问题Gem::InstallError: net-ssh requires Ruby version >= 2.0

Gem::InstallError: net-ssh requires Ruby version >= 2.0 修改Gemfile,变一下版本 gem 'unicorn' group :test, :development do gem "rspec-rails", ">= 2.5.0" gem 'factory_girl', '2.6.4' gem 'factory_girl_rails', '1.7.0' gem 'faker', '1.1.2' g

未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0

WinForm客户端软件开发时,使用rdlc做报表,并且使用ReportViewer呈现报表时,开发者的机器运行正常.但是部署到第三方机器上运行时报错.大致有以下几种错误: (1)未能加载文件或程序集"Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"或它的某一个依赖项.系统找不到指定的文件.文件名:"Microsoft.Repor

java.lang.UnsupportedClassVersionError: Unsupported major.minor version 49.0的错误 [转]

一:要解决的问题 我们在尝鲜 JDK1.5 的时候,相信不少人遇到过 Unsupported major.minor version 49.0 错误,当时定会茫然不知所措.因为刚开始那会儿,网上与此相关的中文资料还不多,现在好了,网上一找就知道是如何解决,大多会告诉你要使用 JDK 1.4 重新编译.那么至于为什么,那个 major.minor 究竟为何物呢?这就是本篇来讲的内容,以使未错而先知. 我觉得我是比较幸运的,因为在遇到那个错误之前已研读过<深入 Java 虚拟机>第二版,英文原书名