Skip to content

Commit

Permalink
compact (#105)
Browse files Browse the repository at this point in the history
* compact

* add-toc

* fix wum

* fix wum2
  • Loading branch information
amber-moe authored Jul 7, 2020
1 parent 9874aaf commit a030901
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Compact

This document will walk you through the concept of Compact.

1. Start or stop compact with the `UPDATE CONFIG disable_auto_compactions=false/true` command. This method calls the default RocksDB compact. You can use it to merge sst files in small scale during data writing to ensure the read speed in a short time. This kind of compact is usually performed in the day time.
2. Start compact with the `SUBMIT JOB COMPACT` command. This method calls the customized compact of **Nebula Graph**. You can use it to perform large scale background operations such as sst files merging in large scale or TTL. This kind of compact is usually performed after midnight.

In addition, you can modify the number of threads in both methods by the following command. You can decrease the threads during daytime and increase it at night.

```ngql
nebula> UPDATE CONFIGS storage:rocksdb_db_options = \
{ max_subcompactions = 4, max_background_jobs = 4};
```
1 change: 1 addition & 0 deletions docs/manual-EN/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ It is the optimal solution in the world capable of hosting graphs with dozens of
* [Storage Balance](3.build-develop-and-administration/5.storage-service-administration/storage-balance.md)
* [Cluster Snapshot](3.build-develop-and-administration/5.storage-service-administration/cluster-snapshot.md)
* [Long Time-Consuming Task Management](3.build-develop-and-administration/5.storage-service-administration/job-manager.md)
* [Compact](3.build-develop-and-administration/5.storage-service-administration/compact.md)
* Monitoring and Statistics
<!-- * [Connect Prometheus](3.build-develop-and-administration/7.monitor/0.connect-prometheus.md) -->
* [Metrics](3.build-develop-and-administration/7.monitor/1.metrics-exposer.md)
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ nav:
- Storage Balance: manual-EN/3.build-develop-and-administration/5.storage-service-administration/storage-balance.md
- Cluster Snapshot: manual-EN/3.build-develop-and-administration/5.storage-service-administration/cluster-snapshot.md
- Long Time-Consuming Task Management: manual-EN/3.build-develop-and-administration/5.storage-service-administration/job-manager.md
- Compact: manual-EN/3.build-develop-and-administration/5.storage-service-administration/compact.md

- Monitoring and Statistics:
# - Connect Prometheus: manual-EN/3.build-develop-and-administration/7.monitor/0.connect-prometheus.md
Expand Down

0 comments on commit a030901

Please sign in to comment.