Forum Discussion
Time based iRule to take off one node offline
Hello,
Try this:
when HTTP_REQUEST {
set start_date "02:00"
set end_date "04:00"
set server "1.2.3.4"
set port "443"
set start [clock scan $start_date]
set static::end [clock scan $end_date]
set now [clock seconds]
if {$now > $start and $now < $end}{
LB::down pool SOMEPOOL member $server $port
}
}
Additionnal information you can use Stanislas Irule for determine time, day, ...:
https://devcentral.f5.com/questions/irule-to-block-access-of-vs-on-specific-days
Most important is this command "LB::down pool poolname member address port"
https://devcentral.f5.com/Wiki/Default.aspx?Page=LB__down&NS=iRules
For information LB::down allow you to prevent that your request will be send to specific pool member for eache request done. And when your maitenance periode will be finished, health of this poolmember will be up on the next health check...
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
