官术网_书友最值得收藏!

Automatic fault tolerance

The cluster manager of Service Fabric ensures failover and resource balancing in case of a hardware failure. This ensures high availability of the services while minimizing manual management and operational overhead.

For a stateless service, Service Fabric lets you define an instance count, which is the number of instances of the stateless service that should be running in the cluster at a given time. The service can be scaled up by increasing the number of instances.

When Service Fabric detects a fault on an instance, it creates a new instance of the service on a healthy node within the cluster to ensure availability. This process is completely automated.

The story becomes a bit more complex for a stateful service. Service Fabric replicates a stateful service on different nodes to achieve high availability. Each replica will contain code used by the service and the state. All write operations are performed on one replica called the primary replica. All other replicas are called secondary replicas. Changes to state on the primary replica are automatically replicated to the secondary replicas by the framework. Service Fabric supports the configuration of a number of active secondary replicas. The higher the number of replicas, the better the fault tolerance of a service.

If the primary replica fails, Service Fabric makes one of the secondary replicas the primary replica and spins up a new instance of a service as a secondary replica.

主站蜘蛛池模板: 静安区| 札达县| 荆州市| 垣曲县| 陆良县| 金乡县| 灵宝市| 邵武市| 会理县| 伊金霍洛旗| 拉萨市| 崇义县| 申扎县| 集贤县| 中方县| 延安市| 板桥市| 清流县| 龙山县| 增城市| 华容县| 工布江达县| 泉州市| 桃江县| 沙洋县| 河间市| 光泽县| 四平市| 治多县| 扶绥县| 麻栗坡县| 从化市| 牙克石市| 肃南| 剑阁县| 永兴县| 新巴尔虎右旗| 宝应县| 平泉县| 弥勒县| 怀柔区|