1
0
Fork 0
mirror of synced 2024-05-21 05:02:37 +12:00

Updated safety factor

This commit is contained in:
Eldad Fux 2020-07-16 15:13:15 +03:00
parent 2af2484afa
commit 0fe5e9bdcf
2 changed files with 2 additions and 2 deletions

View file

@ -128,6 +128,7 @@ class FunctionsV1
* Limit CPU Usage - DONE
* Limit Memory Usage - DONE
* Limit Network Usage
* Limit Storage Usage (//--storage-opt size=120m \)
* Make sure no access to redis, mariadb, influxdb or other system services
* Make sure no access to NFS server / storage volumes
* Access Appwrite REST from internal network for improved performance
@ -155,7 +156,6 @@ class FunctionsV1
}
}
//--storage-opt size=120m \
$exitCode = Console::execute("docker run \
--cpus=1 \
--memory=50m \

View file

@ -173,7 +173,7 @@ class HealthCustomClientTest extends Scope
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertIsInt($response['body']['size']);
$this->assertLessThan(120, $response['body']['size']);
$this->assertLessThan(160, $response['body']['size']);
/**
* Test for FAILURE