浏览代码

ZOOKEEPER-4869: Document more time units supported in autopurge.purgeInterval (#2195)

The functionality was added in ZOOKEEPER-4829(#2178).

Co-authored-by: purushah <purushah@yahooinc.com>
puru 9 月之前
父节点
当前提交
935b5f43ba
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md

+ 4 - 0
zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md

@@ -772,6 +772,10 @@ property, when available, is noted below.
     time interval in hours for which the purge task has to
     be triggered. Set to a positive integer (1 and above)
     to enable the auto purging. Defaults to 0.
+    **Suffix support added in 3.10.0:** The interval is specified as an integer with an optional suffix to indicate the time unit.
+    Supported suffixes are: `ms` for milliseconds, `s` for seconds, `m` for minutes, `h` for hours, and `d` for days.
+    For example, "10m" represents 10 minutes, and "5h" represents 5 hours.
+    If no suffix is provided, the default unit is hours.
 
 * *syncEnabled* :
     (Java system property: **zookeeper.observer.syncEnabled**)