Find the answer to your Linux question:
Results 1 to 4 of 4
Hello. I have made some crude load balancing with Apache 2.1.3 With this fine new feature Proxy balancer. Anyway. I got an errormessage to error log: [error] proxy: AJP: canonicalising ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    4

    Apache load balancing


    Hello.

    I have made some crude load balancing with Apache 2.1.3

    With this fine new feature Proxy balancer.

    Anyway. I got an errormessage to error log:
    [error] proxy: AJP: canonicalising URL balancer://balancername/

    This doesn't really affect for the server, but the errorlogs are getting huge, because I am trying to stress test the pages served...

    So maybe the error is somewhere in conf-file. The balancer part is following:
    <Proxy balancer://balancername>
    BalancerMember http://192.168.0.100
    BalancerMember http://192.168.0.200
    </Proxy>
    <Location /test>
    ProxyPass balancer://balancername
    </Location>

    Also I would like to know, how I could do the balancing to the html root directory.

    Elvis
    /newbie for a loooong time/

  2. #2
    Just Joined!
    Join Date
    May 2005
    Posts
    4
    Oh and I forget.

    Does anyone know any other tools for stress tests (preferably graphical (Fedora distro)) than ab?

    And all hints are welcome anyway.

    (tomorrow I'll start installing Linux IP Virtual Server)

  3. #3
    Just Joined!
    Join Date
    May 2005
    Location
    Ontario, Canada - Eh!
    Posts
    17
    The only things I could think of is changing how strict your error log is.
    Instead of it writing to the log when there's errors, change it so that only critical errors are written. Or this line that I noticed in the httpd.conf file - might be useful.
    #
    # UseCanonicalName: Determines how Apache constructs self-referencing
    # URLs and the SERVER_NAME and SERVER_PORT variables.
    # When set "Off", Apache will use the Hostname and Port supplied
    # by the client. When set "On", Apache will use the value of the
    # ServerName directive.
    #
    UseCanonicalName Off

    #
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    #
    LogLevel error --> could change to 'crit'


    I pulled these lines out of my httpd.conf for Apache2

    Hope it helps

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    May 2005
    Posts
    4
    Jep. Ok. Errorlog is ok. Thank you.

    Now the next question is. Keepalive.

    I have set keepalive on all of my 3 servers. If I run ab directly to one of the servers, I can have the keepalive requests as they should be. But if I run tests for the balancer itself, it doesn't create any keepalive requests. Is this because ip rewriting (or whatever we call this balancing itself)?

    Is there any way, how I can test this keepalive requests with balanced system? I don't want to create difficult php pages or database connections. This is a shame, and I would want to do those tests too, but I run out of time way too soon.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •