Chinaunix首页 | 论坛 | 博客
  • 博客访问: 988678
  • 博文数量: 96
  • 博客积分: 1553
  • 博客等级: 上尉
  • 技术积分: 1871
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-25 14:50
个人简介

专注点,细心点,耐心点 知行合一

文章分类

全部博文(96)

文章存档

2018年(1)

2014年(4)

2013年(31)

2012年(56)

2011年(4)

发布时间:2014-12-27 11:12:45

点击(此处)折叠或打开#define _GNU_SOURCE#define __STDC_FORMAT_MACROS#include <stdio.h>#include <errno.h>#include <libaio.h>#include <sys/eventfd.h>#include <sys/epoll.h>#include <s.........【阅读全文】

阅读(1843) | 评论(0) | 转发(0)

发布时间:2014-01-09 22:53:58

......【阅读全文】

阅读(1664) | 评论(0) | 转发(0)

发布时间:2013-04-16 14:17:47

man 7 epoll会发现这个东西,就是使用epoll中会遇到的问题:If using an event cache… If you use an event cache or store all the file descriptors returned from epoll_wait(2), then make sure to provide a way to mark its closure dynamically (i.e., caused by a previous event's processing). Suppose .........【阅读全文】

阅读(2286) | 评论(0) | 转发(1)

发布时间:2013-04-13 22:04:35

LT模式:epoll就是一个快速版poll,可读可写就绪条件和传统poll一致ET模式:为了避免Starvation,建议          1)文件描述符设置为非阻塞          2)只在read或write返回EAGAIN后,才能调用下一次epoll_wait      .........【阅读全文】

阅读(2453) | 评论(0) | 转发(1)

发布时间:2013-03-18 16:43:31

Haproxy+keepalived实现高可用负载均衡 软件负载均衡一般通过两种方式来实现:基于操作系统的软负载实现和基于第三方应用的软负载实现。LVS就是基于Linux操作系统实现的一种软负载,HAProxy就是开源的并且基于第三应用实现的软负载。HAProxy相比LVS的使用要简单很多,功能方面也很丰富。当 前,HAProxy支.........【阅读全文】

阅读(52024) | 评论(0) | 转发(4)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册