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.
  • rocksdb-dboptions- for the DBOptions class
  • rocksdb-columnfamilyoptions- for the ColumnFamilyOptions class
The RocksDB options that must be appended to each prefix are defined in the options.h External link opens a new window or tab and advanced_options.h External link opens a new window or tab files, and on the Column Families External link opens a new window or tab page.

If an invalid RocksDB property or value is set, the DEFAULT RocksDB configuration is used instead.