apache + mod_cband - config dont works

Discussion in 'Apache' started by Moskovitter, Jul 7, 2009.

  1. #1
    Hi
    Current VH config:

    <VirtualHost 1.2.3.4:80>
    ServerName domain.info
    ServerAlias www.domain.info
    DocumentRoot /home/doodle/domain_info/public_html

    <Directory /home/doodle/domain_info/public_html>
    AllowOverride All
    Allow from all
    </Directory>
    #limit MEMORY for children 10M and max
    RlimitMem 10485760 10485760
    #limit CPU for children 30S max 60S
    RlimitCPU 30 60
    <IfModule mod_cband.c>
    CBandSpeed 4096 10 10
    CBandRemoteSpeed 2048 5 5
    </IfModule>

    CustomLog /var/log/httpd/domain_info-access.log combined
    ErrorLog /var/log/httpd/domain_info-error.log
    ErrorDocument 404 /mis.htm

    <Location /cband-stz>
    SetHandler cband-status
    </Location>
    </VirtualHost>

    When I reload httpd, I have next errors in error.log

    [Tue Jul 07 19:02:41 2009] [warn] Duplicate command 'CBandSpeed' for domain.info:1
    [Tue Jul 07 19:02:41 2009] [warn] Duplicate command 'CBandRemoteSpeed' for domain.info:1

    But I have no CBand strings in any config exept this one!

    Moreover, if I remove
    CBandSpeed 4096 10 10
    CBandRemoteSpeed 2048 5 5
    from VH config, on status page I see that there are no any CBand limits for this VH.

    But if I put
    CBandSpeed 4096 10 10
    CBandRemoteSpeed 2048 5 5
    in VH config, I see very strange on status page:

    [​IMG]

    I can't understand where cband found 10240 as speed limit if I have 4096/2048 and why they have no any connection/rps limits if I have these in my config!

    I can't find no any CBand directives in any configs on my server...
    Looks stupid.

    Could somebody help with this?

    Thanks a lot
     
    Moskovitter, Jul 7, 2009 IP
  2. Moskovitter

    Moskovitter Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    server-info page:


    Module Name: mod_cband.c
    Content handlers: yes
    Configuration Phase Participation: Create Server Config
    Request Phase Participation: Content Handlers
    Module Directives:
    CBandDefaultExceededURL - CBandDefaultExceededURL - The URL to redirect when bandwidth is exceeded.
    CBandDefaultExceededCode - CBandDefaultExceededCode - The http code sent to user when the limit is exceeded
    CBandRandomPulse - CBandRandomPulse - Sets random pulse for FBS algorithm.
    CBandScoreFlushPeriod - CBandScoreFlushPeriod
    CBandLimit - CBandLimit - The limit bandwidth in KB for virtualhost.
    CBandPeriod - CBandPeriod - The time after the scoreboard will be cleared
    CBandPeriodSlice - CBandPeriodSlice - Specifies number of bandwidth slices
    CBandExceededURL - CBandExceededURL - The URL to redirect when virtualhost's bandwidth is exceeded.
    CBandSpeed - CBandSpeed - Maximal speed for virtualhost.
    CBandRemoteSpeed - CBandRemoteSpeed - Maximal speed for remote clients.
    CBandClassRemoteSpeed - CBandClassRemoteSpeed - Maximal speed for remote class.
    CBandExceededSpeed - CBandExceededSpeed - Over limit speed for virtualhost.
    CBandScoreboard - CBandScoreboard - The path to the virtualhost's scoreboard file.
    CBandUser - CBandUser - virtualhost user owner.
    <CBandUser> - CBandUser section
    CBandUserLimit - CBandUserLimit - The limit bandwidth in KB for user.
    CBandUserPeriod - CBandUserPeriod - The time after the scoreboard will be cleared
    CBandUserPeriodSlice - CBandPeriodSlice - Specifies number of bandwidth slices
    CBandUserExceededURL - CBandUserExceededURL - The URL to redirect when user's bandwidth is exceeded.
    CBandUserSpeed - CBandUserSpeed - Maximal speed for user.
    CBandUserRemoteSpeed - CBandUserRemoteSpeed - Maximal remote speed for user.
    CBandUserExceededSpeed - CBandUserExceededSpeed - Over limit speed for user.
    CBandUserScoreboard - CBandUserScoreboard - The path to the user's scoreboard file.
    <CBandClass> - CBandClass section
    CBandClassDst - CBandClassDst
    CBandClassLimit -
    CBandUserClassLimit -
    Current Configuration:
    In file: /etc/httpd/conf.d/xxx.info.conf
    1: <VirtualHost 1.2.3.4:80>
    17: CBandSpeed 4096 10 10
    18: CBandRemoteSpeed 2048 5 5
    : </VirtualHost>

    That's all... WHERE 10240???
     
    Moskovitter, Jul 8, 2009 IP