每一个不曾起舞的日子 都是对生命的辜负。

etcd-cpp-api is a C++ API for etcd1、Build Boost Library:https://www.boost.org/doc/libs/1_61_0/more/getting_started/unix-variants.html 1234cd boost_1_61_0./bootstrap.sh --with-libraries=system,thread,locale,random,chrono,

Read More...


Etcd可行性分析报告1 Watch 可行性 目前测试etcd提供的api及命令行etcdctl watch接口都比较正常。 测试https://github.com/nokia/etcd-cpp-apiv3 该开源项目对etcd api接口进行了C++ 层面上的封装。在该api中watch接口还存在一些bug,需要更改源码。 对该api中的接口进行的测试,改完源码后的watch接口正常。Watch 接口主要是靠回调来实现 2 可

Read More...


etcd 日志级别

先补充一个知识点,etcd 有7钟日志级别,如下: 12345678910111213141516const ( // CRITICAL is the lowest log level; only errors which will end the program will be propagated. CRITICAL LogLevel = iota - 1 // ERROR is for errors that

Read More...


swarm 问题记录

1 swarm集群 在测试的时候发现一个这样的问题,每台容器调为12个时(一共20台),发现启动的容器只有231/240,不到240个。原因:使用docker stack 创建出来的网络默认网段是一个10.10.0.0/24 的,所以会限制所能创建的ip的个数。 解决方法:使用自建网络建立一个网段比较大的,在stack中使用自建网络 123456docker network create --driver=overlay --subne

Read More...


单机版12345678910111213141516version: '2'services: master: image: locustio/locust ports: - "8089:8089" volumes: - ./:/mnt/locust #command: -f /mnt/locust/locustfile_new.py --mas

Read More...


c++11 c++0x 区别

无意间在编译c++代码时遇到 123456uname -r2.6.32-754.17.1.el6.x86_64g++ --versiong++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)main.cpp:27: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x 123456unam

Read More...


现象:集群版大脑3台etcd启动正常,etcdclient起不来,会报超时错误 12worker called{"level":"warn","ts":"2020-12-31T01:49:48.985+0800","caller":"clientv3/retry_interceptor.go:62",&quo

Read More...


12345678910111213141516171819202122232425262728293031#include <dirent.h> std::vector<string> AVMMutiScanner::AVMMutiScannerImpl::GetModelList(const std::string &dirname) { DIR *dp;

Read More...


git 升级安装

You can use WANDisco’s CentOS repository to install Git 2.x: for CentOS 6, for CentOS 7 12345yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm- or -yum install http://open

Read More...


vim升级

123456rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpmrpm --import http://mirror.ghettoforge.org/distributions/gf/RPM-GPG-KEY-gf.el7yum -y remove vim-minimal vim-common vim-enha

Read More...


弱小和无知不是生存的障碍,傲慢才是。