Forum Discussion

veeranna_ganige's avatar
veeranna_ganige
Icon for Nimbostratus rankNimbostratus
Nov 12, 2007

Scheduling the virtual server

hi

 

 

I am looking for Scheduling the Virtual server for specific time for a specific destination (ftp server on the internet)

 

 

Product Link Controller.

 

 

customer has bustable bandwith up to 20 mbps, but customer wants to make use of the bustable bandwith only from 4pm to 6pm for a specific ftp site.(single server on the internet)

 

 

In the reqular hrs they want to use the 2mbps only.

 

 

I understand we need to use the shell script for the same, kindly let me know if any of them has the solution for the same

 

 

reg/Veeranna

2 Replies

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Hi Veeranna -

    Sounds like you want to limit outbound traffic traversing a forwarding virtual server.

    I think you actually can use rate classes and an iRule to accomplish this goal.

    First create 2 rate classes. For the 2Mbps rate class, set the ceiling to 2Mbps, and for the 20Mbps rate class, set the ceiling to 20Mbps. Configure the rest of the settings as makes sense for your bigger picture - here's the LC man page for configuring rate shaping:

    Click here

    Then create an iRule to check the destination & time and apply the appropriate rate class to connections through the virtual.

    
    when CLIENT_ACCEPTED {
      rateclass 2Mbps
      if { [IP::local_addr] == 192.168.1.222 } {
        set current_time [clock seconds]
        set time_min [clock scan {16:00}]
        set time_max [clock scan {18:00}]
        if {($current_time > $time_min) and ($current_time < $time_max)} {
          rateclass 20Mbps
        }
      }
    }

    Post back if that isn't what you were looking for.

    /deb