SlideShare una empresa de Scribd logo
1 de 17
Descargar para leer sin conexión
Patterns for Fault tolerance software
- Detection Patterns

Heartbeat pattern
Ko Sangwon
궁서체로 진지하게..
일…하고 있어?
System Monitor
Task
죽은 거야?

<< idle >>

System Monitor
Task
가용성 최대화  복구시간 최소화  가능한 빠르게 오류 감지

시간
일정한 시간으로 확인

※ 일정한 시간은 Realistic Threshold 패턴 참조하세요.
Overhead
일…하고 있어?
System Monitor

바빠죽겠는데,
말 좀 걸지마
Task
Overhead 해결
내가 좀 더 똑똑해져야지..
지금은 니가 일이 많으니까
천천히 물어 볼~께~

네네..
니 맘대로 하세요.

System Monitor
Task
또 다른 Overhead
일…하고 있어?
삽 상태는 어때?
허리는 괜찮아?
땅은 얼진 않았고?

말 많네

System Monitor
Task
System
Monitor

또 다른 Overhead

System
Monitor

System
Monitor

System
Monitor

System
Monitor

System
Monitor

일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고
일…하고

있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?
있어?

때려췅모ㅕ!
Task
또 다른 Overhead
Task

일…하고 있어?
System Monitor

일 하고 있지
근데..adk;럼
Adfkㅁ아림
그래가지고j
마ㅓㅇㄴ리아
아직ㅏㄹ;머
ㅁ아리ㅓㅁㄴ
Askjfas
… 듣고 있어?

Task

Task

Task

Task

Task

Task

Task

Task

Task
시스템콜!
Task

시스템콜이 실패하면
너는 이미 죽어있다!
일을 하는 것도 안하는 것도 아니야..

일…하고 있어?
System Monitor

삽질 그만하고
곡괭이질 할려는데..
Task
너.. 속으로 무슨 생각한거야..

일…하고 있어?

(한참 뒤) …응

System Monitor
Task
정리
문제
시스템 모니터가 주기적인 Heartbeat에 대해 알고 있다.
Monitored Task가 일정시간 내에 Heartbeat 응답을 하지 않으면
Recovery Action을 해야 한다.

해결책
1) Monitored Task가 살아있다고 주기적인 신호를 System Monitor에게 보냄
2) System Monitor가 Monitored task에게 report를 달라고 요청
최고의 모니터는..
사람
Thank you

Más contenido relacionado

Destacado

Unit of Mitigation
Unit of MitigationUnit of Mitigation
Unit of MitigationSangwon Ko
 
CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -SORACOM, INC
 
Servlet Architecture
Servlet ArchitectureServlet Architecture
Servlet ArchitectureJU Chae
 
Domain-Driven Design 훑어보기 Part 1
Domain-Driven Design 훑어보기 Part 1Domain-Driven Design 훑어보기 Part 1
Domain-Driven Design 훑어보기 Part 1Sangwon Ko
 
Getting started with Public Cloud and AWS
Getting started with Public Cloud and AWSGetting started with Public Cloud and AWS
Getting started with Public Cloud and AWSCohesive Networks
 
자바 서버 애플리케이션 아키텍처 안티 패턴
자바 서버 애플리케이션 아키텍처 안티 패턴자바 서버 애플리케이션 아키텍처 안티 패턴
자바 서버 애플리케이션 아키텍처 안티 패턴Sungchul Park
 
예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법hyun soomyung
 
SW개발자가 얘기하는 건축이야기
SW개발자가 얘기하는 건축이야기SW개발자가 얘기하는 건축이야기
SW개발자가 얘기하는 건축이야기Sangwon Ko
 
실용주의 디자인패턴 2 인터페이스로 프로그래밍하기
실용주의 디자인패턴   2 인터페이스로 프로그래밍하기실용주의 디자인패턴   2 인터페이스로 프로그래밍하기
실용주의 디자인패턴 2 인터페이스로 프로그래밍하기Cosmos Shin
 

Destacado (11)

Unit of Mitigation
Unit of MitigationUnit of Mitigation
Unit of Mitigation
 
CDP総選挙 2013
CDP総選挙 2013CDP総選挙 2013
CDP総選挙 2013
 
CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -
 
Servlet Architecture
Servlet ArchitectureServlet Architecture
Servlet Architecture
 
Domain-Driven Design 훑어보기 Part 1
Domain-Driven Design 훑어보기 Part 1Domain-Driven Design 훑어보기 Part 1
Domain-Driven Design 훑어보기 Part 1
 
Getting started with Public Cloud and AWS
Getting started with Public Cloud and AWSGetting started with Public Cloud and AWS
Getting started with Public Cloud and AWS
 
자바 서버 애플리케이션 아키텍처 안티 패턴
자바 서버 애플리케이션 아키텍처 안티 패턴자바 서버 애플리케이션 아키텍처 안티 패턴
자바 서버 애플리케이션 아키텍처 안티 패턴
 
예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법
 
Cloud Design Pattern
Cloud Design PatternCloud Design Pattern
Cloud Design Pattern
 
SW개발자가 얘기하는 건축이야기
SW개발자가 얘기하는 건축이야기SW개발자가 얘기하는 건축이야기
SW개발자가 얘기하는 건축이야기
 
실용주의 디자인패턴 2 인터페이스로 프로그래밍하기
실용주의 디자인패턴   2 인터페이스로 프로그래밍하기실용주의 디자인패턴   2 인터페이스로 프로그래밍하기
실용주의 디자인패턴 2 인터페이스로 프로그래밍하기
 

Heartbeat