Specifying a configuration map for RocksDB properties
You use a
ConfigMap object for RocksDB properties, for example for
DBOptions and ColumnFamilyOptions objects.
Procedure
To specify the
ConfigMap name for RocksDB properties, update the IBM Business Automation Insights deployment by specifying the name of
the configuration map in the
bai_configuration.flink.rocks_db_properties_config_map parameter.
The following example of a configuration map uses RocksDB properties for both
DBOptions and ColumnFamilyOptions
objects.apiVersion: v1
kind: ConfigMap
metadata:
name: bai-rocksdb-options
data:
rocksdb-dboptions-allow_mmap_reads: "true"
rocksdb-dboptions-bytes_per_sync: "13"
rocksdb-columnfamilyoptions-optimize_filters_for_hits: "true"
rocksdb-columnfamilyoptions-compaction_style: "kCompactionStyleLevel"RocksDB properties are prefixed as follows.
and advanced_options.h
files, and on the Column Families
page.
rocksdb-dboptions-for theDBOptionsclassrocksdb-columnfamilyoptions-for theColumnFamilyOptionsclass
If an invalid RocksDB property or value is set, the DEFAULT RocksDB configuration is used instead.