Forum Discussion
Tore_Anderson_9
Nimbostratus
Nov 27, 2012Multiple cases of ISTATS weirdness
I'm having some problem with ISTATS on a LTM 8900 running version 11.2.0. Perhaps anyone here could help me out shed a light on what is the reason for these cases of weird behaviour.
1) The counter...
Tore_Anderson_9
Nimbostratus
Nov 27, 2012For what it's worth, here's my current debugging iRule. To reproduce issue 5, do first one call to /incr, then perform repeated calls to /get. The reported counter value will oscillate between 0 and 1, until finally settling on the value 1.
Next, to reproduce 5, do one call to /set42. Assuming the value of the counter was 1 to begin with, you'll see the counter increase by 42 and report the value 43, rather than being set to exactly 42. Also you can try a call to /reset and see that it has no effect whatsoever.
when HTTP_REQUEST {
switch [HTTP::uri] {
"/get" {
HTTP::respond 200 content "counter is now: [ISTATS::get "x y counter z"]
the gauge is: [ISTATS::get "x y gauge z"]
"
}
"/incr" {
ISTATS::incr "x y counter z" 1
HTTP::respond 200 content "counter increased by 1, current value: [ISTATS::get "x y counter z"]
"
}
"/reset" {
ISTATS::set "x y counter z" 0
HTTP::respond 200 content "counter set to 0, current value: [ISTATS::get "x y counter z"]
"
}
"/set42" {
ISTATS::set "x y counter z" 42
HTTP::respond 200 content "counter set to 42, current value: [ISTATS::get "x y counter z"]
"
}
}
} Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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