Documentation
¶
Overview ¶
Package inventory checks that every CDN node is serving: a probe location that runs on a CDN node names the node's address and the DNS name of its cluster (the rotation), and every minute both are resolved. A node whose address is not among the rotation's answers has been taken out (a health check, a traffic limit, a mistake), even though the machine is up and still probing; an address in the rotation that belongs to no location is a node nobody watches. Both are exported for alert rules. Nothing here needs the CDN's API or credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
Catalog func() *catalog.Catalog
Resolver *net.Resolver
Now func() time.Time
// contains filtered or unexported fields
}
Checker resolves the rotations and the nodes' addresses. Resolver nil is the system's resolver.