aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexv-smirnov <alexv-smirnov@yandex-team.ru>2022-04-01 16:28:11 +0300
committeralexv-smirnov <alexv-smirnov@yandex-team.ru>2022-04-01 16:28:11 +0300
commita316418cf300e9f9abf44638827703ff60a4a132 (patch)
tree7af1fb1e906434e675d120975334c819e4d03730
parent8018b6403b0a541ceb735336fecb7d98c02c0120 (diff)
downloadydb-a316418cf300e9f9abf44638827703ff60a4a132.tar.gz
ydb local binary deploy - listen on localhost only
ydb local binary deploy listen monitoring on localhost only ydb local binary deploy listen grpc on localhost only ref:123e15e990eda5f68fabf182909b781a2065b261
-rw-r--r--ydb/deploy/local_binary/linux/config/disk.yaml7
-rw-r--r--ydb/deploy/local_binary/linux/config/ram.yaml6
-rwxr-xr-xydb/deploy/local_binary/linux/start.sh4
3 files changed, 15 insertions, 2 deletions
diff --git a/ydb/deploy/local_binary/linux/config/disk.yaml b/ydb/deploy/local_binary/linux/config/disk.yaml
index a0d9f9720c..35147da12e 100644
--- a/ydb/deploy/local_binary/linux/config/disk.yaml
+++ b/ydb/deploy/local_binary/linux/config/disk.yaml
@@ -82,4 +82,9 @@ channel_profile_config:
storage_pool_kind: ssd
profile_id: 0
table_service_config:
- sql_version: 1 \ No newline at end of file
+ sql_version: 1
+grpc_config:
+ host: 127.0.0.1
+monitoring_config:
+ monitoring_address: localhost
+
diff --git a/ydb/deploy/local_binary/linux/config/ram.yaml b/ydb/deploy/local_binary/linux/config/ram.yaml
index 465ce3bcca..ec9e115d4e 100644
--- a/ydb/deploy/local_binary/linux/config/ram.yaml
+++ b/ydb/deploy/local_binary/linux/config/ram.yaml
@@ -82,4 +82,8 @@ channel_profile_config:
storage_pool_kind: ssd
profile_id: 0
table_service_config:
- sql_version: 1 \ No newline at end of file
+ sql_version: 1
+grpc_config:
+ host: 127.0.0.1
+monitoring_config:
+ monitoring_address: localhost
diff --git a/ydb/deploy/local_binary/linux/start.sh b/ydb/deploy/local_binary/linux/start.sh
index efb62501fb..d8a8953c83 100755
--- a/ydb/deploy/local_binary/linux/start.sh
+++ b/ydb/deploy/local_binary/linux/start.sh
@@ -27,6 +27,10 @@ if [[ $? -eq 0 ]]; then
fi
echo Initializing storage ...
`pwd`/ydbd/bin/ydbd -s grpc://localhost:2136 admin blobstorage config init --yaml-file config/$cfg > logs/init_storage.log 2>&1
+if [[ $? -ge 1 ]]; then
+ echo Errors found when initializing storage, cancelling start script, check logs/init_storage.log
+ exit
+fi
echo Registering database ...
`pwd`/ydbd/bin/ydbd -s grpc://localhost:2136 admin database /Root/test create ssd:1 > logs/db_reg.log 2>&1
if [[ $? -ge 1 ]]; then