Configuration
You can use the following environment variables to configure the refresh worker behavior:CUBEJS_REFRESH_WORKER(see alsoCUBEJS_PRE_AGGREGATIONS_BUILDER)CUBEJS_PRE_AGGREGATIONS_SCHEMACUBEJS_SCHEDULED_REFRESH_TIMEZONESCUBEJS_DB_QUERY_TIMEOUTCUBEJS_REFRESH_WORKER_CONCURRENCY(see alsoCUBEJS_CONCURRENCY)CUBEJS_SCHEDULED_REFRESH_QUERIES_PER_APP_IDCUBEJS_DROP_PRE_AGG_WITHOUT_TOUCHCUBEJS_PRE_AGGREGATIONS_BACKOFF_MAX_TIME
Pre-aggregation data source
By default, each data source builds and stores its pre-aggregations using its own connection. You can instead point a data source’s pre-aggregations at a dedicated connection by adding aPRE_AGGREGATIONS segment to its environment variables. When
set, that source’s pre-aggregations are built on and read from the dedicated
connection rather than the source’s own.
Use the CUBEJS_PRE_AGGREGATIONS_DB_* variables for the default data source, and the
CUBEJS_DS_<NAME>_PRE_AGGREGATIONS_DB_* variables for a named data
source:
PRE_AGGREGATIONS variant supports the same connection variables as the regular
CUBEJS_DB_* / CUBEJS_DS_<NAME>_DB_* data source variables (for example _DB_TYPE,
_DB_HOST, _DB_PORT, _DB_USER, _DB_PASS, and _DB_SSL).