NodeSamplerAutoConfiguration

The node's one sampler (NodeSampler), every wow.node.sample-interval, its parked entries counted up to wow.node.max-parked: the node's health, its gauges and the operator's read of its subscriptions all read its samples, so the ledgers and the logs' heads are read once per interval, whoever reports them.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Bean(initMethod = "start", destroyMethod = "close")
@ConditionalOnBean(value = [ServiceNode::class])
@ConditionalOnMissingBean
fun wowNodeSampler(node: ServiceNode, properties: WowProperties): NodeSampler
Link copied to clipboard
@Bean
@ConditionalOnBean(value = [ServiceNode::class])
@ConditionalOnProperty(prefix = "wow.http.ops", name = ["enabled"], havingValue = "true")
fun wowSubscriptionsRouterFunction(manifest: Manifest, sampler: NodeSampler, callers: CallerResolver, options: WowHttpOptions, routeAuthorizers: ObjectProvider<ServiceRouteAuthorizer>): RouterFunction<ServerResponse>

The operator's read of the node's subscriptions, when wow.http.ops.enabled, beside the parked routes: authenticated by the application's CallerResolver, read by a caller that reaches every tenant, and authorized by its ServiceRouteAuthorizers as the route ops.subscriptions of the context wow.