Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

12

Share

Download to read offline

Zookeeper소개

Download to read offline

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Zookeeper소개

  1. 1. Zookeeper 소개 javawork93@gmail.com 임영기
  2. 2. 제공하는 기능 • znode 생성 / 삭제 • 데이터(znode)를 트리 구조로 저장 • 데이터가 변경되면 구독자들에게 통보 • Ephemeral node • Sequence node
  3. 3. API • zoo_init • zoo_create • zoo_delete • zoo_exist • zoo_get_children • zoo_close • sync / async version
  4. 4. Global Configuration
  5. 5. Cluster 구성 • 서버가 구동되면서 자신을 등록 • Ephemeral node • 서버가 죽으면 자동으로 노드가 삭제됨
  6. 6. Cluster 구성 #1 Zookeeper Server zoo_create( ephemeral | sequence )
  7. 7. Cluster 구성 #2 Zookeeper Server server0001
  8. 8. Cluster 구성 #3 Zookeeper server server0001 server Server server0002 server0003
  9. 9. Cluster 구성 #4 Zookeeper server server0001 server Server server0002 server0003 zoo_get_children Client
  10. 10. Cluster 구성 #5 Zookeeper server server0001 server server server0002 server0003 connect Client
  11. 11. Cluster 구성 #6 Zookeeper server server0001 server server0003 server0002 server0003 Crash! ! Client
  12. 12. Cluster 구성 #7 Zookeeper server server0001 server0002 server0002 Client
  13. 13. 분산 Lock #1 Zookeeper server zoo_create( sequence ) server Client
  14. 14. 분산 Lock #2 Client0001 (working) Client0002 (wait) Zookeeper Client0001 Client0002 Client0003 Client0003 (wait)
  15. 15. 분산 Lock #3 Client0001 (working) Client0002 (waiting) Zookeeper Client0001 Client0002 Client0003 Client0003 (waiting) zoo_delete
  16. 16. 분산 Lock #4 Client0002 (waiting) Zookeeper Client0002 Client0003 Client0003 (waiting) Notify
  17. 17. 분산 Lock #5 Client0002 (working) Zookeeper Client0002 Client0003 Client0003 (wait)
  18. 18. Job Distribution #1 Zookeeper Producer zoo_create(sequence)
  19. 19. Job Distribution #2 Zookeeper Producer Consumer Job0001 Consumer Notify
  20. 20. Job Distribution #3 Zookeeper Producer Consumer Job0001 Consumer zoo_delete
  21. 21. Job Distribution #4 Zookeeper Producer ConsumerConsumer Success Fail Job0001
  22. 22. Job Distribution #5 Zookeeper Producer Consumer Consumer (working) Job0001
  23. 23. 그 밖에 • Barriers • Queues • Two-phased Commit • Leader Election
  24. 24. 단점 • Write가 많은 경우 성능 저하 • znode 용량 제한(1MB) • C Client driver(Windows)
  25. 25. Reference • http://zookeeper.apache.org/ • http://creatorw.tistory.com/category/분산처 리/주키퍼/ • http://helloworld.naver.com/helloworld/text yle/294797
  • juney1110

    Sep. 3, 2015
  • hubumi

    Jul. 8, 2015
  • chjin

    Apr. 24, 2015
  • khjeoung

    Feb. 8, 2015
  • seohoseok14

    Jan. 17, 2015
  • ssuserda2fe7

    Jan. 16, 2015
  • ssuser1e6793

    Jan. 14, 2015
  • kimbeast

    Jul. 17, 2014
  • bookwormkr

    May. 29, 2014
  • bulkerducks

    Feb. 26, 2014
  • jgkim9991

    Jul. 17, 2013
  • ssuser416b39

    Jul. 17, 2013

Views

Total views

5,800

On Slideshare

0

From embeds

0

Number of embeds

2,668

Actions

Downloads

35

Shares

0

Comments

0

Likes

12

×