This is an automated email from the ASF dual-hosted git repository. jfthomps pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/vcl.git
commit 55bb9342cad793b938b34513c178d1f503018536 Author: Josh Thompson <[email protected]> AuthorDate: Thu Feb 15 16:44:28 2024 -0500 VCL-1140 - increase default RAM and cores for images to 4 GB and 2 cores image.php: modified addEditDialogHTML and validateResourceData: changed defaults from 512 MB to 4096 MB for RAM and from 1 to 2 for cores --- web/.ht-inc/image.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/.ht-inc/image.php b/web/.ht-inc/image.php index 4cc93058..8bfe4408 100644 --- a/web/.ht-inc/image.php +++ b/web/.ht-inc/image.php @@ -395,11 +395,11 @@ class Image extends Resource { # RAM $extra = array('smallDelta' => 256, 'largeDelta' => 1024); $h .= labeledFormItem('ram', i('Required RAM') . ' (MB)', 'spinner', '{min:512, max:8388607}', - 1, 1024, '', '', $extra); + 1, 4096, '', '', $extra); # cores $extra = array('smallDelta' => 1, 'largeDelta' => 2); $h .= labeledFormItem('cores', i('Required Cores'), 'spinner', '{min:1, max:255}', - 1, 1, '', '', $extra); + 1, 2, '', '', $extra); # proc speed $extra = array('smallDelta' => 500, 'largeDelta' => 8000); $h .= labeledFormItem('cpuspeed', i('Processor Speed'), 'spinner', '{min:500, max:8000}', @@ -1639,8 +1639,8 @@ class Image extends Resource { $return["name"] = processInputVar("name", ARG_STRING, ''); $return["owner"] = processInputVar("owner", ARG_STRING, "{$user["unityid"]}@{$user['affiliation']}"); - $return["ram"] = processInputVar("ram", ARG_NUMERIC, 512); - $return["cores"] = processInputVar("cores", ARG_NUMERIC, 4); + $return["ram"] = processInputVar("ram", ARG_NUMERIC, 4096); + $return["cores"] = processInputVar("cores", ARG_NUMERIC, 2); $return["cpuspeed"] = processInputVar("cpuspeed", ARG_NUMERIC, 2000); $return["networkspeed"] = (int)processInputVar("networkspeed", ARG_NUMERIC); $return["concurrent"] = processInputVar("concurrent", ARG_NUMERIC, 0);
