Skip to content

Commit a3f859c

Browse files
authored
Feature/ydbd slice/add alias binary to kikimr (#12956)
1 parent 0b4cab3 commit a3f859c

File tree

2 files changed

+55
-46
lines changed

2 files changed

+55
-46
lines changed

ydb/tools/ydbd_slice/baremetal/templates/block-4-2-8-nodes.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33

44
# Option will be removed further
55
use_new_style_kikimr_cfg: true
6+
yaml_config_enabled: true
67

7-
# static erasure is the parameter that
8-
# describes the fault tolerance mode of the
9-
# cluster. See docs for more details https://ydb.tech/en/docs/deploy/configuration/config#domains-blob
8+
log:
9+
cluster_name: "default_devslice" # Change cluster name in order to have better experience with logs searching in Monium.
10+
uaclient_config:
11+
uri: "[fd53::1]:16400"
12+
grpc_max_message_size: 4194304
1013

1114
host_configs: # the list of available host configurations in the cluster.
1215
- drive:
13-
- path: /dev/disk/by-partlabel/kikimr_nvme_01 # path of the first disk in the host configration.
16+
- path: &disk_path_1 /dev/disk/by-partlabel/kikimr_nvme_01 # path of the first disk in the host configration.
1417
type: SSD # kind of the disk: available kinds are SSD, NVME or HDD
15-
- path: /dev/disk/by-partlabel/kikimr_nvme_02
18+
- path: &disk_path_2 /dev/disk/by-partlabel/kikimr_nvme_02
1619
type: SSD
1720
# Add more disks if required.
1821
host_config_id: 1 # the unique id of the host config
@@ -156,42 +159,42 @@ blob_storage_config: # configuration of static blobstorage group.
156159
- node_id: *host_1
157160
pdisk_category: &pdisk_category CHANGE_PDISK_CATEGORY # Set this option to 1, if cluster has SSD/NVME disks
158161
# or to 0, if cluster has HDD.
159-
path: /dev/disk/by-partlabel/kikimr_nvme_01
162+
path: *disk_path_1
160163
pdisk_guid: 1
161164
- vdisk_locations:
162165
- node_id: *host_2
163166
pdisk_category: *pdisk_category
164-
path: /dev/disk/by-partlabel/kikimr_nvme_01
167+
path: *disk_path_1
165168
pdisk_guid: 2
166169
- vdisk_locations:
167170
- node_id: *host_3
168171
pdisk_category: *pdisk_category
169-
path: /dev/disk/by-partlabel/kikimr_nvme_01
172+
path: *disk_path_1
170173
pdisk_guid: 3
171174
- vdisk_locations:
172175
- node_id: *host_4
173176
pdisk_category: *pdisk_category
174-
path: /dev/disk/by-partlabel/kikimr_nvme_01
177+
path: *disk_path_1
175178
pdisk_guid: 4
176179
- vdisk_locations:
177180
- node_id: *host_5
178181
pdisk_category: *pdisk_category
179-
path: /dev/disk/by-partlabel/kikimr_nvme_01
182+
path: *disk_path_1
180183
pdisk_guid: 5
181184
- vdisk_locations:
182185
- node_id: *host_6
183186
pdisk_category: *pdisk_category
184-
path: /dev/disk/by-partlabel/kikimr_nvme_01
187+
path: *disk_path_1
185188
pdisk_guid: 6
186189
- vdisk_locations:
187190
- node_id: *host_7
188191
pdisk_category: *pdisk_category
189-
path: /dev/disk/by-partlabel/kikimr_nvme_01
192+
path: *disk_path_1
190193
pdisk_guid: 7
191194
- vdisk_locations:
192195
- node_id: *host_8
193196
pdisk_category: *pdisk_category
194-
path: /dev/disk/by-partlabel/kikimr_nvme_01
197+
path: *disk_path_1
195198
pdisk_guid: 8
196199
# TODO: migrate to channel_profile_config
197200
profiles:

ydb/tools/ydbd_slice/baremetal/templates/mirror-3-dc-3-nodes.yaml

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,22 @@
33

44
# Option will be removed further
55
use_new_style_kikimr_cfg: true
6+
yaml_config_enabled: true
67

8+
log:
9+
cluster_name: "default_devslice" # Change cluster name in order to have better experience with logs searching in Monium.
10+
uaclient_config:
11+
uri: "[fd53::1]:16400"
12+
grpc_max_message_size: 4194304
713

814
host_configs: # the list of available host configurations in the cluster.
915
# NOTE: in mirror-3-dc-3-nodes configuration we have to use hosts with more than 3 physical disks.
1016
- drive:
11-
- path: /dev/disk/by-partlabel/kikimr_nvme_01 # path of the first disk in the host configration.
17+
- path: &disk_path_1 /dev/disk/by-partlabel/kikimr_nvme_01 # path of the first disk in the host configration.
1218
type: SSD # kind of the disk: available kinds are SSD, NVME, ROT (HDD)
13-
- path: /dev/disk/by-partlabel/kikimr_nvme_02
19+
- path: &disk_path_2 /dev/disk/by-partlabel/kikimr_nvme_02
1420
type: SSD
15-
- path: /dev/disk/by-partlabel/kikimr_nvme_03
21+
- path: &disk_path_3 /dev/disk/by-partlabel/kikimr_nvme_03
1622
type: SSD
1723
# Add more disks if required.
1824
# NOTE(shmel1k@): If you host has nodeclaim-label like '_4ssd', that means, that
@@ -21,7 +27,7 @@ host_configs: # the list of available host configurations in the cluster.
2127
# they will be located at `/dev/disk/by-partlabel/kikimr_hdd_03-04` (enumeration starts with 03)
2228
host_config_id: 1
2329
hosts:
24-
- host: ydb-node-zone-a.local # storage node DNS name
30+
- host: &host_1 ydb-node-zone-a.local # storage node DNS name
2531
host_config_id: 1 # numeric host configuration template identifier
2632
location: # this parameter describes where host is located.
2733
body: 1 # string representing a host serial number.
@@ -31,13 +37,13 @@ hosts:
3137
rack: '1' # string representing a rack identifier where the host is located.
3238
# if cluster is deployed using block-4-2 erasure, all hosts should be distrubited
3339
# accross at least 8 racks.
34-
- host: ydb-node-zone-b.local
40+
- host: &host_2 ydb-node-zone-b.local
3541
host_config_id: 1
3642
location:
3743
body: 2
3844
data_center: 'DCB'
3945
rack: '2'
40-
- host: ydb-node-zone-c.local
46+
- host: &host_3 ydb-node-zone-c.local
4147
host_config_id: 1
4248
location:
4349
body: 3
@@ -118,51 +124,51 @@ blob_storage_config: # configuration of static blobstorage group.
118124
rings: # in mirror-3-dc must have exactly 3 rings or availability zones
119125
- fail_domains: # first record: fail domains of the static group describe where each vdisk of the static group should be located.
120126
- vdisk_locations:
121-
- node_id: ydb-node-zone-a.local
122-
pdisk_category: 1 # 1 - SSD, 0 - HDD
123-
path: /dev/disk/by-partlabel/kikimr_nvme_01
127+
- node_id: *host_1
128+
pdisk_category: &pdisk_category 1 # 1 - SSD, 0 - HDD
129+
path: *disk_path_1
124130
pdisk_guid: 1
125131
- vdisk_locations:
126-
- node_id: ydb-node-zone-a.local
127-
pdisk_category: 1
128-
path: /dev/disk/by-partlabel/kikimr_nvme_02
132+
- node_id: *host_1
133+
pdisk_category: *pdisk_category
134+
path: *disk_path_2
129135
pdisk_guid: 2
130136
- vdisk_locations:
131-
- node_id: ydb-node-zone-a.local
132-
pdisk_category: 1
133-
path: /dev/disk/by-partlabel/kikimr_nvme_03
137+
- node_id: *host_1
138+
pdisk_category: *pdisk_category
139+
path: *disk_path_3
134140
pdisk_guid: 3
135141
- fail_domains: # second ring: fail domains of the static group describe where each vdisk of the static group should be located.
136142
- vdisk_locations:
137-
- node_id: ydb-node-zone-b.local
138-
pdisk_category: 1
139-
path: /dev/disk/by-partlabel/kikimr_nvme_01
143+
- node_id: *host_2
144+
pdisk_category: *pdisk_category
145+
path: *disk_path_1
140146
pdisk_guid: 4
141147
- vdisk_locations:
142-
- node_id: ydb-node-zone-b.local
143-
pdisk_category: 1
144-
path: /dev/disk/by-partlabel/kikimr_nvme_02
148+
- node_id: *host_2
149+
pdisk_category: *pdisk_category
150+
path: *disk_path_2
145151
pdisk_guid: 5
146152
- vdisk_locations:
147-
- node_id: ydb-node-zone-b.local
148-
pdisk_category: 1
149-
path: /dev/disk/by-partlabel/kikimr_nvme_03
153+
- node_id: *host_2
154+
pdisk_category: *pdisk_category
155+
path: *disk_path_3
150156
pdisk_guid: 6
151157
- fail_domains: # third ring: fail domains of the static group describe where each vdisk of the static group should be located.
152158
- vdisk_locations:
153-
- node_id: ydb-node-zone-c.local
154-
pdisk_category: 1
155-
path: /dev/disk/by-partlabel/kikimr_nvme_01
159+
- node_id: *host_3
160+
pdisk_category: *pdisk_category
161+
path: *disk_path_1
156162
pdisk_guid: 7
157163
- vdisk_locations:
158-
- node_id: ydb-node-zone-c.local
159-
pdisk_category: 1
160-
path: /dev/disk/by-partlabel/kikimr_nvme_02
164+
- node_id: *host_3
165+
pdisk_category: *pdisk_category
166+
path: *disk_path_2
161167
pdisk_guid: 8
162168
- vdisk_locations:
163-
- node_id: ydb-node-zone-c.local
164-
pdisk_category: 1
165-
path: /dev/disk/by-partlabel/kikimr_nvme_03
169+
- node_id: *host_3
170+
pdisk_category: *pdisk_category
171+
path: *disk_path_3
166172
pdisk_guid: 9
167173

168174
# TODO: migrate to channel_profile_config

0 commit comments

Comments
 (0)