You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2023/04/11 08:10:20 UTC

[incubator-datalab] branch epm-v2.5.2.1 updated: feat: made notebook disk 50G if GPU is enabled

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch epm-v2.5.2.1
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/epm-v2.5.2.1 by this push:
     new f9b639368 feat: made notebook disk 50G if GPU is enabled
f9b639368 is described below

commit f9b6393688114a78e0b185f31701ff1e0633186a
Author: Leonid_Frolov1 <Le...@epam.com>
AuthorDate: Tue Apr 11 11:09:01 2023 +0300

    feat: made notebook disk 50G if GPU is enabled
---
 .../src/general/scripts/gcp/common_prepare_notebook.py                | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
index f07adaec5..12afc8667 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
@@ -90,8 +90,8 @@ if __name__ == "__main__":
                                                                        notebook_config['project_name'],
                                                                        notebook_config['endpoint_name'],
                                                                        notebook_config['exploratory_name'])
-        notebook_config['primary_disk_size'] = (lambda x: '60' if x == 'deeplearning' else '30')(
-            os.environ['application'])
+        notebook_config['primary_disk_size'] = (lambda x, y: '60' if x == 'deeplearning' else '50' if y == 'True'
+        else '30')(os.environ['application'], os.environ['gpu_enabled'])
         notebook_config['secondary_disk_size'] = os.environ['notebook_disk_size']
 
         notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org