[
https://issues.apache.org/jira/browse/FLINK-9561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16507249#comment-16507249
]
Sihua Zhou commented on FLINK-9561:
---
Hi [~aitozi] I think flink already supported this, you can implement the
{{OptionsFactory}} to override the {{OptionsFactory#createDBOptions}} to
special your {{DBOptions}}, and override the
{{OptionsFactory#createColumnOptions}} to special your {{ColumnFamilyOptions}}.
A simple example likes like below
{code:java}
rocksDbBackend.setOptions(new OptionsFactory() {
public DBOptions createDBOptions(DBOptions currentOptions) {
return currentOptions.setMaxOpenFiles(1024);
}
public ColumnFamilyOptions createColumnOptions(ColumnFamilyOptions
currentOptions) {
return
currentOptions.setCompactionStyle(org.rocksdb.CompactionStyle.LEVEL);
}
});
{code}
> Lack of the api to set RocksDB Option by flink config
> -
>
> Key: FLINK-9561
> URL: https://issues.apache.org/jira/browse/FLINK-9561
> Project: Flink
> Issue Type: Improvement
> Components: State Backends, Checkpointing
>Affects Versions: 1.5.0
>Reporter: aitozi
>Assignee: aitozi
>Priority: Major
>
> we have serval PredefinedOptions for rocksdb options, but it is not
> configurable, I think should support this to allow user to choose according
> to the device. [~StephanEwen] do you think so?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)