Nebula supports auto and manual (through HTTP request) RocksDB compaction or flush in storage service.
Input the following command in console to turn off the auto compaction.
UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = true }
Input the following command in console to turn on the auto compaction.
UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = false }
Use the following command to trigger compaction and flush manually through HTTP request.
curl "${ws_ip}:${ws_http_port}/admin?space=${spaceName}&${op}"
ws_ip
is the HTTP service IP, which can be found in config filestorage.conf
ws_port
is the storage HTTP portop
is the associated admin operations, onlycompact
andflush
are supported currently
For example:
curl "http://127.0.0.1:50005/admin?space=test&op=compact"
curl "http://127.0.0.1:50005/admin?space=test&op=flush"