peterxcli commented on PR #7262: URL: https://github.com/apache/ozone/pull/7262#issuecomment-3209028476
> 1. this PR introduces a new property ozone.om.listener.nodes. This works fine assuming a single Ozone cluster. But will it working in a multi cluster environment? What about "ozone.om.listener.nodes.cluster1"? Perhaps over-engineering but just wanted to make sure. Yes, it works in multi-cluster setups. The code always resolves `ozone.om.listener.nodes` via `ConfUtils.addKeySuffixes(..., omServiceId)`, so the effective keys are service-scoped like ozone.om.listener.nodes.<serviceId>. Example from the compose files: ozone.om.listener.nodes.omservice=om4. https://github.com/apache/ozone/pull/7262/files#diff-1a12ec76bd3be379b70f5cee5364e51d56d021af0ae2a835f466fc7441d9258eR409-R417 ```java /** * Get a collection of listener omNodeIds for the given omServiceId. */ public static Collection<String> getListenerOMNodeIds(ConfigurationSource conf, String omServiceId) { String listenerNodesKey = ConfUtils.addKeySuffixes( OZONE_OM_LISTENER_NODES_KEY, omServiceId); Collection<String> listenerNodeIds = conf.getTrimmedStringCollection( listenerNodesKey); return listenerNodeIds; } ``` > 2. What if the OMs are removed from `ozone.om.listener.nodes`? Do they become followers and can start to participate in ratis votes? Restarts won’t override the committed Ratis role based on config alone. > 3. Adding listener OM does not mean client knows to route its requests to them. How should applications leverage listener OM? We haven't had follower/listener read. there are two ongoing project 1. https://github.com/apache/ozone/pull/5288 (leverage ratis builtin follower read, not sure if it can apply to the listeners) 2. https://github.com/apache/ozone/pull/7988 (no effect, cause listeners wont have SnapshotDiff on them) > 4. does it support less than 3 voting OMs? For example, 1 leader + listener OM, or 1 leader + 1 follower + listeners. If ratis support only 1 or 2 voter, then the above should also work. -- 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]
