diff options
author | gvit <gvit@ydb.tech> | 2023-10-10 19:01:45 +0300 |
---|---|---|
committer | gvit <gvit@ydb.tech> | 2023-10-10 20:39:10 +0300 |
commit | 7a300aaf20cf9a062e0cafaad819785ddb525c15 (patch) | |
tree | a2897a1ed4987c55509fd6acd30269bf25e9f862 | |
parent | 927f78bc5e24e809ad7bed12a9c5edb075c81482 (diff) | |
download | ydb-7a300aaf20cf9a062e0cafaad819785ddb525c15.tar.gz |
switch recipe by default to in memory mode
-rw-r--r-- | ydb/public/tools/lib/cmds/__init__.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ydb/public/tools/lib/cmds/__init__.py b/ydb/public/tools/lib/cmds/__init__.py index 92b653f463..7f7d768347 100644 --- a/ydb/public/tools/lib/cmds/__init__.py +++ b/ydb/public/tools/lib/cmds/__init__.py @@ -222,8 +222,14 @@ class Recipe(object): return ensure_path_exists(self.data_path) -def use_in_memory_pdisks_flag(): - return os.getenv('YDB_USE_IN_MEMORY_PDISKS') == 'true' +def use_in_memory_pdisks_flag(ydb_working_dir=None): + if os.getenv('YDB_USE_IN_MEMORY_PDISKS') is not None: + return os.getenv('YDB_USE_IN_MEMORY_PDISKS') == "true" + + if ydb_working_dir: + return False + + return True def default_users(): @@ -320,7 +326,7 @@ def deploy(arguments): udfs_path=arguments.ydb_udfs_dir, additional_log_configs=additional_log_configs, port_allocator=port_allocator, - use_in_memory_pdisks=use_in_memory_pdisks_flag(), + use_in_memory_pdisks=use_in_memory_pdisks_flag(arguments.ydb_working_dir), fq_config_path=arguments.fq_config_path, public_http_config_path=arguments.public_http_config_path, auth_config_path=arguments.auth_config_path, |