ramackri commented on code in PR #986: URL: https://github.com/apache/ranger/pull/986#discussion_r3481179071
########## audit-server/audit-dispatcher/dispatcher-opensearch/src/main/resources/conf/ranger-audit-dispatcher-opensearch-site.xml: ########## @@ -0,0 +1,204 @@ +<!-- + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. See accompanying LICENSE file. +--> +<configuration> + <property> + <name>log.dir</name> + <value>${audit.dispatcher.opensearch.log.dir}</value> + <description>Log directory for OpenSearch dispatcher service</description> + </property> + + <!-- Used for KERBEROS authentication into OpenSearch (if enabled) --> + <property> + <name>ranger.audit.dispatcher.host</name> + <value>ranger-audit-dispatcher-opensearch.rangernw</value> + <description> + - In Docker: Use full service name with domain (e.g., ranger-audit-server.rangernw) + - In VM: Use the actual FQDN (e.g., ranger.example.com) + </description> + </property> + + <property> + <name>ranger.audit.dispatcher.service.kerberos.principal</name> + <value>rangerauditserver/[email protected]</value> + <description> + rangerauditserver user kerberos principal for authentication into kafka + </description> + </property> + + <property> + <name>ranger.audit.dispatcher.service.kerberos.keytab</name> + <value>/etc/keytabs/rangerauditserver.keytab</value> + <description> + keytab of the rangerauditserver principal + </description> + </property> + + <!-- KAFKA DISPATCHER CONFIGURATION --> + <property> + <name>ranger.audit.dispatcher.kafka.bootstrap.servers</name> + <value>ranger-kafka.rangernw:9092</value> + </property> + + <property> + <name>ranger.audit.dispatcher.kafka.topic.name</name> + <value>ranger_audits</value> + </property> + + <property> + <name>ranger.audit.dispatcher.kafka.security.protocol</name> + <value>SASL_PLAINTEXT</value> + </property> + + <property> + <name>ranger.audit.dispatcher.kafka.sasl.mechanism</name> + <value>GSSAPI</value> + </property> + + <!-- OpenSearch Dispatcher Threading Configuration --> + <property> + <name>ranger.audit.dispatcher.thread.count</name> + <value>5</value> + <description>Number of OpenSearch dispatcher worker threads (higher for indexing throughput)</description> + </property> + + <!-- Offset Management --> + <property> + <name>ranger.audit.dispatcher.offset.commit.strategy</name> + <value>batch</value> + <description>batch or manual</description> + </property> + + <property> + <name>ranger.audit.dispatcher.offset.commit.interval.ms</name> + <value>30000</value> + <description>Used only if strategy is 'manual'</description> + </property> + + <property> + <name>ranger.audit.dispatcher.max.poll.records</name> + <value>500</value> + <description>Maximum records per poll for batch processing</description> + </property> Review Comment: @paras200 Can you check this commit :https://github.com/apache/ranger/commit/4a061759b417e23a9ea46564681fc384166dfe35#diff-80b8cb0e7c75dec31831309f9f3e3ad5dbeb059af1746130abf075ec16709b0d <property> <name>ranger.audit.dispatcher.partition.assignment.strategy</name> <value>org.apache.kafka.clients.consumer.CooperativeStickyAssignor</value> <description>Cooperative sticky assignor for K8s pod churn (Kafka 3.9+).</description> </property> <property> <name>ranger.audit.dispatcher.session.timeout.ms</name> <value>60000</value> </property> <property> <name>ranger.audit.dispatcher.heartbeat.interval.ms</name> <value>10000</value> </property> <property> <name>ranger.audit.dispatcher.max.poll.interval.ms</name> <value>300000</value> <description>Increase (e.g. 600000) if HDFS per-record writes exceed default 5 min window.</description> </property> <property> <name>ranger.audit.dispatcher.session.timeout.ms</name> <value>60000</value> <description>Consumer session timeout (failure detection). Must be > 3 × heartbeat.interval.ms.</description> </property> <property> <name>ranger.audit.dispatcher.heartbeat.interval.ms</name> <value>10000</value> <description>Consumer heartbeat interval while idle.</description> </property> <property> <name>ranger.audit.dispatcher.max.poll.interval.ms</name> <value>300000</value> <description>Max time between poll() calls while processing a batch (Solr indexing). Increase if batches are slow.</description> </property> -- 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]
