Skip to content

Commit 2615ee6

Browse files
author
Aleksandr Usenko
committed
Update example/ for YDB 25
1 parent 90fadfc commit 2615ee6

29 files changed

Lines changed: 231 additions & 1224 deletions

example/1-start_storage.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,5 @@ ydbd server \
1111
--node $NODE \
1212
--grpc-port $GRPC_PORT \
1313
--mon-port $MON_PORT \
14-
--bootstrap-file static/boot.txt \
15-
--bs-file static/bs.txt \
16-
--channels-file static/channels.txt \
17-
--domains-file static/domains.txt \
18-
--log-file static/log.txt \
19-
--naming-file static/names.txt \
20-
--sys-file static/sys.txt \
21-
--ic-file static/ic.txt \
22-
--vdisk-file static/vdisks.txt \
23-
--suppress-version-check \
14+
--yaml-config static/config.yaml \
15+
--suppress-version-check

example/2-init_storage.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ ydbd -s grpc://localhost:9001 admin bs config invoke --proto-file dynamic/Define
1010
echo "BindRootStorageRequest-Root"
1111
ydbd -s grpc://localhost:9001 db schema execute dynamic/BindRootStorageRequest-Root.txt
1212
echo "CreateTenant"
13-
ydbd -s grpc://localhost:9001 admin console execute --domain=Root --retry=10 dynamic/CreateTenant.txt
14-
echo "Configure-Root"
15-
ydbd -s grpc://localhost:9001 admin console execute --domain=Root --retry=10 dynamic/Configure-Root.txt
13+
ydbd -s grpc://localhost:9001 admin database /Root/NBS create --no-tx ssd:8 rot:2
1614

1715
GRPC_PORT=${GRPC_PORT:-9001}
1816

@@ -30,5 +28,3 @@ echo "AllowNamedConfigs"
3028
ydbd -s grpc://localhost:$GRPC_PORT admin console config set --merge "$ALLOW_NAMED_CONFIGS_REQ"
3129
echo "SetUserAttributes(set unlimited for nonrepl disks)"
3230
ydbd -s grpc://localhost:$GRPC_PORT db schema user-attribute set /Root/NBS __volume_space_limit_ssd_nonrepl=$(( 999 * 1024**5 ))
33-
echo "Set Console Config"
34-
ydb -e grpc://localhost:$GRPC_PORT -d /Root admin config replace -f ydb/config.yaml --allow-unknown-fields

example/cleanup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf data/*
4+
rm -f certs/*
5+
rm -f logs/*
6+
7+
rm -f data
8+
rm -f certs
9+
rm -f logs
10+
11+
rm -f backups.*/{*.txt,*.json}
12+
13+
rm -f nbs/nbs-disk-agent-*.txt
14+
rm -f nbs/nbs-disk-registry.txt
15+
rm -f nbs/nbs-location-*.txt

0 commit comments

Comments
 (0)