zookeeper의 노드 크기(znode)는 최대 값은 1M이며, jute.maxbuffer로 변경할 수 있다. 



https://zookeeper.apache.org/doc/r3.3.2/zookeeperAdmin.html

jute.maxbuffer:

(Java system property: jute.maxbuffer)

This option can only be set as a Java system property. There is no zookeeper prefix on it. It specifies the maximum size of the data that can be stored in a znode. The default is 0xfffff, or just under 1M. If this option is changed, the system property must be set on all servers and clients otherwise problems will arise. This is really a sanity check. ZooKeeper is designed to store data on the order of kilobytes in size.



코드를 살펴보면, 디폴트 0xfffff로 되어 있으며, 10진수로 1,048,575 bytes(약 1 MB)까지 저장할 수 있다.


https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/jute/BinaryInputArchive.java

static public final int maxBuffer = Integer.getInteger("jute.maxbuffer", 0xfffff);






Posted by '김용환'
,