Howdy folks! My users were complaining about slow performance after we re-provisioned our VM from scratch.
After doing some sleuthing using django_debug_toolbar, I found a couple of templates were taking a significant amount of time. The first was "base/_mobile_navbar.html". After some profiling of rendering the template, I found out the time is spent populating the URLResolver's internal data structure for all the regular expressions. Every time I refresh the page, I see the same template take the same amount of time, which tells me apache isn't re-using the processes between requests (or something, I'm not really a good sysadmin). I found that Django recommends deploying using mod_wsgi in daemon mode <https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/modwsgi/#using-mod-wsgi-daemon-mode>. But I also noticed our previous incarnation of the server didn't have this enabled. What settings do y'all suggest to ensure each request isn't spending lots of time rendering templates? I see y'all recommned using the single-threaded Prefork MPM, should I configure WSGI daemon to also be single-threaded? Thanks! -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "Review Board Community" 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.
