From dfad38d561c294512856cd17280c81024a6051cb Mon Sep 17 00:00:00 2001 From: Mohammadamin Karbasforushan Date: Thu, 11 Mar 2021 11:31:38 +0330 Subject: [PATCH] Fix unclear documentation of human readable byte (#10825) * Fix unclear documentation of human readable byte Follows https://github.com/apache/druid/pull/10203 ; See https://github.com/apache/druid/pull/10203#issuecomment-771080634 . * Fix sentence style Co-authored-by: Charles Smith <38529548+techdocsmith@users.noreply.github.com> Co-authored-by: Charles Smith <38529548+techdocsmith@users.noreply.github.com> --- docs/configuration/human-readable-byte.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/configuration/human-readable-byte.md b/docs/configuration/human-readable-byte.md index 7ee3999d8c2..50345d05d2f 100644 --- a/docs/configuration/human-readable-byte.md +++ b/docs/configuration/human-readable-byte.md @@ -46,10 +46,11 @@ When you have to put a large number for some configuration as above, it is easy Given a disk of 1T, the configuration can be ```properties -druid.segmentCache.locations=[{"path":"/segment-cache","maxSize":"1t"}] +druid.segmentCache.locations=[{"path":"/segment-cache-00","maxSize":"1t"},{"path":"/segment-cache-01","maxSize":"1200g"}] ``` Note: in above example, both `1t` and `1T` are acceptable since it's case-insensitive. +Also, only integers are valid as the number part. For example, you can't replace `1200g` with `1.2t`. ### Supported Units In the world of computer, a unit like `K` is ambiguous. It means 1000 or 1024 in different contexts, for more information please see [Here](https://en.wikipedia.org/wiki/Binary_prefix).