[Asterisk-Users] (Semi-OT) QoS Question FTP Living with Asterisk

Assaf Flatto assaf at atelis.net
Sun Apr 30 05:56:35 MST 2006


Steve

 From what i read here and from what others have suggested i can only 
surmise that you tried almost everything besides the simplest thing .

out of the box CentOs installs proftpd (AFAIK ) , this ftp engine has a 
simple too called mod_shaper
which allows as you can assume shape traffic rates .

example of the  configuration is :
<IfModule mod_shaper.c>
    ShaperEngine on
    ShaperLog /var/log/ftpd/shaper.log
    ShaperTable /var/log/ftpd/shaper.tab
    # Enableing FXP
    AllowForeignAddress     on

    # An overall rate (in KB/s) must be set.  This line explicitly
    # sets both the download and upload rates to be the same.
***    ShaperAll downrate 100 uprate 100

This is the line to manipulate

    # Allow all system users to see shaper info
    #ShaperControlsACLs info allow user *

    # Allow FTP admins to alter settings both overall and per-session
    ShaperControlsACLs all,sess allow group ftpadm


  </IfModule>

you'll need to see if the module was installed in the initial 
installation , and if not - download it and compile it .


Assaf

Steve Totaro wrote:
> I have searched google and came up with too many options and packages 
> that may or may not work for my needs, most articles seem to be for 
> setting up routers.  Maybe someone on the list can give me some better 
> insight.
>
> I have monitoring turned on my "shift eight (tm)" (Asterisk ;-)) box 
> for all calls.  We have over one hundred agents and tons of recordings 
> in wav format.  I also have a cron job that runs a script to mux the 
> in and out files and ftp them to a NAS device and it runs every five 
> minutes.
> The NAS device and the * box are both directly connected to a Cisco 
> Gigabit switch.  I have had complaints of calls fading in and out and 
> also cutting off.  After reviewing the recordings, some of these 
> complaints seem valid and I suspect the sheer bandwidth of the FTP 
> traffic is causing the issues.  I also run nagios checks on the box 
> and get ping warnings on a regular basis.
> My question is, how can I throttle the FTP (Standard with dist) 
> transfers using out of the box CentOS4.3 (or any easy to use, low 
> learning curve package)?  I thought about FTPing the files at less 
> frequent intervals but that just makes the issue less frequent but 
> last longer.
> I would like to accomplish throttling FTP on the Linux box with a 
> solution that is not too elegant since this is a production machine in 
> a busy call center.  If I cannot do it on the * box I guess my next 
> step is to see if the Cisco Gigabit switch has any QoS functionality.
> Thanks,
> Steve
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Assaf Flatto
Atelis IT Manager
Cellular: +972-54-5679230
e-mail: assaf at atelis.net




More information about the asterisk-users mailing list