Difference between revisions of "System Failover"

Line 1: Line 1:
 
The system failover is switching to a passive system when an active system is in a state of failure(e.g. hardware fault, network problem).
 
The system failover is switching to a passive system when an active system is in a state of failure(e.g. hardware fault, network problem).
A passive system monitors the active system
 
시스템 이중화란 두개의 장비를 Active-Passive 형태로 시스템을 유지하여 어느 한 장비의 장애 발생시 서비스의 연속성을 유지하기 위함입니다.<br>
 
하나의 장비는 Active 모드로 그리고 다른 장비는 Passive 모드로 시작합니다.
 
[[File:failover.png|400px|thumb|Failover 진행]]
 
가상 IP 주소는 Active 장비에 항상 연결되어 장애 전환 이후에도 [[운영 서비스|서비스]]의 연속성을 보장합니다.
 
  
Passive 모드 장비는 Active 장비를 수 초 간격으로 감지하며 지정된 시간(deadtime) 이상 Active 장비로 부터 응답이 없으면 Active 모드로 전환합니다. 또한 실시간 데이터베이스 동기화가 진행되어 장애 전환 이후 데이터의 연속성도 보장합니다.
+
A passive system synchronizes all data from the master database in which is running in an active system by the Database Replication<ref>https://mariadb.com/kb/en/replication-overview/</ref> and monitors the active system.
 +
A passive system sends a heartbeat about every 10 seconds to monitor an active system. If the passive does not receive the response from an active system for the [[CLI - Configuring System Failover | Deadtime]], the passive system switches the mode to "active".
  
Active / Passive 장비의 각 역할은 다음 표와 같습니다.
+
[[File:failover.png|400px|thumb|Failover Flow]]
 +
You can connect the management page without changing the URI because a virtual IP is automatically configured in the active system by the [[ImRAD services(daemons) | failover service]].
 +
 
 +
All services in the active and passive devices work as shown in the table below.
 
{| class="wikitable"
 
{| class="wikitable"
! 역할 !! Active !! Passive
+
! Service !! Active System !! Passive System
 
|-
 
|-
| dhcpv4 || O || O
+
| dhcpv4 || running || running
 
|-
 
|-
| dhcpv6 || O || O
+
| dhcpv6 || running || running
 
|-
 
|-
| radius || O || O
+
| radius || running || running
 
|-
 
|-
| logexp || 모든 역할 || 로컬 syslog만 저장
+
| logexp || running  || running but only saves its Syslog.
 
|-
 
|-
| failover || 가상 IP 설정 || Active 장비 감시
+
| failover || Configuring a Virtual IP || Monitoring a active system and replicating the database
 
|-
 
|-
| 데이터베이스 || Master || Slave
+
| Database || Master || Slave
 
|-
 
|-
 
|}
 
|}
  
failback은 지원하지 않으며 Active 장비가 장애 발생 후 다른 장비로 Active 모드가 전환된 이후 복구되면 Passive 모드로 전환됩니다(그림 마지막 단계).
+
Note that, If an active system is recovered from a fault after another system has switched to the active mode, the recovered system switches to passive mode. In other words, The failback<ref>https://en.wikipedia.org/wiki/Failover</ref> does not occur.
 +
 
 +
You can configure the System Failover via the [[CLI - Configuring System Failover | CLI]].
  
이중화 설정은 CLI를 통해 설정할 수 있으며 "[[CLI - Configuring System Failover | Configuring System Failover]]"을 참고하세요.
+
=== References ===

Revision as of 15:16, 16 April 2021

The system failover is switching to a passive system when an active system is in a state of failure(e.g. hardware fault, network problem).

A passive system synchronizes all data from the master database in which is running in an active system by the Database Replication[1] and monitors the active system. A passive system sends a heartbeat about every 10 seconds to monitor an active system. If the passive does not receive the response from an active system for the Deadtime, the passive system switches the mode to "active".

Failover Flow

You can connect the management page without changing the URI because a virtual IP is automatically configured in the active system by the failover service.

All services in the active and passive devices work as shown in the table below.

Service Active System Passive System
dhcpv4 running running
dhcpv6 running running
radius running running
logexp running running but only saves its Syslog.
failover Configuring a Virtual IP Monitoring a active system and replicating the database
Database Master Slave

Note that, If an active system is recovered from a fault after another system has switched to the active mode, the recovered system switches to passive mode. In other words, The failback[2] does not occur.

You can configure the System Failover via the CLI.

References