Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
apache + mod_cband - config dont works
Old 07-08-2009, 07:58 AM apache + mod_cband - config dont works
Junior Talker

Posts: 3
Name: Ivan
Trades: 0
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:



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 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-08-2009, 10:38 AM Re: apache + mod_cband - config dont works
Junior Talker

Posts: 3
Name: Ivan
Trades: 0
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 is offline
Reply With Quote
View Public Profile
 
Old 07-08-2009, 10:49 AM Re: apache + mod_cband - config dont works
Junior Talker

Posts: 3
Name: Ivan
Trades: 0
.....
Moskovitter is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to apache + mod_cband - config dont works
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21109 seconds with 12 queries