cloud-pipeline icon indicating copy to clipboard operation
cloud-pipeline copied to clipboard

[Quick Launcher] Refactor quick launcher settings for tools

Open SilinPavel opened this issue 3 years ago • 0 comments
trafficstars

Background For now it is possible to configure several settings for tool before launch it (r libs, java etc). However it is possible to configure it for every tool in the same way (same number of settings for whole tool set).

It seems reasonable to have option to split tools by some tag or something and be able to specify separate settings for such tag (f.e. it would be necessary to configure jupiter with anaconda/lib dir and rstudio with its own r lib dir, etc)

Approach Approach would be:

  • Introduce new tag app_config

  • Use this tag in quick-launcher to decide which config should be used and how organize tools on UI

  • appConfig section form settings file now could looks like (f.e. we have two different app_config tag values rstudio and jupiter):

    "appConfig" : {
       "common": {
          "parameters": {...},
          "applicationsMode": "..."
       },
       "rstudio" : {
          "nodeSizes": {
            "normal": "m5.xlarge",
            "medium": "r5.xlarge",
            "large": "r5.4xlarge"
         },
        "limitMounts": {
           "mounts": "current_user_default_storage,r_sys_lib",
           "limitMountsPlaceholders": {
               "r_sys_lib": {
                  "title": "R Library",
                  "tagName": "app_library",
                  "tagValue": "R",
                  "default": 14
              }
            }
         }
       },
      "jupiter" : {
          "nodeSizes": {
            "normal": "m5.xlarge",
            "medium": "r5.xlarge",
            "large": "r5.4xlarge"
         }
        "limitMounts": {
           "mounts": "py_sys_lib",
           "limitMountsPlaceholders": {
               "py_sys_lib": {
                  "title": "Py Library",
                  "tagName": "app_library",
                  "tagValue": "Py",
                  "default": 13
              }
            }
         }
       }
    }
    

Settings could be placed in common section or in specific section for specific config. This settings should have the next override rule specific app config -> common section -> default value

Such approach is flexible enough to provide options to use quick launcher not only for rstudio tool but also others

SilinPavel avatar Apr 14 '22 09:04 SilinPavel