Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1186834
  • 博文数量: 399
  • 博客积分: 8508
  • 博客等级: 中将
  • 技术积分: 5302
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-14 09:28
个人简介

能力强的人善于解决问题,有智慧的人善于绕过问题。 区别很微妙,小心谨慎做后者。

文章分类

全部博文(399)

文章存档

2018年(3)

2017年(1)

2016年(1)

2015年(69)

2013年(14)

2012年(17)

2011年(12)

2010年(189)

2009年(93)

分类: 云计算

2018-04-12 17:37:28


HA

High Availability (HA) of a system is achieved by incorporating specific features to reduce service downtime, typically: failover, load balancing and replication.

These techniques can be easily incorporated into services deployed on multi-data center clouds. To some extent, HA features are currently available on public cloud providers but seriously limited by networking constraints. This is a horizontal use case that accommodates any cluster, or multi-tier, application. 


Failover


Failover occurs when a connection to a primary database server fails and the connector opens up a connection to another database server.
For example, server A has the current connection. After a failure (server crash, network down …) the connection will switch to another server (B).


Load balancing


Load balancing allows load (read and write) to be distributed over multiple servers. 



Replication


In a leaderless distributed system, assuming we have n replicas, there will be quorum algorithm to achieve consensus of read & write.  if r + w > n,  there will be at least 1 node with latest update.  In some cases, there are more than n nodes because there may be partition node.
So here comes the sloppy quorum and hinted hand-off.  



阅读(259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~