yieldproject/playa — Issue #53: Token bucket scheduler
Author: minorg
Created: 2012-02-29 15:04:41+00:00
State: open

21:00 < minorg> hmm, yeah, token bucket could work
21:00 < minorg> still not sure how to express it
21:00 < minorg> declaratively
21:00 < minorg> ideally as a set of simple data structures
21:00 < minorg> maybe have a tick
21:01 < minorg> keep timestamp of the last agent poll
21:01 < minorg> if it exceeds 60, then include apache
21:01 < minorg> if it exceeds 20, include procfs
21:02 < minorg> e.g. threshold between polls that will trigger checks matching a URL pattern
21:02 < minorg> could work
21:02 < minorg> that way the sleep can be set to the lowest threshold
21:02 < minorg> voila
21:03 < minorg> ah, no
21:03 < minorg> you need timestamp between polls of each pattern/scheme
21:03 < minorg> e.g. timestamp since last procfs, timestamp since last apache, etc.