[sheepdog] [PATCH v2 0/4] add dual nic support
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Tue Jan 15 11:32:19 CET 2013
At Tue, 15 Jan 2013 17:12:04 +0800,
Liu Yuan wrote:
>
> 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(-)
Applied, thanks!
If possible, I'd like to see tests for this feature too. :)
Kazutaka
More information about the sheepdog
mailing list