Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
2433a910
Commit
2433a910
authored
Dec 19, 2019
by
Kenzo-Hugo Hillion
♻
Browse files
Increase resources for backend and db
parent
00e05f53
Pipeline
#20341
failed with stages
in 2 minutes and 26 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/Pipfile
View file @
2433a910
...
...
@@ -52,7 +52,7 @@ sqlparse = "*"
urllib3
=
"*"
Django
=
"*"
PyJWT
=
"*"
metagenedb
=
{
editable
=
true
,
path
=
"."
}
metagenedb
=
{
path
=
"."
}
drf-yasg
=
"*"
packaging
=
"*"
python-slugify
=
"*"
...
...
backend/Pipfile.lock
View file @
2433a910
{
"_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
== '
D
arwin'"
,
"markers"
:
"
sys_
platform == '
d
arwin'"
,
"version"
:
"==0.1.0"
},
"astroid"
:
{
...
...
backend/metagenedb/api/catalog/views/admin_commands.py
View file @
2433a910
...
...
@@ -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
},
...
...
backend/scripts/start.sh
View file @
2433a910
...
...
@@ -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
}
ci/kubernetes/backend.yaml
View file @
2433a910
...
...
@@ -51,11 +51,11 @@ spec:
-
containerPort
:
8000
resources
:
requests
:
memory
:
"
1
024Mi"
cpu
:
"
25
0m"
memory
:
"
2
024Mi"
cpu
:
"
100
0m"
limits
:
memory
:
"
4096Mi"
cpu
:
"
1
000m"
cpu
:
"
2
000m"
imagePullSecrets
:
-
name
:
registry-gitlab
volumes
:
...
...
ci/kubernetes/cronjob.yaml
View file @
2433a910
...
...
@@ -3,7 +3,7 @@ kind: CronJob
metadata
:
name
:
compute-statistics
spec
:
schedule
:
"
*
0
*
*
*"
schedule
:
"
0
0
*
*
*"
jobTemplate
:
spec
:
template
:
...
...
ci/kubernetes/postgresql.yaml
View file @
2433a910
...
...
@@ -54,8 +54,8 @@ spec:
name
:
postgresql
resources
:
requests
:
memory
:
"
2
024Mi"
cpu
:
"
2
00m"
memory
:
"
4
024Mi"
cpu
:
"
5
00m"
limits
:
memory
:
"
8096Mi"
cpu
:
"
1000m"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment