Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compact #105

Merged
merged 4 commits into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -140,6 +140,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 @@ -182,6 +182,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