Daemon mode is definitely the better option as resource usage is more predictable. Daemon mode also has a lot more configuration options to help in building a resilient system. Just note that various of these options aren’t enabled by default if using plain mod_wsgi because it is hard to change defaults from the past once set. The mod_wsgi-express variant has a better set of defaults.
Graham > On 19 Dec 2015, at 1:17 PM, Deva P. Seetharam <[email protected]> > wrote: > > thank you for your quick response. > we are running in the embedded mode. from the docs, it seems like daemon mode > might be better. is that right? > > On Saturday, December 19, 2015 at 1:41:54 AM UTC+5:30, Graham Dumpleton wrote: > >> On 19 Dec 2015, at 4:17 AM, Deva P. Seetharam <[email protected] <>> >> wrote: >> >> hello, >> we are running mod_wsgi (4.4.21) with apache (2.4.10-10) on a debian >> (version 8.1) machine. we sporadically get the following errors: >> [Sun Dec 06 11:47:16.237617 2015] [wsgi:error] [pid 20144:tid >> 140460217849600] [remote 202.160.0.5:11888 <http://202.160.0.5:11888/>] >> mod_wsgi (pid=20144): Exception occurred processing WSGI script SCRIPT_NAME >> [Sun Dec 06 11:47:16.237731 2015] [wsgi:error] [pid 20144:tid >> 140460217849600] [remote 202.160.0.5:11888 <http://202.160.0.5:11888/>] >> IOError: failed to write data >> [Sun Dec 06 20:34:50.104238 2015] [wsgi:error] [pid 10840:tid >> 140460127352576] (70007)The timeout specified has expired: [client >> 115.118.50.156:4097 <http://115.118.50.156:4097/>] mod_wsgi (pid=10840): >> Unable to get bucket brigade for request. >> >> how to debug/resolve this? kindly let me know. thanks in advance. > > Are you using daemon mode or embedded mode of mod_wsgi? > > Normally this error simply means that the HTTP client dropped the connection > while the response for request was still being written back. It can happen > quite a lot if you have mobile clients over slow or dodgy networks. > > 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 post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > 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 "modwsgi" 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/modwsgi. For more options, visit https://groups.google.com/d/optout.
