This might seem daft, but did you think of using the app_server idea
(discussed way back on the list - check the archive)

Basically in app_globals you include a file named app_server.cfm which is
global for all applications and has server specific information - manually
entered once - such as the server IP.
Once a user is logged in you can redirect them to this servers physical
address using an absolute URL, from then on that user session will stay on
that IP address when you use relative URL's.

HTH,
Noam


        ----------
        From:  Riccomi, Laura [SMTP:[EMAIL PROTECTED]]
        Sent:  Thursday, 22 February 2001 17:00
        To:  Fusebox
        Subject:  RE: OT: finding IP of current server

        Yep, it's looking like trying to work around the load balancing is
not a
        good solution. Reconfiguring is not an option because the servers
are
        hosting much much more than just this one app. I think the best way
will be
        to complete all of the processing in one request.

        Thanks for all your suggestions.


        Laura Riccomi


        -----Original Message-----
        From: Jeff Peters [mailto:[EMAIL PROTECTED]]
        Sent: Monday, February 19, 2001 4:45 PM
        To: Fusebox
        Subject: Re: OT: finding IP of current server


        As I'm sure you're probably discovering, server targeting is
normally the
        job 
        of the load balancer as opposed to the application.  Though
ClusterCats is
        not 
        an option for you, is it possible to configure your current
balancing
        solution 
        to use session-based balancing rather than request-based?  This
would leave
        the 
        session on whichever server the balancer selects at the beginning of
the 
        session.  It's not as efficient as request-based balancing, and
you'll have
        to 
        be very wary of session timeouts, but if that's what you need...

        - Jeff

        On 19 Feb 2001, at 15:50, Riccomi, Laura wrote:

        > I've noticed high brain-power activity on this list, so I'm trying
this
        > question on you guys:
        > 
        > I'm writing a set of scripts that will need to ensure that the
user
        remains
        > on the same physical server throughout a process. To do this I
would like
        to
        > find the IP of the server that the user is currently on. Is there
an
        > environment variable or similar that will tell me this? I already
tried
        > SERVER_ADDR, but our servers don't support this.
        > 
        > Load balancing was set up in our environment over a year ago, so
        installing
        > ClusterCats is not an option. I need some way to do this in the
code.
        > 
        > Thanks,
        > Laura Riccomi

        ==============================================================
        | Jeffrey S. Peters       | "Specialization is for insects." |
        | [EMAIL PROTECTED] |                 - Lazarus Long   |
        | PGP key for Jeffrey S. Peters at ldap://keyserver.pgp.com  |
        ==============================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to