-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from Al-assad/hot-cold-separation
Supports Doris BE cold-hot separation storage configuration
- Loading branch information
Showing
11 changed files
with
287 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: "Cold-Hot Separation Storage for Doris BE" | ||
weight: 660 | ||
--- | ||
|
||
This document describes how to configure multi-disk storage and cold-hot separation storage for Doris BE on Kubernetes. | ||
|
||
Doris BE supports multiple independent data storage directories, balancing the read and write performance as well as the | ||
cost of hot and cold data by simultaneously mounting SSD and HDD storage medium. | ||
|
||
The [Doris deployment documentation](https://doris.apache.org/docs/1.2/install/standard-deployment/#deploy-be) provides | ||
details on this aspect. The Doris Operator offers a straightforward way to configure this process through | ||
the `spec.be.storage` item in the DorisCluster CRD. | ||
|
||
{{< readfile file="/examples/be-multiple-storage/doris-cluster.yaml" code="true" lang="yaml" >}} | ||
|
||
For the preparation of StorageClass and PV, please refer | ||
to: [Configuring Storage Class](../../deploy/configure-storage-class/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: "配置 Doris BE 冷热分离存储" | ||
weight: 660 | ||
--- | ||
|
||
本文描述了如何为 Doris BE on Kubernetes 配置多磁盘存储和冷热分离存储。 | ||
|
||
Doris BE 支持多个独立数据存储目录,比如通过同时挂载 SSD 和 HDD 存储介质来平衡热数据,冷数据的读写性能和成本。 | ||
|
||
在 [Doris 部署文档](https://doris.apache.org/docs/1.2/install/standard-deployment/#deploy-be)中描述了这部分的内容,Doris | ||
Operator 提供了一种简单的方式来实现这一过程的配置,通过DorisCluster CRD 的 `spec.be.storage` 配置项。 | ||
|
||
{{< readfile file="/examples/be-multiple-storage/doris-cluster.yaml" code="true" lang="yaml" >}} | ||
|
||
关于 StorageClass 和 PV 的制备,请参考:[配置 Storage Class](../../deploy/%E9%85%8D%E7%BD%AE-storage-class/)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: al-assad.github.io/v1beta1 | ||
kind: DorisCluster | ||
metadata: | ||
name: basic | ||
spec: | ||
version: 2.0.2 | ||
fe: | ||
baseImage: ghcr.io/linsoss/doris-fe | ||
replicas: 3 | ||
requests: | ||
cpu: 500m | ||
memory: 1Gi | ||
storage: 50Gi | ||
be: | ||
baseImage: ghcr.io/linsoss/doris-be | ||
replicas: 3 | ||
requests: | ||
cpu: 500m | ||
memory: 1Gi | ||
## The custom storage of BE used to support cold and hot storage separation. | ||
## Ref: https://doris.apache.org/docs/1.2/install/standard-deployment/#deploy-be | ||
## name: custom storage name | ||
## medium: storage medium, SSD(hot storage) or HDD(cold storage) | ||
## request: storage capacity, e.g. "500Gi" | ||
## storageClassName: k8s storage class name for the pvc | ||
storage: | ||
- name: storage-cold-1 | ||
medium: HDD | ||
request: 500Gi | ||
storageClassName: hdd-pool | ||
- name: storage-cold-2 | ||
medium: HDD | ||
request: 500Gi | ||
storageClassName: hdd-pool | ||
- name: storage-hot | ||
medium: SSD | ||
request: 200Gi | ||
storageClassName: ssd-pool |
Oops, something went wrong.