Forum Discussion
Darren_Person_2
Nimbostratus
Nov 07, 2006CDN Integration / Failover in an iRule?
Hi All,
I'm interested in learning if this is possible with iRules. As a high trafficked site, we can never account for spikes with our existing infrastructure. I'd like to know if it's possible to create an iRule which will monitor CPU levels and then automatically engage a CDN when the threshold has been reached (80%).
For example:
we have static.domain.com with a CDN CNAME to cdn.static.domain.com
All requests for static content should go to our domain (static.domain.com) as long as our servers can handle the load. Once our CPU utilization hits 80%, we'd like the failover pool to be the cdn.static.domain.com url (the uri would be appended, but the domain would be different)
Any thoughts on how this can be achieved?
Thanks in advance - you guys have been terrific with responses and I greatly appreciate it! I think an answer to this question will provide all your customers with a great ability to truly provide unlimited scale if they are willing to engage a cache or CDN.
- JRahm
Admin
This can be accomplished without iRules with the snmp_dca monitor and defining your fallback host as your CDN. Take a look at the handy dandy configuration manual on ask.f5.com. - sc2397_128053
Nimbostratus
While not exactly the same, I have a related question: - Colin_Walker_12Historic F5 AccountCurrently the only way to do this would be to log a statement via the iRule and have syslog perform some action upon seeing that statement in the logs.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects