platinumhamburg opened a new issue, #2435:
URL: https://github.com/apache/fluss/issues/2435

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and 
found nothing similar.
   
   
   ### Motivation
   
   RocksDB statistics collection has performance overhead. Users should be able 
to disable it when:
   - RocksDB-level metrics are not needed
   - Running in resource-constrained environments
   - Troubleshooting performance issues
   
   ### Solution
   
   **New Configuration**
   
   | Option | Type | Default | Description |
   |--------|------|---------|-------------|
   | `kv.rocksdb.statistics.enabled` | Boolean | false | Enable RocksDB 
statistics collection for metrics |
   
   **Files Modified**
   - `ConfigOptions.java` - Add new config option
   - `KvTablet.java` - Read config to control statistics initialization
   - `RocksDBStatistics.java` - Minor optimization: use `getLongProperty()` 
instead of `getProperty()` to reduce JNI memory overhead
   - `configuration.md` - Documentation
   
   
   
   ### Anything else?
   
   Additional Optimization:
   
   Replaced `RocksDB.getProperty()` with `getLongProperty()` in statistics 
collection to avoid unnecessary string allocation in JNI layer during 
high-frequency Prometheus scraping.
   
   ### Willingness to contribute
   
   - [x] I'm willing to submit a PR!


-- 
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]

Reply via email to