zookeeper node에 ttl 기능이 생길 예정이다. 아직 릴리즈 되지 않은 3.6.0에 추가되었다.
https://issues.apache.org/jira/browse/ZOOKEEPER-1925
Fix Version/s:3.6.0
Here are only some problems with app-level cleaning:
– Slow for large trees. If the network latency is high it takes a very long time for the app to walk whole tree (e.g. 1M nodes).
– Risky. If the cleanup application crash (or becomes unreachable) it puts whole ZK cluster to danger.
– The implementation might be error-prone if multiple cleanup threads are used.
– Slow for large trees. If the network latency is high it takes a very long time for the app to walk whole tree (e.g. 1M nodes).
– Risky. If the cleanup application crash (or becomes unreachable) it puts whole ZK cluster to danger.
– The implementation might be error-prone if multiple cleanup threads are used.
– Has to be implemented separately by each developer (until a proven implementation shared as a library).
여러 이슈가 있어서. 3.6.0으로 미룬 상태이다..
zookeeper에 ttl이 있고 성능만 좋다면 앞으로 많이 사용할 듯 싶다.
'general java' 카테고리의 다른 글
mvnw 설치하기 (0) | 2018.07.11 |
---|---|
[zookeeper] zookeeper 추가 증설하기 (0) | 2018.06.25 |
spring 보안 이슈 (cve-2018-1275) (0) | 2018.04.11 |
[spring-boot] hikari 간단 설정 (0) | 2018.04.04 |
[log] log4j에서 json 로그를 출력하도록 설정하기 (0) | 2018.03.26 |