FaaSr / FaaSr-package

Function-as-a-Service package for R
https://faasr.io
Other
4 stars 8 forks source link

Allow specification of memory and ephemeral storage size in JSON configuration #91

Open renatof opened 6 months ago

renatof commented 6 months ago

Allow the user to specify values for target memory, ephemeral storage, and timeout, per-action, via the workflow configuration file, as in this example:

"FunctionList": {
    "start": {
        "FunctionName": "nullstart",
        "Memory" : "10240m",
        "Storage" : "2048m",
        "Timeout" : "15m",
        "FaaSServer": "My_GitHub_Account"
    }
},

Allow the user to express units; can look into standard representations for space and time, but one approach is: for storage: m or g for MBytes or GBytes for timeout: s or m for seconds or minutes

If the user does not specify those, use default values. Otherwise, use what is provided. When registering a workflow, check that the values provided 1) are allowed to be configured in the platform, and 2) are within the limits of the platform, and print warning messages accordingly.