Population-wide queries
Contains queries and metrics that apply across an entire population.
Population-wide queries Contains queries and metrics that apply across an entire population.
(avg-resource-per-node)The average number of resources per node
The average number of resources per node
(backoff-on-failure f backoff-ms)Make a wrapper for f to help with backoff. When everything is working, the
wrapper just calls through to f. If f throws an exception, subsequent
invocations of the wrapper will just return nil until backoff-ms have
elapsed.
Make a wrapper for f to help with backoff. When everything is working, the wrapper just calls through to `f`. If `f` throws an exception, subsequent invocations of the wrapper will just return `nil` until `backoff-ms` have elapsed.
(call-with-metrics-db-connection db-spec f)Call f with an open connection to db-spec bound to jdbc/*db*. Unlike
the regular db connection helpers, this version goes through
backoff-on-failure to avoid long timeouts on every invocation when the
database is down. It also doesn't open a transaction, as they aren't very
important here.
Call `f` with an open connection to `db-spec` bound to `jdbc/*db*`. Unlike the regular db connection helpers, this version goes through `backoff-on-failure` to avoid long timeouts on every invocation when the database is down. It also doesn't open a transaction, as they aren't very important here.
(first-query-result query k)Pick a key out of the first result of a query.
Pick a key out of the first result of a query.
(initialize-population-metrics! registry db)Initializes the set of population-wide metrics
Initializes the set of population-wide metrics
(num-active-nodes)The number of unique certnames in the population
The number of unique certnames in the population
(num-inactive-nodes)The number of expired/deactivated nodes
The number of expired/deactivated nodes
(num-resources)The number of resources in the population
The number of resources in the population
(pct-resource-duplication*)What percentage of resources in the population are duplicates
What percentage of resources in the population are duplicates
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |