Clarification - the uwsgi restart had no delay on the first request running https or http
-Jim On Thu, Aug 21, 2014 at 10:21 AM, Jim Steil <[email protected]> wrote: > uswgi restart - no delay > > nginx restart - about a 12 second delay for the first request if running > https > > nginx restart - no delay if running http > > -Jim > > > > On Thu, Aug 21, 2014 at 10:08 AM, Richard Vézina < > [email protected]> wrote: > >> I have 10m and I don't have this issue... >> >> I don't think it coming from nginx. >> >> There is very few parameters in nginx config that could explain your >> latency... >> >> Does it happen only on reboot of VM, or it happen when you restart nginx, >> or uwsgi. What happen if you restart nginx only vs restart uwsgi only. And >> what happen if you try to start manually uwsgi after reboot of the VM >> before first aptempt to connect to your app. Maybe uwsgi is not started and >> get strat by nginx, that should not be the case though, they have both to >> be strated independently. >> >> You can try your app in other VM and determine if the latency was there >> or not. >> >> All these test can help you figure out where to dig up further. >> >> Richard >> >> >> >> >> On Thu, Aug 21, 2014 at 10:46 AM, Jim Steil <[email protected]> wrote: >> >>> I've changed the following in /etc/nginx/sites-available/web2py >>> >>> ssl_session_cache shared:SSL:10m; -> to 60m >>> ssl_session_timeout 10m; -> to 60m >>> >>> Still took a long time (5-10 seconds) for the first request but maybe >>> now it will not cause that to happen again for greater intervals. >>> >>> -Jim >>> >>> >>> On Wed, Aug 20, 2014 at 9:17 PM, Cliff Kachinske <[email protected]> >>> wrote: >>> >>>> The install script in the book may not be correct for your version of >>>> Web2py. >>>> >>>> A good first step might be to check the script's config settings >>>> against the ones from the book. >>>> >>>> >>>> On Wednesday, August 20, 2014 4:49:28 PM UTC-4, Jim S wrote: >>>>> >>>>> I did this and after waiting 45 minutes and re-testing, it did not >>>>> exhibit the slow behavior. Since this is a test without running >>>>> nginx/uwsgi I'm assuming my problem is in one of those layers. >>>>> >>>>> Also, I access the production site with http instead of https, the >>>>> slowness isn't there either. >>>>> >>>>> -Jim >>>>> >>>>> On Wednesday, August 20, 2014 2:26:35 PM UTC-5, Richard wrote: >>>>>> >>>>>> You can check that with profiler : python web2py.py -a 'asdf' -i >>>>>> 127.0.0.1 -p 8000 appname -F fileNameForProfilerDumpInfo' >>>>>> >>>>>> Your app will be very slow with profiler. >>>>>> >>>>>> Richard >>>>>> >>>>>> >>>>>> On Wed, Aug 20, 2014 at 3:24 PM, Richard Vézina < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Could your app take time to create global vars and after they are >>>>>>> cached up? >>>>>>> >>>>>>> Richard >>>>>>> >>>>>>> >>>>>>> On Wed, Aug 20, 2014 at 1:32 PM, Jim S <[email protected]> wrote: >>>>>>> >>>>>>>> Hi >>>>>>>> >>>>>>>> I've installed web2py on my ubuntu machine using the script at the >>>>>>>> bottom of this section in the book: >>>>>>>> >>>>>>>> http://web2py.com/books/default/chapter/29/13/ >>>>>>>> deployment-recipes#Nginx >>>>>>>> >>>>>>>> It is all working well except for one annoyance. >>>>>>>> >>>>>>>> If I leave the let the page site for a while (haven't really >>>>>>>> determined the time period needed to display the behavior), when I come >>>>>>>> back later my first access to the application is really slow, like 10 >>>>>>>> seconds to display the page. But, after that, it clicks along with >>>>>>>> sub-second response time. >>>>>>>> >>>>>>>> Anyone have any idea what is going on or where to begin >>>>>>>> trouble-shooting? >>>>>>>> >>>>>>>> -Jim >>>>>>>> >>>>>>>> -- >>>>>>>> Resources: >>>>>>>> - http://web2py.com >>>>>>>> - http://web2py.com/book (Documentation) >>>>>>>> - http://github.com/web2py/web2py (Source code) >>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>>>>>> --- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "web2py-users" group. >>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>> send an email to [email protected]. >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "web2py-users" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/web2py/3tmtJeQW9GI/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/3tmtJeQW9GI/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

