chenshake.com
陈沙克日志 – Page 2 – 把我的过程记录下来,以免以后忘了
http://www.chenshake.com/page/2
Magnum管理容器和COE Mesos、 Google的Kubernetes、 Docker Swarm. ELK ( Heka ). 目前OpenStack大帐篷管理下的项目,大概是50多个, http:/ governance.openstack.org/reference/projects/index.html. Https:/ blueprints.launchpad.net/kolla/ spec/bifrost-support. Kolla项目的Croe 张雷同学的blog http:/ xcodest.me/. Kolla项目的PTL blog https:/ sdake.io/. 在Shaker机器上 CentOS 7.2. 安装Shaker项目,这里我把github的源替换成trystack.cn, 为了加快下载的速度。 Git clone http:/ git.trystack.cn/openstack/shaker cd shaker pip install. 8211;server-endpoint 这个ip地址和端口,是运行shaker命令的本机的ip地址和端口,端口随意,不...
blog.lucode.net
Linux IO 概览 - 撸代码 - LuCode.net
http://blog.lucode.net/linux/linux-io-overview.html
撸代码 - LuCode.net. March 12, 2015. 在 UNIX网路编程 卷一 一书中,介绍了如下几种IO模型. Char* buf = malloc(256); int ret = read(fd, buf, 256); if(ret = -1) { perror(); exit(-1); }. 从原理图我们可以看到,非阻塞IO模型的拷贝数据阶段和阻塞式IO一致,只不过等待数据阶段不同,系统调用并不会长时间等待,如果当前缓冲区并未处于 读就绪 或 写就绪 状态,该系统调用就会返回EAGAIN或EWOULDBLOCK,这两个errno的值在linux中都是11。 SELECT示例 */ fd set rset; FD ZERO(&rset); / 设置监控的fd FD SET(fd, &rset); / 开始等待 while(1) { select(maxfd, &rset, NULL, NULL, NULL); / 筛选数据就绪的fd。 If(FD ISSET(fd, &rset) { / 对fd做读写处理 } }. March 13th, 2015 at 10:13 am.
SOCIAL ENGAGEMENT