Skip to content

Commit 4c2fd32

Browse files
Konstantin Bogdanovthevar1able
Konstantin Bogdanov
authored andcommitted
Use erasure mirror-3-dc in Storage example
1 parent 87fc19c commit 4c2fd32

File tree

2 files changed

+59
-88
lines changed

2 files changed

+59
-88
lines changed

samples/database.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ kind: Database
33
metadata:
44
name: database-sample
55
spec:
6-
version: 21.4.30
6+
image:
7+
name: cr.yandex/crpl7ipeu79oseqhcgn2/ydb-oss:master
78
nodes: 6
89
resources:
910
containerResources:

samples/storage.yaml

+57-87
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,28 @@ spec:
1010
resources:
1111
requests:
1212
storage: 80Gi
13-
# version: 21.4.30
1413
image:
1514
name: cr.yandex/crpl7ipeu79oseqhcgn2/ydb-oss:master
16-
nodes: 8
17-
erasure: block-4-2
15+
nodes: 9
16+
erasure: mirror-3-dc
1817
configuration: |-
19-
static_erasure: block-4-2
18+
static_erasure: mirror-3-dc
2019
host_configs:
2120
- drive:
2221
- path: /dev/kikimr_ssd_00
2322
type: SSD
2423
host_config_id: 1
24+
grpc_config:
25+
port: 2135
2526
domains_config:
2627
domain:
2728
- name: root
2829
storage_pool_types:
29-
- kind: hdd
30+
- kind: ssd
3031
pool_config:
3132
box_id: 1
32-
erasure_species: block-4-2
33-
kind: hdd
33+
erasure_species: mirror-3-dc
34+
kind: ssd
3435
pdisk_filter:
3536
- property:
3637
- type: SSD
@@ -76,90 +77,59 @@ spec:
7677
service_set:
7778
availability_domains: 1
7879
groups:
79-
- erasure_species: block-4-2
80+
- erasure_species: mirror-3-dc
8081
group_id: 0
8182
group_generation: 1
8283
rings:
8384
- fail_domains:
84-
- vdisk_locations:
85-
- node_id: 1
86-
pdisk_id: 1
87-
vdisk_slot_id: 0
88-
- vdisk_locations:
89-
- node_id: 2
90-
pdisk_id: 1
91-
vdisk_slot_id: 0
92-
- vdisk_locations:
93-
- node_id: 3
94-
pdisk_id: 1
95-
vdisk_slot_id: 0
96-
- vdisk_locations:
97-
- node_id: 4
98-
pdisk_id: 1
99-
vdisk_slot_id: 0
100-
- vdisk_locations:
101-
- node_id: 5
102-
pdisk_id: 1
103-
vdisk_slot_id: 0
104-
- vdisk_locations:
105-
- node_id: 6
106-
pdisk_id: 1
107-
vdisk_slot_id: 0
108-
- vdisk_locations:
109-
- node_id: 7
110-
pdisk_id: 1
111-
vdisk_slot_id: 0
112-
- vdisk_locations:
113-
- node_id: 8
114-
pdisk_id: 1
115-
vdisk_slot_id: 0
116-
- vdisk_locations:
117-
- node_id: 9
118-
pdisk_id: 1
119-
vdisk_slot_id: 0
85+
- vdisk_locations:
86+
- node_id: 1
87+
pdisk_category: SSD
88+
path: /dev/kikimr_ssd_00
89+
- vdisk_locations:
90+
- node_id: 2
91+
pdisk_category: SSD
92+
path: /dev/kikimr_ssd_00
93+
- vdisk_locations:
94+
- node_id: 3
95+
pdisk_category: SSD
96+
path: /dev/kikimr_ssd_00
97+
- fail_domains:
98+
- vdisk_locations:
99+
- node_id: 4
100+
pdisk_category: SSD
101+
path: /dev/kikimr_ssd_00
102+
- vdisk_locations:
103+
- node_id: 5
104+
pdisk_category: SSD
105+
path: /dev/kikimr_ssd_00
106+
- vdisk_locations:
107+
- node_id: 6
108+
pdisk_category: SSD
109+
path: /dev/kikimr_ssd_00
110+
- fail_domains:
111+
- vdisk_locations:
112+
- node_id: 7
113+
pdisk_category: SSD
114+
path: /dev/kikimr_ssd_00
115+
- vdisk_locations:
116+
- node_id: 8
117+
pdisk_category: SSD
118+
path: /dev/kikimr_ssd_00
119+
- vdisk_locations:
120+
- node_id: 9
121+
pdisk_category: SSD
122+
path: /dev/kikimr_ssd_00
120123
channel_profile_config:
121124
profile:
122125
- channel:
123-
- erasure_species: block-4-2
124-
pdisk_category: 0
125-
storage_pool_kind: hdd
126-
- erasure_species: block-4-2
127-
pdisk_category: 0
128-
storage_pool_kind: hdd
129-
- erasure_species: block-4-2
130-
pdisk_category: 0
131-
storage_pool_kind: hdd
132-
profile_id: 0
133-
- channel:
134-
- erasure_species: block-4-2
135-
pdisk_category: 0
136-
storage_pool_kind: hdd
137-
- erasure_species: block-4-2
138-
pdisk_category: 0
139-
storage_pool_kind: hdd
140-
- erasure_species: block-4-2
141-
pdisk_category: 0
142-
storage_pool_kind: hdd
143-
profile_id: 1
144-
- channel:
145-
- erasure_species: block-4-2
146-
pdisk_category: 0
147-
storage_pool_kind: hdd
148-
- erasure_species: block-4-2
149-
pdisk_category: 0
150-
storage_pool_kind: hdd
151-
- erasure_species: block-4-2
152-
pdisk_category: 0
153-
storage_pool_kind: hdd
154-
profile_id: 2
155-
- channel:
156-
- erasure_species: block-4-2
157-
pdisk_category: 0
158-
storage_pool_kind: hdd
159-
- erasure_species: block-4-2
160-
pdisk_category: 0
161-
storage_pool_kind: hdd
162-
- erasure_species: block-4-2
163-
pdisk_category: 0
164-
storage_pool_kind: hdd
165-
profile_id: 3
126+
- erasure_species: mirror-3-dc
127+
pdisk_category: 1
128+
storage_pool_kind: ssd
129+
- erasure_species: mirror-3-dc
130+
pdisk_category: 1
131+
storage_pool_kind: ssd
132+
- erasure_species: mirror-3-dc
133+
pdisk_category: 1
134+
storage_pool_kind: ssd
135+
profile_id: 0

0 commit comments

Comments
 (0)