Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Round robin, select syscall and performance: msg#00033

db.carob.general

Subject: Re: Round robin, select syscall and performance

Bruno,
I just commited the code for your issue about round robin.
If you want to try, please send us feed-back

Warning: connection parameters constructor has changed a bit (passing vector of controllers instead of 1 controller + add(), removed retryDelay)

Thanks,
Gilles.

Bruno Corsi dos Santos a écrit :
Hi,

I'm using the libcarob in a server application and I
have three doubts about it.
The first doubt is about round robin connection policy
that seems it is the default policy. In my
application, I build a poll of connections and
basically the use is: I get one connection from the
poll, use it and return it to the poll. It is
necessary because it would be too expansive create a
new connection on each time I need use one. I think
that when it comes round robin policy, each connection
that I would create should point to a different
controler, e.g., if I create 10 connection (from a
ConnectionParameters object) and I'm using 2
controllers, I think I would have 5 connections to the
first controller and 5 connections to the second
controller. The connections 1, 3, 5, 7 and 9 should be
to the first controler and the connections 2, 4, 6, 8
and 10 should be to the second controller, I mean, the
"round robin concept". But I noticed that all
connections I created were to the first controller,
and the second controller was used just when I "stop"
the first controler, so, in normal conditions, the
second controller woundn't be used.

/* Create the object with only one controler */
connectionParameters = new
CarobNS::ConnectionParameters(dbfirstip, dbfirstport,
dbname, dbuser, dbpass);
/* Add a second controler */
connectionParameters->addController(dbsecondip,
dbsecondport);

/* But all connections go to the first controller...
*/

Other doubt is about the use of select syscall to wait
for data at the sockets. I know that select syscall
fails when the number of file descriptors in the
process application exceeds 1024. I didn't checked it
yet in carob, but I've already this problem with other
libraries. So, I think we would make available a
compilation using epoll syscall instead of select
syscall to avoid this problem.

The last doubt is about sequoia performance. I've been
having problems with performance at the sequoia. When
I use just one controler and without replication the
sequoia works well but if I enable replication or use
two controllers the sequoia gets slow and I doesn't
stand the throughput I need. Is there room and
perspectives to improve it?

Thanks in advance,
Bruno




_______________________________________________________ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/

_______________________________________________
Carob mailing list
Carob-RyYwo1q5J+pm4DMUGMHt/jIQnlzKTOB+HZ5vskTnxNA@xxxxxxxxxxxxxxxx
https://forge.continuent.org/mailman/listinfo/carob



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation