Commit 2433a910 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

Increase resources for backend and db

parent 00e05f53
Pipeline #20341 failed with stages
in 2 minutes and 26 seconds
......@@ -52,7 +52,7 @@ sqlparse = "*"
urllib3 = "*"
Django = "*"
PyJWT = "*"
metagenedb = {editable = true,path = "."}
metagenedb = {path = "."}
drf-yasg = "*"
packaging = "*"
python-slugify = "*"
......
{
"_meta": {
"hash": {
"sha256": "a537f0bc55008c51fb8a1e1193186dac3c57c78e9bf579b283775b7de8a5f791"
"sha256": "0ab6318e3ebad7dbf2c7f1b4fc9123cd9125ff5507718d52c0a02bdef28c751b"
},
"pipfile-spec": 6,
"requires": {
......@@ -214,7 +214,6 @@
"version": "==3.3.0"
},
"metagenedb": {
"editable": true,
"path": "."
},
"numpy": {
......@@ -420,7 +419,7 @@
"sha256:5b26757dc6f79a3b7dc9fab95359328d5747fcb2409d331ea66d0272b90ab2a0",
"sha256:8b995ffe925347a2138d7ac0fe77155e4311a0ea6d6da4f5128fe4b3cbe5ed71"
],
"markers": "platform_system == 'Darwin'",
"markers": "sys_platform == 'darwin'",
"version": "==0.1.0"
},
"astroid": {
......
......@@ -26,8 +26,6 @@ class ComputeStatisticsAPI(AdminCommandsAPI):
def get(self, request, format=None):
try:
self.compute_class().all()
# ComputeGeneLength().all()
# ComputeTaxonomyRepartition().all()
except Exception as exception:
logger.warning(exception)
return Response({"message": self.error_message},
......
......@@ -7,4 +7,4 @@ if [ -z $PORT ];then PORT=8000;fi # Need to fix to get value from .env file
python ${SCRIPTS_PATH}/manage.py collectstatic --no-input
python ${SCRIPTS_PATH}/manage.py makemigrations
python ${SCRIPTS_PATH}/manage.py migrate
gunicorn metagenedb.wsgi:application --capture-output --bind 0.0.0.0:${PORT}
gunicorn metagenedb.wsgi:application --bind 0.0.0.0:${PORT}
......@@ -51,11 +51,11 @@ spec:
- containerPort: 8000
resources:
requests:
memory: "1024Mi"
cpu: "250m"
memory: "2024Mi"
cpu: "1000m"
limits:
memory: "4096Mi"
cpu: "1000m"
cpu: "2000m"
imagePullSecrets:
- name: registry-gitlab
volumes:
......
......@@ -3,7 +3,7 @@ kind: CronJob
metadata:
name: compute-statistics
spec:
schedule: "* 0 * * *"
schedule: "0 0 * * *"
jobTemplate:
spec:
template:
......
......@@ -54,8 +54,8 @@ spec:
name: postgresql
resources:
requests:
memory: "2024Mi"
cpu: "200m"
memory: "4024Mi"
cpu: "500m"
limits:
memory: "8096Mi"
cpu: "1000m"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment