Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.12 KB

File metadata and controls

40 lines (26 loc) · 1.12 KB

RocksDB Compaction & Flush

Nebula supports auto and manual (through HTTP request) RocksDB compaction or flush in storage service.

Auto RocksDB Compaction

Turn off auto Compaction

Input the following command in console to turn off the auto compaction.

UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = true }

Turn on auto Compaction

Input the following command in console to turn on the auto compaction.

UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = false }

Manually Trigger compaction and flush

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 file storage.conf
  • ws_port is the storage HTTP port
  • op is the associated admin operations, only compact and flush 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"