Re: Diagnosing Ask Fedora sluggishness

2013-09-08 Thread Ankur Sinha
On Sun, 2013-09-08 at 08:08 +0530, Aditya Patawari wrote:
 Hi Ankur,

Hi Aditya,

 
 From what I see, after comparing the time used to load each asset,
 there are a couple of java scripts, util.js and less.min.js, on Ask
 Fedora, which takes quite a bit to load. Could it be because of this?

I'm really not sure. I did some random checking and found a few hints,
but nothing concret:

http://tools.pingdom.com/fpt/dmLsqz/http://ask.fedoraproject.org/questions/

http://askbot.org/en/question/3172/how-to-improve-the-speed-of-askbot/

 
 Although there seems to be a varnish cache to deliver it quicker but
 somehow the load time runs in many seconds.

It probably is the JS, since it's the commenting and voting etc part
that takes time, and this seems to be JS controlled.

http://askbot.org/en/question/8514/why-does-askbot-require-javascript/

Any ideas on how we could speed this up?

Oh, and can we enable gzip compression on the ask hosts? (I don't know
how to do it yet.)
-- 
Thanks,
Warm regards,
Ankur (FranciscoD)

http://fedoraproject.org/wiki/User:Ankursinha

Join Fedora! Come talk to us!
http://fedoraproject.org/wiki/Fedora_Join_SIG



signature.asc
Description: This is a digitally signed message part
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: Diagnosing Ask Fedora sluggishness

2013-09-08 Thread Anshu Prateek
The generic yslow grades suggest couple of improvements:

Grade F on Add Expires headers

There are 55 static components without a far-future expiration date.
Grade F on Configure entity tags (ETags) There are 27 components with
misconfigured ETags

Grade E on Use cookie-free domainsThere are 9 components that are not
cookie-free

And some more.

All of these for https://ask.fedoraproject.org/questions/

Also, I was about to send a similar mail about site being slow for the
badges. Are these two sharing the hosts?


On Sun, Sep 8, 2013 at 2:09 PM, Anshu Prateek anshp...@gmail.com wrote:

 Oh, and can we enable gzip compression on the ask hosts? (I don't know
 how to do it yet.)

 Its in the apache config file.

 http://httpd.apache.org/docs/2.2/mod/mod_deflate.html#enable


 On Sun, Sep 8, 2013 at 1:58 PM, Ankur Sinha sanjay.an...@gmail.comwrote:

 On Sun, 2013-09-08 at 08:08 +0530, Aditya Patawari wrote:
  Hi Ankur,

 Hi Aditya,

 
  From what I see, after comparing the time used to load each asset,
  there are a couple of java scripts, util.js and less.min.js, on Ask
  Fedora, which takes quite a bit to load. Could it be because of this?

 I'm really not sure. I did some random checking and found a few hints,
 but nothing concret:


 http://tools.pingdom.com/fpt/dmLsqz/http://ask.fedoraproject.org/questions/

 http://askbot.org/en/question/3172/how-to-improve-the-speed-of-askbot/

 
  Although there seems to be a varnish cache to deliver it quicker but
  somehow the load time runs in many seconds.

 It probably is the JS, since it's the commenting and voting etc part
 that takes time, and this seems to be JS controlled.

 http://askbot.org/en/question/8514/why-does-askbot-require-javascript/

 Any ideas on how we could speed this up?

 Oh, and can we enable gzip compression on the ask hosts? (I don't know
 how to do it yet.)
 --
 Thanks,
 Warm regards,
 Ankur (FranciscoD)

 http://fedoraproject.org/wiki/User:Ankursinha

 Join Fedora! Come talk to us!
 http://fedoraproject.org/wiki/Fedora_Join_SIG


 ___
 infrastructure mailing list
 infrastructure@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/infrastructure



___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: Diagnosing Ask Fedora sluggishness

