Just understand you will need to play with the processes/threads options of WSGIDaemonProcess directive when you switch to daemon mode. So watch carefully how things are affected when you change things and feel free to come back explaining what you see with what settings as could then perhaps give more advice.
> On 8 Dec 2020, at 10:05 pm, Zohaib Ahmed Hassan > <[email protected]> wrote: > > Thank you very much for the reply your suggestions are very important to us I > will apply them one by one and will let you know. > > On Tuesday, December 8, 2020 at 9:53:29 AM UTC+5 Graham Dumpleton wrote: > >> On 8 Dec 2020, at 3:26 pm, Graham Dumpleton <[email protected] >> <applewebdata://EFF0F4EA-C385-4B01-867D-C720E1027931>> wrote: >> >> So if you can change to Celery in the short term, switch to daemon mode >> instead. > > Meant to say "if you can't change" here. > > The other to consider when using daemon mode is split out the image > processing to a separate set of daemon mode processes. > > This is discussed in: > > http://blog.dscpl.com.au/2014/02/vertically-partitioning-python-web.html > <http://blog.dscpl.com.au/2014/02/vertically-partitioning-python-web.html> > > In your case you want to send all image processing into a daemon process > group where have multiple processes and each is single threaded. You can > handle everything else the application does in a normal multithreaded process. > > Graham > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/modwsgi/9e2560ef-1266-4933-aa4b-e1acfc615aafn%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/9e2560ef-1266-4933-aa4b-e1acfc615aafn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/633CDD92-4EDD-452A-A275-596C6D7D9865%40gmail.com.
