great_park
great_park
great_park
전체 방문자
오늘
어제
07-01 22:29
  • 분류 전체보기 (124)
    • Computer Science (48)
      • Database (9)
      • Operating System (8)
      • Computer Network (0)
      • Computer Architecture (9)
      • Cloud computing (9)
      • Algorithm (13)
    • Algorithm PS (62)
      • DFS & BFS (21)
      • Floyd-Warshall (1)
      • Dijkstra (0)
      • Divide and Conquer (0)
      • Dynamic Programing (22)
      • Greedy (0)
      • BackTracking (11)
      • Binary Search (6)
      • Brute Force (0)
      • Sorting (0)
      • Stack & Queue (1)
      • Number Theory (0)
    • 기타 (12)
      • AWS (3)
      • Docker (1)
      • 기타 (8)
    • 2023 Google Solution Challenge (1)

최근 글

인기 글

블로그 메뉴

  • 홈
  • 태그
  • 방명록
반응형

태그

  • mysql
  • dfs
  • Computer Architecture
  • BFS
  • pub/sub
  • Binarysearch
  • operating system
  • BOJ
  • Single-Cycle Datapath
  • DeadLock
  • Docker
  • dp
  • Database
  • LIS
  • cloud computing
  • 알고리즘
  • backtracking
  • Binary Search
  • Node.js
  • php
hELLO · Designed By 정상우.
great_park

great_park

[Cloud computing] 9. Global States
Computer Science/Cloud computing

[Cloud computing] 9. Global States

2022. 12. 4. 23:10
반응형

Reference

1. Thomas Erl_ Zaigham Mahmood_ Ricardo Puttini - Cloud Computing_ Concepts, Technology & Architecture-Prentice Hall,

2. Cloud Computing class by Professor Heonchang-Yu of the Department of Computer Science and Engineering at Korea University

 

Global states

Distributed garbage collection

  • DS 내에서 더 이상 아무 곳에서도 참조되지 않으면 garbage
  • garbage check → 시스템 내에서 해당 개체에대한 참조가 없는지, process 사이에서의 참조 확인

Distributed deadlock detection

  • wait-for graph 내에서 cycle이 있는지 검사

Distributed termination detection

  • 각 process가 중지되었는지 검사

Consistent cuts

  • event : process 내부 액션 또는 메시지 송수신
  • cut : global history의 subset
    • S (global state) = (s1, s2, …., sn) <- local state의 집합
    • local state들의 집합을 취하여 global state를 형성한다.
    • p2 에서 메시지 m1의 수신이 포함되지만, p1 에서는 그렇지 않다면 inconsistent 하다.
      • 예를 들어 sending이 없는데 receiving이 있으면 inconsistent
  • Consistent cut : 포함된 각 event에 대해 해당 event 이전에 발생한 모든 event도 포함하는 cut
    • for all events e∈C, f →e ⇒ f ∈C
  • Inconsistent cut : orphan message를 포함하는 cut
  • consistent global state는 consistent cut에 해당한다.

Snapshot Algorithm

가정

  1. failure X
  2. lost X
  3. 단방향 채널
  4. strongly connected → 모두가 1대1로 연결
  5. any process, any time, snapshot을 찍을 수 있다.
  6. snapshot 찎는 중 normal message를 주고 받을 수 있다.

2가지 규칙

  1. Marker receiving rule
  • 상태를 기록하지 않은 process에게 기록하는 것을 의무화한다.
  • 이미 상태를 기록한 process가 marker 를 수신하면, 해당 채널 상태는 저장된 후 수신한 메시지 세트로 기록된다.
  1. Marker sending rule
  • 프로세스가 상태를 기록한 후 다른 메시지를 보내기 전에 marker 를 전송해야 한다.

Snapshot algorithm Example

반응형
저작자표시 (새창열림)

'Computer Science > Cloud computing' 카테고리의 다른 글

[Cloud computing] 10. Coordination  (1) 2022.12.19
[Cloud computing] 8. Logical Clock  (0) 2022.12.04
[Cloud computing] 7. Models  (0) 2022.12.04
[Cloud computing] 6. Parallel & Distributed  (0) 2022.10.24
[Cloud computing] 5. Virtualization  (0) 2022.10.14
    'Computer Science/Cloud computing' 카테고리의 다른 글
    • [Cloud computing] 10. Coordination
    • [Cloud computing] 8. Logical Clock
    • [Cloud computing] 7. Models
    • [Cloud computing] 6. Parallel & Distributed
    great_park
    great_park
    GitHub : https://github.com/great-park

    티스토리툴바