Re: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- From: scoles@xxxxxxxxxxx (John Scoles)
- Date: Mon, 20 Nov 2006 11:46:52 -0500
I will second the memcache suggestion. (his other solutes age good as
well).
It is quick and easy to use with a good perl interface that will take
quite the load of the DB especially if you have alot of static data.
A very quick and easy solution.
here is the link to memcache
http://www.danga.com/memcached/
""Garrett, Philip (MAN-Corporate)"" <Philip.Garrett@xxxxxxxxxxx> wrote in
message news:D9C13100F14E4C4795A1E83B125B40350232B7BD@xxxxxxxxxxxxxxxxxxxx
It sounds to me like you have a good case for using some type of
pooling.
Here are a few options off the top of my head:
1) Pooling via SQLRelay
2) Pooling via MTS
3) Use fewer mod_perl processes by putting a lightweight
reverse proxy in front of them. This doesn't pool
connections, just reduces the number of connections required.
See Stas Bekman's overview at http://tinyurl.com/y5k8ka
(perl.apache.org) if you haven't already.
You might also want to consider aggressive caching (memcached perhaps?)
to take some load off of your database server.
Regards,
Philip
-----Original Message-----
From: Chris [mailto:dispo41@xxxxxxxxxxx]
Sent: Friday, November 17, 2006 9:02 PM
To: dbi-users@xxxxxxxx
Subject: Re: How should I connect via DBD::Oracle to efficiently obtain
2000+ simultaneous connections?
Doing some digging around, I discover that each Oracle connection
consumes
4megs of RAM when "doing nothing".
that would add up to 8gigs for 2000 connections... and since I've only
got
8gigs in total, this is about 4 times more than I can spare.
It would seem that I will definitely need some kind of connection
pooling -
does anyone disagree ?
# pmap -d 13040 | tail -1
mapped: 810872K writeable/private: 3392K shared: 722944K
.
- References:
- Prev by Date: Re: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- Next by Date: Re: DBD Oracle module
- Previous by thread: RE: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?
- Next by thread: Fw: Problem trying to build and deploy DBD-Oracle 1.19
- Index(es):
Relevant Pages
|