How to clean old permanent knowledge (Zookeeper)

I use zookeeper for distributed locking. If used, locking on hierarchical namespaces is required and therefore we use znodes persistence. For this, we use an apache curator.

The problem is that the znode score continues to grow, and this affects performance. Are there any solutions by which we can clean old znodes with a filter during the update?

There is a new type of node: a container , which is introduced in zookeeper 3.5.1-alpha , which will be a possible solution to this problem, but a stable version is not yet available.

+4
source share

Source: https://habr.com/ru/post/1687230/


All Articles