Aggregation
This page describes how to configure aggregations in kdb Insights Enterpriseto enable efficient data summarization and analysis.
Aggregation
Aggregation is performed by the Aggregator which collects partials results into a single unified response for a query. Similarly to the routing components, the Aggregator is deployed outside of a package so that it can aggregator across packages. It is primarily configured by setting environment variables on the service.
Environment Variables
Configuration can be supplied to the Aggregator using environment variables. Environment variables are configured differently depending on the method of deployment. In all cases, the variables are always string values.
Docker
Kubernetes
In Docker, environment variables are supplied using under an environment
key for the target service as a list of key-value pairs.
YAML
services:
agg:
environment:
- KXI_NAME=agg
In a Kubernetes deployment, environment variables are passed to components using a values file. For the Aggregator, these values are supplied under an aggregator
key.
Warning
When running in a kdb Insights Enterprise deployment, values are nested under either a service-gateway
or qe-gateway
key in the values file.
See enterprise deployment configuration for more details.
YAML
service-gateway:
aggregator:
env:
KXI_SG_TIMEOUT: "50000"
name |
description |
---|---|
|
Process name. |
|
Port. |
|
A comma-delimited list of RC process(es) to connect to in the format
|
|
File containing custom code to load into Agg process. |
|
Frequency in milliseconds to run garbage collect in a timer (default: |
|
Default request timeout in milliseconds (default: |
|
Timeout on connection open. |
|
Time in milliseconds to run the request table delete routine (default: |
|
Time in milliseconds to run the heartbeat to connected processes (default: |
|
Number of heartbeat intervals a process can miss before being disconnected (default: |
|
Set to |
|
Discovery mode: |
|
Label selector to discover RCs via Kubernetes-based discovery (default: |
|
RC container name for Kubernetes-based discovery (default: |
|
Override Aggregator's ordinal. See ordinals. |
|
Set to |