computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.9 KiB
33 lines
1.9 KiB
2 years ago
|
# Fail-Over
|
||
|
|
||
2 years ago
|
Failover is an availability pattern that is used to ensure that a system can continue to function in the event of a failure. It involves having a backup component or system that can take over in the event of a failure.
|
||
|
|
||
2 years ago
|
In a failover system, there is a primary component that is responsible for handling requests, and a secondary (or backup) component that is on standby. The primary component is monitored for failures, and if it fails, the secondary component is activated to take over its duties. This allows the system to continue functioning with minimal disruption.
|
||
2 years ago
|
|
||
2 years ago
|
Failover can be implemented in various ways, such as active-passive, active-active, and hot-standby.
|
||
2 years ago
|
|
||
2 years ago
|
## Active-passive
|
||
|
|
||
|
With active-passive fail-over, heartbeats are sent between the active and the passive server on standby. If the heartbeat is interrupted, the passive server takes over the active's IP address and resumes service.
|
||
2 years ago
|
|
||
2 years ago
|
The length of downtime is determined by whether the passive server is already running in 'hot' standby or whether it needs to start up from 'cold' standby. Only the active server handles traffic.
|
||
2 years ago
|
|
||
|
Active-passive failover can also be referred to as master-slave failover.
|
||
2 years ago
|
|
||
|
## Active-active
|
||
2 years ago
|
|
||
|
In active-active, both servers are managing traffic, spreading the load between them.
|
||
|
|
||
|
If the servers are public-facing, the DNS would need to know about the public IPs of both servers. If the servers are internal-facing, application logic would need to know about both servers.
|
||
|
|
||
|
Active-active failover can also be referred to as master-master failover.
|
||
2 years ago
|
|
||
|
## Disadvantages of Failover
|
||
|
|
||
2 years ago
|
- Fail-over adds more hardware and additional complexity.
|
||
|
- There is a potential for loss of data if the active system fails before any newly written data can be replicated to the passive.
|
||
2 years ago
|
|
||
2 years ago
|
To learn more visit the following links:
|
||
2 years ago
|
|
||
10 months ago
|
- [@article@Fail Over Pattern - High Availability](https://www.filecloud.com/blog/2015/12/architectural-patterns-for-high-availability/)
|