leo-project / leofs

The LeoFS Storage System

Home Page:https://leo-project.net/leofs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rebalance while compaction is in work on all nodes

wulfgar93 opened this issue · comments

Hello! Could you be so king and answer me one question? I didn't find any information in docs.

Is it save to add new storage node and run rebalance while compaction is in work on all nodes?

Is it save to add new storage node and run rebalance while compaction is in work on all nodes?

The main purpose of Data compaction is to remove unnecessary objects from each your storage node. The purpose of adding a storage node(s) and rebalance is to increase the disk capacity of the storage system.

When the disk capacity of your LeoFS storage system is low, add nodes, otherwise, data-compaction is enough.

@yosukehara thanks for answering! I made a mistake with word "save" in my question, I meaned "safe". :) I understand meaning of these functions, but the question is whether it is safe to run both of these functions in parallel. Cluster receive new data faster than compaction can delete unnecessary objects and also I know that disk capacity will be not enough for new data. New storage nodes are ready to join the cluster, but earlier I've launched compaction and I worry of safety to add them before compaction ends.

@yosukehara, could you clarify weather I can add new sorage node and launch rebalance in parallel with compaction?