[sheepdog] [PATCH v2 0/4] add dual nic support

Liu Yuan namei.unix at gmail.com
Tue Jan 15 10:12:04 CET 2013


From: Liu Yuan <tailai.ly at taobao.com>

v2:
 - use a new parameter patern
 - pad struct node_id to align to 64 bits
 - change length of node_id.adrr to 16

This patch set add dual nic support. Usage:

$ sheep -i host=yyy{,port=xxx} ... # this add a dedicated io nic

We use redundant nic primarily for IO requests and we can also fallback on the
non-io connection when IO nic is down.

We support cluster with heterogeneous NIC configuration but the main purpose is to
allow separation of IO requests and cluster membership heartbeat messages to get
better reliability and scalability if secondary NIC is provided on all the nodes.

Liu Yuan (4):
  sheep: add option for dual nic support
  net: cleanup str_to_addr()
  sockfd cache: cleanup parameter
  sockfd cache: support dual connections for a single node

 include/internal_proto.h |    6 ++-
 include/net.h            |    3 +-
 lib/net.c                |   18 +++++++--
 sheep/cluster.h          |    8 +---
 sheep/sheep.c            |   84 +++++++++++++++++++++++++-----------------
 sheep/sockfd_cache.c     |   91 +++++++++++++++++++++++++++++-----------------
 6 files changed, 132 insertions(+), 78 deletions(-)

-- 
1.7.9.5




More information about the sheepdog mailing list