Furthermore, your findings would be helpful for others as well. You’ve found something that is slow (or just hogs resources) would allow others to resolve similar issue(s) much more easy.
> On 29 Jul 2017, at 20.10, Jani Tiainen <[email protected]> wrote: > > Hi. > > You should run performance profile analysis for python code to figure out > what is eating cpu so much. It's easy to do and doesn't take long. That would > also give you good understanding about the part that really consumes so much > resources and can it be actually fixed or is it something really considered > to be implemented by some other means. > > So your main problem is that you don't know the real reason why your workers > are slow. Figure that out and your problem is much easier to resolve either. > > > 29.7.2017 17.21 "M Mihai" <[email protected] <mailto:[email protected]>> > kirjoitti: > I've done the same requests on golang using gorutins and they didn't use so > much of my processor, I didn't test c# on the same vps, but I think c# will > perform better in this case also. > > Python is a wonderful programing language, but after I've tested the same > requests I think I will be better of if I will do these requests using > another programming language > > > On Friday, July 28, 2017 at 8:34:53 PM UTC+3, Jani Tiainen wrote: > Hi. > > I greatly suspect that your problem isn't the Python itself but what you do > in your workers. > > Also what analysis made you to conclusion that using golang or c# would > improve situation? In other words have you really measured and identified the > slow part? > > > 28.7.2017 19.21 "M Mihai" <[email protected] <>> kirjoitti: > Hi, > > Right now I use https://github.com/Koed00/django-q > <https://github.com/Koed00/django-q> and as broker, I use Redis to run some > tasks on my Django website, but they're using 100% of the processor when I'm > running 30 workers. > > So I'm looking for a way to run the tasks with another programing language(I > would prefer golang or c#) and just update the database from python after the > tasks were processed until now I've found only this package for golang: > https://github.com/gocelery/gocelery <https://github.com/gocelery/gocelery> > but I was unable to make this work. > > -- > 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 [email protected] <>. > To post to this group, send email to [email protected] <>. > > Visit this group at https://groups.google.com/group/django-users > <https://groups.google.com/group/django-users>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/c256b5fa-b3d9-4386-bfca-39ebf745c793%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/c256b5fa-b3d9-4386-bfca-39ebf745c793%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > 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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/django-users > <https://groups.google.com/group/django-users>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/90e33207-5def-4b82-8eef-6b38935648ca%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/90e33207-5def-4b82-8eef-6b38935648ca%40googlegroups.com?utm_medium=email&utm_source=footer>. > > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/D8145489-6061-43EF-860C-D5A910B7250E%40gmail.com. For more options, visit https://groups.google.com/d/optout.

