-
Notifications
You must be signed in to change notification settings - Fork 0
zookeeper init 리팩토링 #20
Copy link
Copy link
Closed
Description
🔍 Description
- 기본 znode 디렉토리 초기화 #12 에서 작업했던
zookeeper init명령을 FEATURE: Add 'zookeeper start|stop|stat' command to manage zk ensemble #19 에서의 코멘트대로 아래처럼 동작을 변경합니다. - 기존 동작
- arcus zookeeper를 위한 기본 znode 초기화
- 변경 동작
- myId 파일 생성
- config file 생성
⏰ Implementation Idea
- 현재
zookeeper init이 znode 초기화를 수행하지 않게 되면서,zookeeper로 시작하는 명령은 모두 zk와 connection이 필요없게 되었습니다. - 이에
zookeeper에서는 zk connection을 맺지않고, 그외memcached,acl명령은 zk connection과 함께, znode 초기화를 확인하도록 합니다. - 위에서 설명한
zookeeper init의 변경 동작은 python 레거시 코드를 참조하여 구현합니다.- 환경변수를 통해서 서버IP 목록을 입력받습니다.
- 서버IP목록을 순회하면서 고유 번호를 생성합니다.
- ssh 접속 후, myid파일과 zoo.cfg파일에 접근합니다.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels