apache / apache/iotdb

Where are the remaining two storage strategies?

オープン
#12,582 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
6.4k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
115

説明

In `apache-iotdb-1.3.1-all-bin/conf/iotdb-datanode.properties`

```
# multi_dir_strategy
# The strategy is used to choose a directory from data_dirs for the system to store a new tsfile.
# System provides four strategies to choose from, or user can create his own strategy by extending org.apache.iotdb.db.conf.directories.strategy.DirectoryStrategy.
# The info of the four strategies are as follows:
# 1. SequenceStrategy: the system will choose the directory in sequence.
# 2. MaxDiskUsableSpaceFirstStrategy: the system will choose the directory whose disk has the maximum space.
# Set SequenceStrategy or MaxDiskUsableSpaceFirstStrategy to apply the corresponding strategy.
# If this property is unset, system will use SequenceStrategy as default strategy.
# For this property, fully-qualified class name (include package name) and simple class name are both acceptable.
# dn_multi_dir_strategy=SequenceStrategy
```

Two of the four storage strategies mentioned here
# 1. SequenceStrategy: the system will choose the directory in sequence.
# 2. MaxDiskUsableSpaceFirstStrategy: the system will choose the directory whose disk has the maximum space.

Where are the remaining two storage strategies?
And what I need is a strategy that automatically balances multi-directory storage.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

apache-iotdb-1.3.1-all-bin/conf/iotdb-datanode.properties の multi_dir_strategy セクションから始め、org.apache.iotdb.db.conf.directories.strategy.DirectoryStrategy を調査してください。実際に利用可能な4つの strategy と、data_dirs 間でストレージのバランスを取る strategy をどのように指定すべきかを明らかにしてください。完了の条件は、合意されたスコープと、それに対応するドキュメントまたは実装の証拠があることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
databases
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。