byteayan commented on code in PR #535:
URL: https://github.com/apache/hugegraph-doc/pull/535#discussion_r4299894025


##########
content/en/docs/guides/hugegraph-docker-cluster.md:
##########
@@ -195,9 +195,12 @@ The following tables describe current master entrypoints 
and Compose files, not
 | `HG_STORE_GRPC_PORT` | No | `8500` | `grpc.port` |
 | `HG_STORE_REST_PORT` | No | `8520` | `server.port` |
 | `HG_STORE_DATA_PATH` | No | `/hugegraph-store/storage` | `app.data-path` |
+| `HG_STORE_ROCKSDB_TOTAL_MEMORY_SIZE` | No | None | 
`rocksdb.total_memory_size`, in bytes |
 
 > **Deprecated aliases**: `PD_ADDRESS` → `HG_STORE_PD_ADDRESS`, `GRPC_HOST` → 
 > `HG_STORE_GRPC_HOST`, `RAFT_ADDRESS` → `HG_STORE_RAFT_ADDRESS`.
 
+RocksDB caches live outside the Java heap. Leave 
`HG_STORE_ROCKSDB_TOTAL_MEMORY_SIZE` unset to size them from the container 
memory limit, or set it to a plain number of bytes; see 
`rocksdb.total_memory_size` in the [HStore configuration 
reference](/docs/quickstart/hugegraph/hugegraph-hstore/).

Review Comment:
   Right, the Compose files set no limit. Fixed in 29bfda5e. The EN and CN 
guides now say the budget comes from the Docker host (the Docker Desktop VM) 
when the container has no limit, that each Store in these Compose files sizes 
from the whole host, and to set a memory limit on the Store services or pin the 
variable when several Stores share one host. The `rocksdb.total_memory_size` 
row on both HStore pages now says the cgroup limit applies when one is set, 
otherwise the host's memory.



##########
content/en/docs/quickstart/hugegraph/hugegraph-hstore.md:
##########
@@ -205,8 +206,8 @@ This file contains only `rocksdb` and Actuator exposure 
settings.
 
 | Key | Master distribution value | Code default | Meaning |
 |-----|---------|--------------|---------|
-| `rocksdb.total_memory_size` | `32000000000` | `51539607552` | Memory budget 
shared by all RocksDB instances on this node. When absent or `0`, the node uses 
the JVM max heap instead. |
-| `rocksdb.write_buffer_size` | `32000000` | `33554432` | Memtable size in 
bytes. When absent or `0`, the node uses `total_memory_size / 1000`. |
+| `rocksdb.total_memory_size` | `0` | Auto-sized, see Meaning | Memory budget 
in bytes shared by all RocksDB instances on this node, split into the write 
cache and the block cache by `write_buffer_ratio`. Both caches are off-heap, so 
`-Xmx` does not limit them, and a fixed 1 GiB Raft log cache comes on top. When 
absent or `0`, the node uses half of the memory left after the JVM max heap, 
`MaxDirectMemorySize` (counted as the heap size, at most 1 GiB, when unset) and 
a 1.5 GiB reserve, clamped to 256 MiB to 32 GB. In a container the starting 
point is the cgroup memory limit, including a limit set only on a parent cgroup 
the Store can see. An `application-pd.yml` kept from an earlier release still 
sets `32000000000`; set it to `0` to auto-size. A positive value is used as 
given and must be plain bytes, at least `1048576` (1 MiB); a smaller value or 
one such as `4GB` stops startup. |

Review Comment:
   Added in 29bfda5e: until apache/hugegraph#3355 merges, the checked-at note 
on both HStore pages says the `rocksdb.total_memory_size`, 
`rocksdb.write_buffer_size` and `raft.disruptorBufferSize` rows describe #3355. 
I'll replace the commit with #3355's merge commit once it lands.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to