From: Michael Mol <mikemol@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] {OT} LWP::UserAgent slows website
Date: Sat, 09 Feb 2013 08:51:14 -0500 [thread overview]
Message-ID: <51165452.10600@gmail.com> (raw)
In-Reply-To: <CAC=wYCFOOqSsRKLWAbAtfSh+g5kxK1sGC34SEBNQo6tYyJ_osg@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/09/2013 05:36 AM, Adam Carter wrote:
>
> There are several things you can do to improve the state of
> things. The first and foremost is to add caching in front of the
> server, using an accelerator proxy. (i.e. squid running in
> accelerator mode.) In this way, you have a program which receives
> the user's request, checks to see if it's a request that it already
> has a response for, checks whether that response is still valid,
> and then checks to see whether or not it's permitted to respond on
> the server's behalf...almost entirely without bothering the main
> web server. This process is far, far, far faster than having the
> request hit the serving application's main code.
>
>
>
> I was under the impression that Apache coded sensibly enough to
> handle incoming requests as least as well as Squid would. Agree
> with everything else tho.
Sure, so long as Apache doesn't have any additional modules loaded. If
it's got something like mod_php loaded (extraordinarily common),
mod_perl or mod_python (less common, now) then the init time of
mod_php gets added to the init time for every request handler.
> OP should look into what's required on the back end to process
> those 6 requests, as it superficially appears that a very small
> number of requests is generating a huge amount of work, and that
> means the site would be easy to DoS.
Absolutely, hence the steps I outlined to reduce or optimize backend
processing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJRFlRSAAoJED5TcEBdxYwQ7BwH/Aj3hgQgGjzBoQhlZqPKDzEW
pZJJVcVf4CF4sk88el8X/hPMfx2cTpuM53tLDsv3KGR1dwjP48O2oiiTubH/HRxI
lNR5I22QK2YEbLzeRTZN+pkpGnyA1W+d3kF7F9aiNXVUV8KyuyxSxx+7Xm1tRW/W
xcNhSLTQIpyTAx+R9MGNkJFs0gFGFgIMML4bfi5BpIrbeeVWsoe1C0syFF+HIFWP
WZRtsCFhdWrZkvKUYIBkoFq9VKkSTt13eIvrPjxFUVJwFSmntxSgfqiaZxfHXp5A
oSLtyz0vR6qByoivkuilNK7sI3fK8fHA0q4XF1AUaOuwcHg9AFG9pCFBUF2KOgk=
=R/kD
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2013-02-09 13:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-07 1:13 [gentoo-user] {OT} LWP::UserAgent slows website Grant
2013-02-07 16:45 ` Kevin Brandstatter
2013-02-08 22:10 ` Grant
2013-02-09 0:47 ` Michael Mol
2013-02-09 2:39 ` Grant
2013-02-09 2:58 ` Michael Mol
2013-02-09 10:36 ` Adam Carter
2013-02-09 13:51 ` Michael Mol [this message]
2013-02-10 2:24 ` Adam Carter
2013-02-10 2:36 ` Michael Mol
2013-02-10 2:49 ` Adam Carter
2013-02-10 5:05 ` Grant
2013-02-11 1:53 ` Stroller
2013-02-11 17:45 ` Michael Mol
2013-02-11 17:43 ` Michael Mol
2013-02-11 19:57 ` Alan McKinnon
2013-02-16 19:55 ` Grant
2013-02-11 23:07 ` Stroller
2013-02-12 0:04 ` Michael Mol
2013-02-12 0:26 ` Peter Humphrey
2013-02-12 1:05 ` Stroller
2013-02-12 1:19 ` Michael Mol
2013-02-12 1:39 ` Stroller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51165452.10600@gmail.com \
--to=mikemol@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox