Tuesday, October 30, 2018

Re: Using django on kubernetes

Hi,


Django is not really the key factor here, and the amount of consumed resources depends mainly on what your business logic does on top of Django.


IMHO the only way to properly estimate the limits is observing the metrics and trends of the related pods for a significant period and with an application load representative of the operational conditions. You'll have then rough estimates of how much RAM, CPU,... is used by the pods, and be able to set the limits correctly.


Maybe not question was not exactly this.


Eric


From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf of Andréas Kühne <andreas.kuhne@hypercode.se>
Sent: Tuesday, October 30, 2018 9:27:35 AM
To: django-users@googlegroups.com
Subject: Using django on kubernetes
 
Hi all,

I have created a SPA with angular on the frontend and django rest framework on the backend. It also has celery to do background tasks. Everything is working as intended and it is running pretty smoothly.

We have deployed it on kubernetes - so the frontend (with nginx) is running in one pod, the backend is running in another and celery is running on a third. Everything is connected and works. My question is more about the resources settings for django. Does anyone have any experience in setting up this? Currently I am running without resource limitations - which means that the kubernetes master doesn't know how much resources the django pod needs.

There has to be someone more who has done this and has setup the resource limits correctly - I would like some inspiration. I don't know how much django requires....

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCf2d5fkhcG_g6oy_PY7yLcLtsV8fSsc%3D%2BFFOfdmGrkThA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment