摘要: https://coreos.com/etcd/docs/latest/runtime-configuration.html Runtime Reconfiguration 运行时重新配置 etcd 附带支持增量运行时重新配置,这个允许用户在系统运行时更新集群中的成员。 重新配置请求只能在大部分集群 阅读全文
posted @ 2017-01-03 20:05 doscho 阅读(212) 评论(0) 推荐(0) 编辑
摘要: etcd Version: 3.0.15Git SHA: fc00305Go Version: go1.6.3Go OS/Arch: linux/amd64 https://github.com/coreos/etcd/blob/master/Documentation/op-guide/confi 阅读全文
posted @ 2016-12-29 20:34 doscho 阅读(2741) 评论(0) 推荐(0) 编辑
摘要: etcd api接口 基本操作api: https://github.com/coreos/etcd/blob/6acb3d67fbe131b3b2d5d010e00ec80182be4628/Documentation/v2/api.md 集群配置api: https://github.com/c 阅读全文
posted @ 2016-12-27 20:02 doscho 阅读(27966) 评论(0) 推荐(0) 编辑
摘要: 在 centos 7.2 系统内, 网卡的配置文件在: /etc/sysconfig/network-scripts/ 下。 命名规则: ifcfg-xxxx。 xxx为设备名称。 通过分析 network 服务的执行脚本: /etc/rc.d/init.d/network 整理网卡配置文件的内容: 阅读全文
posted @ 2016-12-27 14:38 doscho 阅读(14232) 评论(0) 推荐(1) 编辑
摘要: 在vmware workstation 11上,新建一个centos 7.2系统。 初装带有一个块网卡;能够在/etc/sysconfig/network-scripts/目录下找到相应的网卡配置文件。 启动后,在线添加一个网卡(nat或bridge ),用ip a 命令能够看到网卡有效,且已配置有 阅读全文
posted @ 2016-12-27 10:35 doscho 阅读(730) 评论(0) 推荐(0) 编辑
摘要: Client 对象 ['_MDELETE', '_MGET', '_MPOST', '_MPUT', '__class__', '__contains__', '__del__', '__delattr__', '__dict__', '__doc__', '__format__', '__geta 阅读全文
posted @ 2016-12-26 17:08 doscho 阅读(6374) 评论(1) 推荐(0) 编辑
摘要: 键值存储仓库,用于配置共享和服务发现。 A highly-available key value store for shared configuration and service discovery. 基本介绍 服务发现 要解决服务发现的问题,需要有下面三大支柱,缺一不可。 一个强一致性、高可用 阅读全文
posted @ 2016-12-26 16:55 doscho 阅读(3628) 评论(0) 推荐(0) 编辑
摘要: types模块成员: 定义所有类型符号的名字,在标准的解释器中所知。 ['BooleanType', 'BufferType', 'BuiltinFunctionType', 'BuiltinMethodType', 'ClassType', 'CodeType', 'ComplexType', ' 阅读全文
posted @ 2016-12-19 11:54 doscho 阅读(2831) 评论(0) 推荐(0) 编辑
摘要: 这个语句的功能那个知道? 阅读全文
posted @ 2016-12-16 16:49 doscho 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 利用python格式化json 字符串输出。 $ echo '{"json":"obj"}' | python -m json.tool 利用python -m json.tool, 输出成带缩进和换行格式的输出。 阅读全文
posted @ 2016-12-16 14:28 doscho 阅读(17878) 评论(0) 推荐(0) 编辑