errose28 commented on code in PR #8795: URL: https://github.com/apache/ozone/pull/8795#discussion_r2211660412
########## hadoop-hdds/docs/content/feature/multi-raft-support.md: ########## @@ -105,6 +105,22 @@ Ratis handles concurrent logs per node. The Ratis pipelines will be distributed accordingly. - Be cautious with very high pipeline counts due to memory/CPU overhead. +## Advanced Ratis Configuration + +For more fine-grained control, Ozone allows you to pass Ratis-specific settings directly from your `ozone-site.xml` configuration. This is useful for administrators and applications that need to tune Ratis performance. + +Ozone uses the prefix `hdds.ratis.` for all Ratis-related properties. When Ozone encounters a property with this prefix, it forwards the setting to the appropriate Ratis component (server or client) after removing the prefix. + +For example, setting `hdds.ratis.raft.grpc.message.size.max` in `ozone-site.xml` configures the Ratis property `raft.grpc.message.size.max`, which controls the maximum allowed gRPC message size. + +### Server-Side Configuration +The Ozone Manager (OM), Storage Container Manager (SCM), and Datanodes automatically load any Ratis server properties defined in `ozone-site.xml` with the `hdds.ratis.` prefix. These are typically properties that do not start with `raft.client`, `raft.client.data-stream`, or `raft.netty.dataStream`. Review Comment: Yes that filtering is only on the datanodes, not the OM or SCM. I don't even know why we are filtering on the datanodes though. All Ozone configs follow the model that unrecognized or non-applicable configs are ignored. For example, there is no code in the OM to remove things like `ozone.client.stream.buffer.flush.size` if they are set on the server, it just has no effect. It seems like we might want to do some cleanup in the code here before publishing docs: Make all components use the same prefix to pick up Ratis configs, and just blindly forward all configs instead of having arbitrary hardcoded filters. -- 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]