2013-09-08 Thread Kevin Fenzi
On Sun, 8 Sep 2013 14:19:20 +0530
Anshu Prateek anshp...@gmail.com wrote:

 The generic yslow grades suggest couple of improvements:
 
 Grade F on Add Expires headers
 
 There are 55 static components without a far-future expiration date.
 Grade F on Configure entity tags (ETags) There are 27 components with
 misconfigured ETags
 
 Grade E on Use cookie-free domainsThere are 9 components that are not
 cookie-free
 
 And some more.
 
 All of these for https://ask.fedoraproject.org/questions/

Yeah, askbot is using our haproxy/varnish setup as well as memcached, so
if upstream can tweak things to be more caching friendly that would help
for sure. 

  Oh, and can we enable gzip compression on the ask hosts? (I don't
  know
  how to do it yet.)
 
  Its in the apache config file.
 
  http://httpd.apache.org/docs/2.2/mod/mod_deflate.html#enable

Actually in this case you might want to look at the django level one?
modules/askbot/templates/settings.erb:

MIDDLEWARE_CLASSES = (
#'django.middleware.gzip.GZipMiddleware',

There may also be some other caching stuff there we should or shouldn't
enable... not sure anyone has fully investigated all those. 

kevin


signature.asc
Description: PGP signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Diagnosing Ask Fedora sluggishness

2013-09-07 Thread Ankur Sinha
Hi,

Ask Fedora is still much slower than other askbot instances that I've
used. Try askbot.org/en/questions, for example: comments are posted as
soon as the user clicks.  On Ask Fedora, there's quite a lag for posting
comments/answers. 

We shifted to django-postoffice to somewhat decouple the main
application from the mail sending, but I'm not sure if this made a
difference really.

The askbot log only has errors about icons:
http://fpaste.org/37879/60667413/

I see quite a few errors in the httpd/error_log but I'm not sure if
they're responsible for the sluggishness either.

I'm not sure where else I should look. Would someone have hints on how
to go about diagnosing this?
-- 
Thanks,
Warm regards,
Ankur (FranciscoD)

http://fedoraproject.org/wiki/User:Ankursinha

Join Fedora! Come talk to us!
http://fedoraproject.org/wiki/Fedora_Join_SIG



signature.asc
Description: This is a digitally signed message part
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: Diagnosing Ask Fedora sluggishness

2013-09-07 Thread Aditya Patawari
Hi Ankur,

From what I see, after comparing the time used to load each asset,
there are a couple of java scripts, util.js and less.min.js, on Ask
Fedora, which takes quite a bit to load. Could it be because of this?

Although there seems to be a varnish cache to deliver it quicker but
somehow the load time runs in many seconds.
Aditya Patawari
http://blog.adityapatawari.com/
https://fedoraproject.org/wiki/User:Adimania
India


On Sun, Sep 8, 2013 at 7:52 AM, Ankur Sinha sanjay.an...@gmail.com wrote:
 Hi,

 Ask Fedora is still much slower than other askbot instances that I've
 used. Try askbot.org/en/questions, for example: comments are posted as
 soon as the user clicks.  On Ask Fedora, there's quite a lag for posting
 comments/answers.

 We shifted to django-postoffice to somewhat decouple the main
 application from the mail sending, but I'm not sure if this made a
 difference really.

 The askbot log only has errors about icons:
 http://fpaste.org/37879/60667413/

 I see quite a few errors in the httpd/error_log but I'm not sure if
 they're responsible for the sluggishness either.

 I'm not sure where else I should look. Would someone have hints on how
 to go about diagnosing this?
 --
 Thanks,
 Warm regards,
 Ankur (FranciscoD)

 http://fedoraproject.org/wiki/User:Ankursinha

 Join Fedora! Come talk to us!
 http://fedoraproject.org/wiki/Fedora_Join_SIG


 ___
 infrastructure mailing list
 infrastructure@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/infrastructure
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure