* Finish task#98680

This commit is contained in:
zenggang
2023-07-28 01:46:14 +00:00
parent 91c07903f8
commit 758960febb
8 changed files with 215 additions and 8 deletions
+2 -2
View File
@@ -241,7 +241,7 @@ class instance extends control
$clusterResource = $this->cne->cneMetrics();
$freeMemory = intval($clusterResource->metrics->memory->allocatable * 0.9); // Remain 10% memory for system.
if($memoryKb * 1024 > $freeMemory) $this->send(array('result' => 'fail', 'message' => $this->lang->instance->errors->notEnoughResource));
/* Request CNE to adjust memory size. */
if(!$this->instance->updateMemorySize($instance, $memoryKb * 1024))
{
@@ -406,7 +406,7 @@ class instance extends control
{
$customData = fixer::input('post')
->trim('customName')->setDefault('customName', '')
->trim('customDomain')->setDefault('customDomain', null)
->trim('customDomain')->setDefault('customDomain', '')
->trim('version')->setDefault('version', '')
->trim('dbType')->setDefault('dbType', 'unsharedDB')
->trim('dbService')