Forum Discussion
Alscion_68122
Nimbostratus
Apr 25, 2012Error synchronizing configuration
Hi all,
I have a management server driving some of my BigIPs clusters with iControl (& Java). Periodically the management server use System::urn:iControl:System/ConfigSync::s
ynchroniz...
Sorry, I forgot about that part. Can you try this?
Based on the example on the HTTP::request wiki page:
http://devcentral.f5.com/wiki/default.aspx/iRules/http__retry.html
when CLIENT_ACCEPTED {
Initialize a variable to track whether a request has been retried
set retries 0
}
when HTTP_REQUEST {
Use pool A by default
pool pool_A
Check if this is a retried request
if { $retries == 0 }{
Check if request is a GET (we only save the request headers using HTTP::request)
if {[HTTP::method] eq "GET"}{
Save the request headers
set request_headers [HTTP::request]
log local0. "HTTP request headers: $request_headers"
}
} else {
This is a retry, so check if the path ends with a slash
if { [HTTP::path] ends_with "/" }{
Remove the last slash and append .html to the path
HTTP::path "[string range [HTTP::path] 0 end-1].html"
}
}
}
when LB_SELECTED {
if { $retries >= 1 }{
LB::reselect pool pool_b
}
}
when HTTP_RESPONSE {
if { [HTTP::status] == 404 }{
incr retries
log local0. "4xx error caught: retry $retries out of [active_members [LB::server pool]]"
if { $retries < [active_members [LB::server pool]] }{
HTTP::retry $request_headers
}
} else {
Successful response, reset the retries variable
set retries 0
}
}
Aaron
- marker_58064Aug 04, 2010
Nimbostratus
Jason, - I assume you'd need to configure the GSS to check for a specific string in the response--not just that a TCP connection is completed. With the iRule you could send a reset in CLIENT_ACCEPTED if [active_members [LB::server pool]] == 0. The GSS health check should then fail when the VS's pool is down.
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