Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Rugby: Number of Connections

 [1/7] from: mattsmac::hotmail::com at: 17-Nov-2003 9:48


I'm trying to get the number of connections on a rugby server. Looking at the source code, I should be able to do something like this: num-conn: length? rugby-server/port-q but this only ever returns 2. after probing port-q I find that the first object in it is a blank connection and the second is the last connection made. So it looks like port-q does not hold all of the ports on the server, just the last one. Any idea how to find the number of total connections? Matt _________________________________________________________________ MSN Messenger with backgrounds, emoticons and more. http://www.msnmessenger-download.com/tracking/cdp_customize

 [2/7] from: maarten:vrijheid at: 17-Nov-2003 16:22


Your doing the right thing, but.... Rugby exectues the message once it has arrived completely, returning the result and cleaning up immediately. There is always one thing happening at one time. You're probably looking at efficient networking (and buffering in REBOL), especially with small message sizes, whih Rugby typicall has. The first connection you see (the blank one) is the server port. --Maarten

 [3/7] from: mattsmac:h:otmail at: 17-Nov-2003 10:25


Not sure if it matters or not, but I am using secure connections
>From: "Matt MacDonald" <[mattsmac--hotmail--com]> >Reply-To: [rebol-list--rebol--com]
<<quoted lines omitted: 16>>
>To unsubscribe from this list, just send an email to >[rebol-request--rebol--com] with unsubscribe as the subject.
_________________________________________________________________ Concerned that messages may bounce because your Hotmail account is over limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGE=features/es

 [4/7] from: mattsmac:hot:mail at: 17-Nov-2003 10:32


What I'm trying to do is have more than 1 server running at one time and allow the client to connect to the least loaded one. Is this not neccesary with Rugby? Matt ------------------------------------------------- Your doing the right thing, but.... Rugby exectues the message once it has arrived completely, returning the result and cleaning up immediately. There is always one thing happening at one time. You're probably looking at efficient networking (and buffering in REBOL), especially with small message sizes, whih Rugby typicall has. The first connection you see (the blank one) is the server port. --Maarten
>-----Original Message----- >From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]] On Behalf
Of
>Matt MacDonald >Sent: maandag 17 november 2003 15:48 >To: [rebol-list--rebol--com] >Subject: [REBOL] Rugby: Number of Connections > >I'm trying to get the number of connections on a rugby server.
Looking at
>the source code, I should be able to do something like this: > >num-conn: length? rugby-server/port-q > >but this only ever returns 2. after probing port-q I find that the
first
>object in it is a blank connection and the second is the last
connection
>made. So it looks like port-q does not hold all of the ports on the >server, >just the last one. Any idea how to find the number of total
connections?
>Matt
_________________________________________________________________ MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com

 [5/7] from: mattsmac:hotmai:l at: 17-Nov-2003 10:44


Allow me to elaborate, Because Rugby only does 1 thing at a time, I want to have multiple servers so that then they could do multiple things at a time. The system I am developing has the potentional to have several hundred users, so processing each connection 1 at a time is not really an option. Matt
>From: "Matt MacDonald" <[mattsmac--hotmail--com]> >Reply-To: [rebol-list--rebol--com]
<<quoted lines omitted: 44>>
>To unsubscribe from this list, just send an email to >[rebol-request--rebol--com] with unsubscribe as the subject.
_________________________________________________________________ MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com

 [6/7] from: maarten:vrijheid at: 17-Nov-2003 17:02


Under extreme load, yes. But I have seen Rugby handle 300 req/sec with a simple string echo between two 1 Ghz PCs. Realize that your application code is blocking, so if that does only simple (=fast) REBOL logic, you won't have problems. But if you use it as a gateway to e.g. an ODBC database it may be a different story depending on the speed of your database (but why would you tunnel ODBC via Rugby?). Of course you might use another metric like timing the execution time of each request, logging that to a dispatch server that balances based on that. So, generally speaking, if you application logic isn't the bottleneck, Rugby won't be it either ;-) --Maarten

 [7/7] from: mattsmac:ho:tmail at: 17-Nov-2003 11:17


Actually, I am using it for ODBC (SQL-Server Access) among other things. Why is this a bad idea and what are my alternatives while still using Rugby? ------------------------------- Under extreme load, yes. But I have seen Rugby handle 300 req/sec with a simple string echo between two 1 Ghz PCs. Realize that your application code is blocking, so if that does only simple (=fast) REBOL logic, you won't have problems. But if you use it as a gateway to e.g. an ODBC database it may be a different story depending on the speed of your database (but why would you tunnel ODBC via Rugby?). Of course you might use another metric like timing the execution time of each request, logging that to a dispatch server that balances based on that. So, generally speaking, if you application logic isn't the bottleneck, Rugby won't be it either ;-) --Maarten
>-----Original Message----- > >What I'm trying to do is have more than 1 server running at one time
and
>allow the client to connect to the least loaded one. Is this not >neccesary >with Rugby? >Matt
_________________________________________________________________ Frustrated with dial-up? Get high-speed for as low as $26.95.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted