Configuration¶
One YAML file configures a deployment. The ingestor, the compactor, the tail service and the query gateway read the same file. To add a data source, you add a dataset to the file; you do not change code.
Rules for the file¶
- The file is examined at start. A value that is out of its range, or a combination that is not permitted, stops the process with a message that gives the full path of the key.
- A key that is not known is an error. A key with a typing error does not get its default
silently. The exceptions are
storage.catalogAuth,storage.propertiesandingestion.kafka.properties. TraceLake does not examine the names of the keys in these maps, but it refuses some combinations instorage.properties(see Storage properties). ${VAR}in a value is replaced with the environment variable of that name. Use it for secrets. If the variable is not set, the process does not start. There is no$VARform and no default form. Write$${for a literal${. Keys and comments are not changed.- Error messages do not show the value of a variable. They show
${VAR}in its place.
The tables below give the default and the permitted range of each key. "Required" means that the key has no default.
cluster¶
| Key | Default | Meaning |
|---|---|---|
cluster.id |
Required | A name for the deployment. Each log line has it in the field cluster_id, from the time the process has read its configuration. Each Kafka client of the ingestor for a dataset has the client.id {cluster.id}-{dataset}. The tail service's client has {cluster.id}-{dataset}-tail. The check of the ledger topic at ingestor start has {cluster.id}-ledger-check. A client.id in ingestion.kafka.properties is replaced. Give each deployment that shares a broker or a log store a different value. At each start, the ingestor and the compactor write it to the owner marker of each dataset if there is no marker. If the marker contains a different value, they do not start. Before you change the value, see the runbook. |
All the ingestor's Kafka clients of a dataset have the same client.id, so a client-id quota on the
broker applies to all of them together. The tail service has a different client.id, so that quota
does not apply to it.
cluster.id is not a label on the metrics. The Helm chart identifies a deployment in Prometheus by
its namespace and the name of its release, and by default it installs ServiceMonitors that add that
label. See Deployment labels.
ingestion¶
| Key | Default | Range | Meaning |
|---|---|---|---|
ingestion.kafka.bootstrapServers |
Required | The Kafka brokers, as host:port with commas between them. |
|
ingestion.kafka.ledgerTopic |
Required by the ingestor | The commit ledger: a Kafka topic that you create. Set cleanup.policy=compact (only this value: the ingestor does not start with a different value). A segment.ms of about one hour keeps the read at start short. The ingestor's principal needs Read, Write, Describe and DescribeConfigs on the topic, Write and Describe on the transactional IDs that start with <cluster.id>-, and IdempotentWrite on the cluster. Your producers do not change: they do not need transactions. |
|
ingestion.kafka.properties |
none | Properties for the Kafka client (librdkafka), for example for TLS and SASL. TraceLake sets bootstrap.servers, group.id, enable.auto.commit, auto.offset.reset (earliest), partition.assignment.strategy (cooperative-sticky) and isolation.level (read_committed) itself, after these. A value that you give for one of them has no effect. |
|
ingestion.namespace |
tracelake |
The Iceberg namespace of all the tables. The name of a table is the name of its dataset. For more than one namespace, install one deployment for each. See Several namespaces. It is also the first part of the path of each file (see Where the files are), so it can contain only A–Z, a–z, 0–9, _ and -. |
|
ingestion.commitIntervalSeconds |
20 | 15 to 30 | The interval between table commits of the ingestor. |
ingestion.drainTimeoutSeconds |
96 | 5 to 600 | The time limit of the shutdown of the ingestor. It must be less than the termination grace period of the pod. |
ingestion.datasets |
none | The list of datasets. See Datasets. |
ingestion.wal¶
| Key | Default | Range | Meaning |
|---|---|---|---|
ingestion.wal.localDirectory |
Required | The directory of the write-ahead log, on the volume of the pod. | |
ingestion.wal.maxFileSizeBytes |
67108864 (64 MiB) | 16 MiB to 256 MiB | A WAL file rotates at this size. |
ingestion.wal.maxFileAgeMinutes |
5 | 1 to 60 | A WAL file rotates at this age. |
ingestion.wal.maxOpenSegmentsPerPartition |
256 | 1 to 65536 | The largest number of open WAL files for one Kafka partition. Above it, all the files of the partition rotate. |
ingestion.wal.maxBufferedBytes |
268435456 (256 MiB) | 16 MiB to 16 GiB | The limit of the decoded records that one dataset keeps in memory for its open WAL files. At the limit the ingestor writes them to the files. It does not pause ingestion. |
ingestion.wal.diskHighWatermarkPct |
80 | 50 to 95 | The ingestor pauses its Kafka consumers when the WAL volume is this full. It resumes them 5 percentage points below. |
A dataset can have its own value for the first four numeric keys (see Overrides for one dataset). The directory and the watermark apply to the whole ingestor, because all datasets share one volume.
Each open WAL file uses one file descriptor. At start, the ingestor compares the largest possible number of open files with the limit of the process and writes a warning to its log if the limit is too low.
ingestion.tantivy¶
These keys control the full-text index that the compactor builds.
| Key | Default | Range | Meaning |
|---|---|---|---|
ingestion.tantivy.tokenizerMemoryBudgetMb |
32 | 15 to 128 | The memory of the compactor's index writer. Each 15 MB gives the writer one indexing thread, up to the pod's CPU limit. |
ingestion.tantivy.ngramSize |
3 | 2 to 5 | The length of the character groups that answer LIKE filters. A pattern with no literal part of this length or more cannot use the index; the gateway then scans the file. A larger value makes the index smaller. |
ingestion.tantivy.maxIndexedValueBytes |
65530 | 16 to 65530 | The longest value that goes into the index. The table keeps the full value. For a longer value, the gateway scans the file for a filter on that column. Does not apply to a tantivy.substringOnlyColumns column, which is indexed whole. |
ingestion.tantivy.rowsPerDoc |
64 | 1 to 1024 | How many consecutive rows one index entry covers. A match reads all the rows of its entry, so a higher value makes the index smaller and each search read more rows. On real call-record files, 64 made the index 6.6 times smaller and the search read up to 6 % more bytes. At 1024 it read up to 55 % more. 1 gives one entry for each row. Each index records its value, so a change applies to a file when compaction writes it again. A higher value also uses more compactor memory while an index is built: for one index build in isolation, on a file of 2.7 million call records, the peak went from 217 MB at 1 to 666 MB at 64. |
Datasets¶
One entry in ingestion.datasets is one Kafka topic and one Iceberg table.
| Key | Default | Range | Meaning |
|---|---|---|---|
name |
Required | The name of the dataset and of its table. It is part of the path of each file, so it can contain only A–Z, a–z, 0–9, _ and -. |
|
topic |
Required | The Kafka topic. | |
groupId |
Required | The Kafka consumer group. Use one group for each dataset. | |
parquetSchema |
none | The columns and their types. See Schema. | |
unmappedColumn |
true |
false removes the _unmapped column. Requires parquetSchema. You cannot set it back to true. See Schema. |
|
customMapping |
none | For each column, where its value comes from in the JSON payload. See Mapping. | |
partitionMapping |
none | The partition columns. See Partitions. | |
bloomFilterColumns |
none | Columns that get a bloom filter. Use them for identifiers that queries look up with an equality filter. | |
tantivy.indexingColumns |
none | Text columns that get a full-text index at compaction. | |
tantivy.substringOnlyColumns |
none | Columns of tantivy.indexingColumns that get only the substring index. Use it for long values, such as request and response bodies: the index of whole values is then not written, and it can be half of the index size. An equality or prefix filter on these columns still uses the substring index. These columns are not cut at ingestion.tantivy.maxIndexedValueBytes, so a long value does not make the gateway scan the file. |
|
ndvColumns |
none | Columns that get a distinct-value sketch at compaction. The query planner uses it. | |
sortColumns |
none | The compactor sorts the rows of each merged file by these columns. The gateway also uses the integer, date, timestamp, boolean, decimal and floating-point columns of the list to skip whole files for ORDER BY ... LIMIT; see Performance. |
|
maxRawWindowDays |
7 | 0 to 3650 | The longest time range of a query that returns raw rows. 0 removes the limit, and then a PostgreSQL query has no limit on its size. See Limits. |
retentionDays |
0 | 0 to 3650 | The age, in days, of the oldest rows that a query sees. The gateway measures the age on timeColumn, from the start of the query. Rows with no timeColumn value stay visible. 0 shows all rows. The data stays in storage, unless maintenance.retentionDeleteEnabled is on: then the compactor also deletes it, maintenance.retentionSafetyMarginDays later. A query with tier=cold, or on the <namespace>_cold schema, sees all rows. See Limits. |
timeColumn |
none | The timestamp column on which the gateway measures that time range and the age of a row. Necessary when maxRawWindowDays or retentionDays is not 0, and when the dataset has a hotSource. The gateway also uses it to skip whole files for ORDER BY ... LIMIT. |
|
wal, compaction |
none | See Overrides for one dataset. | |
hotSource |
none | A source of the newest rows: a PostgreSQL table, or the TraceLake tail service. See Hot source. | |
preset |
none | Accepted, but it has no effect in this version. |
The ingestor and the compactor do not start if bloomFilterColumns, tantivy.indexingColumns,
ndvColumns or sortColumns contain a column that is not in parquetSchema, or contain a column
two times. They also do not start if bloomFilterColumns contains a BOOLEAN column, if
tantivy.indexingColumns contains a UUID column (use bloomFilterColumns for it), or if
sortColumns is set and there is no parquetSchema. The gateway does not
start if a dataset with a time-range limit or a retentionDays value has no timeColumn, or if
that column is not a timestamp column. No process starts if a dataset with a hotSource has no timeColumn or no parquetSchema, or if maintenance.retentionDeleteEnabled is on and a dataset with a retentionDays value has no timeColumn.
Schema¶
parquetSchema is a list of name TYPE pairs with commas between them:
parquetSchema: "span_id STRING, service_name STRING, message STRING, ts TIMESTAMPTZ, event_date LONG"
| Type | Holds |
|---|---|
STRING |
Text. |
UUID |
A UUID. The table stores it in 16 bytes. Queries return it as lowercase text with hyphens, for example 0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b. The payload value and a query value can have any usual UUID form: upper or lower case, with or without hyphens, in braces, or urn:uuid:. A payload value that is not a UUID goes to _unmapped. |
INT, LONG |
Integers. BIGINT is the same as LONG. |
DOUBLE |
Floating-point numbers. |
BOOLEAN |
True or false. BOOL is also accepted. |
TIMESTAMP |
A date and time with no time zone. |
TIMESTAMPTZ |
An instant in UTC. Use it for event times. |
The names of the types are not case-sensitive.
The order of the columns is permanent. The position of a column gives it its identity in the Iceberg table. Add new columns at the end. Do not change the order and do not remove a column.
To add a column, first add it to the table with an Iceberg engine, for example Spark or Trino
(ALTER TABLE ... ADD COLUMN). Then add it at the end of parquetSchema. If you add more than one
column, use the order in which you added them to the table. The ingestor does not add a column to
the table itself: if parquetSchema has a column that the table does not have, the ingestor does
not start.
Each top-level field of the payload that no column stores goes into the column _unmapped, as JSON
text, under its own name. A column stores a field when its customMapping expression is only the
name of that field, for example spanId, with no conversion (normalize). A field that an
expression reads only a part of, for example resource in resource.attributes."service.name",
stays in _unmapped complete, with all its other values. A field that an expression reads in a
different way, for example with a function or a conversion, also stays there. A value that does not
convert to the type of its column, or that is an object or a list, stays there too, and the cell of
the column is null. An integer larger than 2^53 that a DOUBLE column cannot hold exactly
also stays there. The record is not lost. The original spelling of a value is not kept,
for example the case of a UUID or 5.0 for 5. A field that a column reads and that holds null
is not kept. You cannot use the name _unmapped for a column of your own.
In the example on this page, startTimeUnixNano (read with a conversion) and the full resource
object are thus in _unmapped for each row, in addition to the columns made from them. Include
this in your estimate of storage.
With no parquetSchema, the table has only the _unmapped column.
If your columns hold all the data that you need, set unmappedColumn: false. Then the dataset has
no _unmapped column. A field that is not in a column is not stored. A value that does not convert
to the type of its column is not stored, and its column is empty (NULL) in that row. For a table
that already has _unmapped, the ingestor removes the column from the table when it starts. It
does not write the data files again. This change is permanent. After it, queries cannot read
the old values of _unmapped, and compaction removes them from the files that it writes. If you
set unmappedColumn back to true, the ingestor does not start. After this change, do not run
expire_snapshots with clean_expired_metadata on the table from another engine. If you do, you
cannot add a column later: the ingestor does not start.
If parquetSchema has a different type for a column than the table has, the ingestor does not
start. If the partition columns are different from those of the table, the ingestor also does not
start. Each check has a command-line flag that permits the start (--allow-incompatible-schema,
--allow-partition-evolution). Use one only for a change that you planned.
Mapping¶
customMapping gives a JMESPath expression for each column. The short
form is the expression only. The long form adds a conversion.
customMapping:
span_id: "spanId"
service_name: "resource.attributes.\"service.name\""
message: "message"
ts:
expr: "startTimeUnixNano"
normalize: to_micros
epochUnit: nanos
event_date:
expr: "startTimeUnixNano"
normalize: date_int
epochUnit: nanos
calendarOffset: "+02:00"
| Key | Values | Meaning |
|---|---|---|
expr |
A JMESPath expression | Where the value is in the payload. |
normalize |
strip_hyphens |
Removes the hyphens, for example from a UUID. |
to_micros |
Converts a time to microseconds since 1970 in UTC. A time in nanos is rounded to the nearest microsecond. |
|
year, month, day |
The part of the date, as a number. | |
date_int |
The date as one number, yyyymmdd, for example 20230722. |
|
epochUnit |
seconds, millis, micros, nanos, datetime_string |
The form of the time in the payload. Necessary with each time conversion. TraceLake does not guess it from the value. |
datetimeFormat |
rfc3339, or a pattern such as "%Y-%m-%d %H:%M:%S%.f" |
The layout of the text. Necessary with epochUnit: datetime_string, and permitted only with it. |
defaultOffset |
A fixed offset such as "+02:00" |
The offset for a text value that has none. The default is UTC. Permitted only with epochUnit: datetime_string. It has no effect with datetimeFormat: rfc3339, because such a value always has its own offset. |
calendarOffset |
A fixed offset such as "+02:00" |
The offset of the calendar for year, month, day and date_int. The default is UTC. Not permitted with to_micros. |
Without calendarOffset, a dataset in a time zone that is not UTC has each local day in two
values of the date column. Only fixed offsets are possible; names of time zones are not.
Warning
A change to calendarOffset on a dataset that has data changes the partition of new rows. To
add calendarOffset to a dataset that has none is also a change, from +00:00. It is a
migration, not a change to a setting. The gateway selects the partitions of a time range
with the current calendarOffset. After a change, a filter on the time column can miss old
rows near midnight, because their date column has the old value. Compaction keeps that value,
and TraceLake cannot calculate it again. Thus, do not change calendarOffset on a dataset that
has data: ingest the data again into a new dataset, for example from a replay of the topic. A
different writer of the table must calculate the date_int column in the same way, or the
same problem occurs.
Partitions¶
Each entry of partitionMapping has a key, which is the name of a column, and an expr, which
must be the same expression that customMapping has for that column. The column must be in
customMapping.
An entry can also have a transform. This is the Iceberg partition transform that TraceLake
applies to the column. The values are the values that the Iceberg specification defines, so Trino,
Spark and DuckDB prune the partitions in the same way as TraceLake.
transform |
Partition value | Column types |
|---|---|---|
identity (the default) |
The value of the column | All types, but not DOUBLE, UUID, TIMESTAMP or TIMESTAMPTZ |
year, month, day, hour |
Years, months, days or hours since 1970-01-01 UTC | TIMESTAMP, TIMESTAMPTZ |
bucket[N] |
A hash of the value, from 0 to N−1 | INT, LONG, STRING, UUID, TIMESTAMP, TIMESTAMPTZ |
truncate[W] |
The first W characters of a string, or the number rounded down to a multiple of W | INT, LONG, STRING |
partitionMapping:
- key: ts
expr: "startTimeUnixNano"
transform: day
- key: service_name
expr: "resource.attributes.\"service.name\""
A transform other than identity adds no column to the table. The partition value is only in the
Iceberg metadata, and the field has the name <key>_<transform>, for example ts_day,
trace_id_bucket_16 or service_name_trunc_4. A filter on the column itself, for example a time range
on ts, then selects only the partitions that it can reach. One column can have only one
of year, month, day and hour.
For a date partition in UTC, use transform: day on the time column. The time transforms use UTC
and have no offset. For a date partition in a different time zone, use a date_int column with
calendarOffset and the identity transform. The TraceLake gateway then also selects the
partitions from a filter on the time column, if the date_int column has epochUnit: micros and
the time column is a TIMESTAMP or TIMESTAMPTZ column with the same expr and no normalize.
Other engines, for example Trino, select the partitions only from a filter on the date_int
column. Three columns with year, month and day are also possible.
Warning
A change to partitionMapping on a dataset that has data is a partition evolution. The old
files keep their partitions, and only new files use the new ones. See
the runbook. A dataset that moves
from a date_int column to transform: day keeps the date_int column: you cannot remove a
column from parquetSchema.
Do not partition on a column with many different values. Each value of the partition columns on each Kafka partition has its own open WAL file.
Overrides for one dataset¶
A dataset can have its own value for these keys. A key that the dataset does not set has the value from the top level. The ranges are the same.
datasets:
- name: spans
wal:
maxFileAgeMinutes: 2
compaction:
targetSizeMb: 256
| Block | Keys |
|---|---|
wal |
maxFileSizeBytes, maxFileAgeMinutes, maxOpenSegmentsPerPartition, maxBufferedBytes |
compaction |
backlogFileThreshold, minFileSizeMb, targetSizeMb, compression, compressionLevel, rowGroupSize, commitRetryMax, snapshotRetentionHours |
The compaction block of a dataset also accepts schedule and backlogCheckIntervalMinutes, but
they have no effect. The compactor uses the top-level values of these two keys for all datasets.
Hot source¶
A dataset can have a hotSource block. The gateway then reads the newest rows from the hot source,
and the older rows from Iceberg. The hot source is your PostgreSQL table (type: POSTGRES), or the
TraceLake tail service (type: TAIL, see Tail service). See
Hot source on the gateway page.
datasets:
- name: spans
timeColumn: ts
hotSource:
type: POSTGRES
dsn: "postgres://reader:${HOT_PG_PASSWORD}@db.example.internal/ops"
table: public.spans
boundarySeconds: 420
retentionSeconds: 600
| Key | Default | Range | Meaning |
|---|---|---|---|
type |
Required | POSTGRES or TAIL |
The type of the hot source. |
dsn |
Required with POSTGRES |
A postgres:// or postgresql:// connection URI. Not permitted with TAIL. |
|
table |
Required with POSTGRES |
The table or view, with its schema name. See the gateway checks below. Not permitted with TAIL. |
|
boundarySeconds |
Required | 60 to 86400 | Rows newer than this age come from the hot source. Older rows come from Iceberg. |
retentionSeconds |
Required | 60 to 2592000 | How long your database keeps a row, measured on timeColumn. TraceLake does not measure it. With TAIL, the time that the tail service keeps a row. |
maxConnections |
4 | 1 to 32 | The maximum number of connections to your database for this dataset. |
statementTimeoutMs |
10000 | 100 to 60000 | The time to connect and to start the read. It includes the wait for a free connection. |
readTimeoutMs |
60000 | 1000 to 3600000 | The time to read all the rows from the hot source. |
endpoint |
Required with TAIL |
The Arrow Flight URI of the headless Service of the tail service, for example https://tracelake-tail:50051. The gateway sends queries to all the ready replicas. Not permitted with POSTGRES. |
|
tls.caPath |
none | TAIL only. A PEM file of the certificate authority that signed the certificate of the tail service. The gateway trusts it and the authorities of the operating system. |
|
maxLagSeconds |
15 | 1 to 300 | TAIL only. If the tail service is more than this time behind its Kafka topic, the gateway answers from Iceberg only. |
maxBytes |
2147483648 (2 GiB) | 64 MiB to 64 GiB | TAIL only. The maximum memory for the rows of this dataset in each replica of the tail service. |
compression |
lz4 |
lz4 or zstd |
TAIL only. How the tail service compresses the rows in memory. zstd uses approximately half the memory, and is slower to read. |
replaySlackSeconds |
60 | 0 to 3600 | TAIL only. When the tail service starts, it reads Kafka from retentionSeconds + replaySlackSeconds ago. It does not keep a row whose time value is more than replaySlackSeconds in the future. |
The processes do not start if one of these rules is not satisfied:
- The dataset has a
timeColumnand aparquetSchema, andtimeColumnis one of theparquetSchemacolumns. queryGateway.auth.datasetRolesis present.statementTimeoutMsis less thanqueryGateway.queryTimeoutSeconds× 1000.readTimeoutMsis more thanstatementTimeoutMs.- Each key that is for one type only is not in a block of the other type.
- The password in
dsnis a${VAR}. A password written in the file is an error. Adsnthat is one${VAR}, or that has no password, is permitted. sslmodeindsnis absent,verify-full,verify-caordisable. If it is absent, the gateway usesverify-full: it uses TLS and examines the certificate and the host name of the server.verify-caexamines the certificate but not the host name. Use it when the gateway connects to the server with a name that is not in its certificate, for example through a private endpoint or a proxy. Other values, for examplerequire, do not examine the certificate and are errors. Withverify-caordisable, each process writes a warning to its log at each start.
With POSTGRES, the gateway also does these checks when it starts. It connects to your database
to do them. The gateway does not start if one of these rules is not satisfied:
- The gateway can connect to your database within
statementTimeoutMs. If your database is not available, the gateway does not start. tablehas eachparquetSchemacolumn, with the same name. Other columns intableare permitted. The gateway does not read them.- Each column has the PostgreSQL type that agrees with its
parquetSchematype. No other type is permitted. For example,varcharis nottext, andintegeris notLONG.
parquetSchema |
PostgreSQL |
|---|---|
STRING |
text |
UUID |
uuid |
INT |
integer |
LONG |
bigint |
DOUBLE |
double precision |
BOOLEAN |
boolean |
TIMESTAMP |
timestamp |
TIMESTAMPTZ |
timestamptz |
timeColumnistimestamptzintable, also whenparquetSchemagivesTIMESTAMP. Atimestamp(without time zone) column is an error: the gateway would divide the query at the wrong time.- The text columns that the dataset uses have a deterministic collation. The encoding of the
server is
UTF8.
The error message gives the column and the two types. It does not give dsn.
Certificates. The gateway examines the certificate of the server against the certificate
authorities of the operating system. If your database uses a private certificate authority, mount
its certificate in the gateway pod (gateway.extraVolumes and gateway.extraVolumeMounts in the
Helm chart) and add sslrootcert=<path of the PEM file> to dsn. The gateway then also accepts
that authority, for this hot source only. If the gateway cannot read the file, it does not start.
Do not set SSL_CERT_FILE for this: it replaces the authorities of the operating system for all
the connections of the pod, and the connections to the catalog and to storage then fail.
The gateway does not send a client certificate. A dsn with sslcert or sslkey is an error.
Use a password.
In the user name, the password and the parameter values of dsn, write @ as %40, / as
%2F and ? as %3F. If you do not, the gateway does not start.
Idle connections. The gateway keeps its connections to your database open between queries. If
a firewall or a NAT gateway removes an idle connection, or your database fails over, the gateway
can use a connection that does not work. That query then waits for statementTimeoutMs, and its
answer is degraded. Each such connection costs one degraded answer, and the gateway then replaces
it. To prevent this, add TCP keepalives to dsn, for example
keepalives_idle=30&keepalives_interval=10&keepalives_retries=3. The values are in seconds. With
these values, the operating system closes a connection that does not answer in approximately 60
seconds, and the gateway does not use it. Set keepalives_idle to less than the idle timeout of
your firewall or NAT gateway.
The two time keys must agree with the ingest delay. A row can be in Iceberg V seconds after
Kafka receives it. TraceLake calculates V from your configuration:
V = maxFileAgeMinutes × 60 + 15 + ingestion.commitIntervalSeconds
+ queryGateway.snapshotPollIntervalSeconds
margin = V ÷ 5, rounded up
maxFileAgeMinutes is the value of the dataset, if the dataset has one. The processes do not start
unless:
boundarySecondsis equal to or more thanV + margin. If it is less, Iceberg does not have all the rows that the gateway asks it for.retentionSecondsis more thanboundarySeconds + margin. If it is not, your database does not have all the rows that the gateway asks it for.
The error message gives V and each of its parts, the rule that failed, the shortfall, and the
keys that you can change.
With the default values, V is 343 seconds and margin is 69 seconds. If your database keeps rows
for 600 seconds, boundarySeconds can be 412 to 530. To use a smaller boundarySeconds, make V
smaller, for example with a smaller maxFileAgeMinutes. This makes more small files.
V + margin is a budget. It is not a guarantee. With the default values, we measured the time from
Kafka to a queryable row for 1000 events that each waited for a full WAL rotation. No event took
more than 412 seconds, and the longest took 337 seconds. One event in an earlier measurement took
413 seconds, immediately after the ingestor started. If all appends stop, the
TraceLakeColdTierLagNearBoundary alert tells you. At a boundarySeconds of 412, the
alert fires after the gap starts. To get the alert before the gap starts, set boundarySeconds to
approximately 735 or more. If only one file is a few seconds late, no alert fires.
If your producers hold events before they send them to Kafka, add that time to boundarySeconds.
TraceLake cannot measure it. If your database deletes rows by the time of insertion, and not by
timeColumn, set retentionSeconds to the smaller of the two times.
Give the database user in dsn read access to table only. TraceLake reads that table only, but
it cannot limit what the user can do. Do not use a superuser. These grants are sufficient for all
the checks and for the read:
CREATE ROLE tracelake_reader LOGIN PASSWORD '…';
GRANT CONNECT ON DATABASE ops TO tracelake_reader;
GRANT USAGE ON SCHEMA public TO tracelake_reader;
GRANT SELECT ON TABLE public.spans TO tracelake_reader;
Give no other privileges.
Tail service¶
With type: TAIL, the hot source is the TraceLake tail service. It is the ingestor tail command
of the ingestor image, and it runs as its own Deployment. Each replica reads all the partitions of
the dataset's Kafka topic and keeps the newest retentionSeconds of rows in memory. It writes
nothing to storage, and it does not commit Kafka offsets, so it does not change the ingestor's
consumer group. It reads the same customMapping and parquetSchema as the ingestor. Thus it
also supplies _unmapped.
datasets:
- name: spans
timeColumn: ts
hotSource:
type: TAIL
endpoint: https://tracelake-tail:50051
boundarySeconds: 420
retentionSeconds: 900
- Kafka retention. The topic must keep each event for at least
retentionSeconds + replaySlackSeconds. TraceLake does not examine this. If the topic keeps events for a shorter time, the tail service does not have all the rows after it starts. Until it has them, some answers come from Iceberg only. A partition with few events does not cause this, unless it has had no events for longer than the topic keeps them. - No connection at start. The gateway does not connect to the tail service when it starts. It starts also when the tail service is not available.
https://orhttp://. The gateway sends the bearer token of each request to the tail service. Usehttps://withtail.tls. With anhttp://endpoint, the token is not encrypted on the cluster network. The gateway permits it, and writes a warning to its log at each start. The scheme ofendpointmust agree withtail.tls:https://with it,http://without it.- Replicas. The gateway connects to each ready replica. If one replica cannot answer, or does not have all the rows, the gateway tries one other replica before it answers from Iceberg only.
- Memory. At
maxBytes, the tail service deletes its oldest rows before they areretentionSecondsold. It always accepts new rows. If the rows that remain do not go backboundarySeconds, the gateway answers from Iceberg only. The process uses more memory thanmaxBytes: a query that is open keeps the rows that it reads. Set the memory limit of the pod with space above the sum of themaxBytesvalues. If the pod is killed for memory, it reads its window from Kafka again. - Helm chart. The chart creates the Deployment, the headless Service
<release>-tail, and a NetworkPolicy that lets only gateway pods connect to the Flight port, when a dataset hastype: TAIL. Withtail.tlsin the configuration (config.tail.tlsin the chart's values), it creates a cert-manager Certificate from the Helm valuetail.certificate.issuerRef. The configuration keystail.tls.certPathandtail.tls.keyPathmust then be/var/run/tracelake/tail-tls/tls.crtandtls.key, andhotSource.tls.caPath, if set,/var/run/tracelake/tail-ca/ca.crt. The tail pods do not start until cert-manager has issued the certificate. When a dataset setscaPath, the gateway pods also do not start until then, and until the Secret has aca.crt. You do not have to restart the tail service after cert-manager renews the certificate: each 60 s, it compares the files with the certificate that it uses, and loads changed files. - Rows with no time value. The tail service does not keep a row with no
timeColumnvalue. Iceberg supplies these rows. - Rows with a future time. The tail service does not keep a row whose
timeColumnis more thanreplaySlackSecondsafter its own clock. Iceberg keeps the row. Answers include it only when its time value is more thanboundarySecondsold. - Authentication. The tail service examines the bearer token of each request with the
queryGateway.authkeys, as the gateway does, and appliesdatasetRoles. - Not ready. After it starts, a replica is not ready until it has read each partition up to
the end. A replica that is more than
maxLagSecondsbehind is also not ready.GET /readyonmetrics.portgives this state, for the readiness probe of the Deployment.
compaction¶
| Key | Default | Range | Meaning |
|---|---|---|---|
compaction.schedule |
0 2 * * * |
A cron expression, in UTC | The time of the scheduled pass, which selects more than a backlog tick. |
compaction.backlogCheckIntervalMinutes |
15 | 5 to 120 | The interval between passes. |
compaction.backlogFileThreshold |
100 | 1 to 100000 | A backlog tick selects a partition with more small files than this. |
compaction.minFileSizeMb |
32 | 4 to 64 | A file below this size is a small file. |
compaction.targetSizeMb |
128 | 64 to 512 | The size of a merged file. It must be larger than minFileSizeMb. |
compaction.compression |
zstd |
zstd, snappy, lz4, uncompressed |
The compression of all data files, those of the ingestor and those of the compactor. |
compaction.compressionLevel |
1 | 1 to 22 | The level for zstd. With a different compression, do not set it. |
compaction.rowGroupSize |
1048576 | 65536 to 16777216 | The number of rows in a row group of a merged file. The gateway prunes by row group. |
compaction.commitRetryMax |
5 | 1 to 20 | How many times a writer sends a commit again after the catalog refuses it. |
compaction.snapshotRetentionHours |
24 | 1 to 720 | Snapshot expiry keeps the snapshots of this period. It must not be less than maintenance.orphanMinAgeHours. |
compaction.runtimeDeadlineHours |
6 | 1 to 72 | A pass that runs longer increments a counter. The pass does not stop. |
Two combinations give a warning in the log at start, not an error:
ingestion.wal.maxFileSizeBytesis equal to or more thanminFileSizeMb. This is the case with the defaults (64 MiB and 32 MiB). A WAL file that rotates at its maximum size is then not a small file, and the compactor does not merge it for its size. If the dataset hastantivy.indexingColumns, the compactor still merges it to give it a text index.backlogFileThresholdis 1 or 2. The compactor then merges very small partitions again at each pass, with no decrease in the number of files.
maintenance¶
| Key | Default | Range | Meaning |
|---|---|---|---|
maintenance.expireSnapshotsIntervalMinutes |
60 | 15 to 1440 | The interval of snapshot expiry. |
maintenance.orphanCleanupIntervalMinutes |
60 | 15 to 1440 | The interval of orphan cleanup. |
maintenance.orphanMinAgeHours |
24 | 24 to 8760 | Orphan cleanup deletes only objects that are older than this. The minimum protects files that an ingestor has uploaded but not committed. |
maintenance.retentionDeleteEnabled |
false |
Deletes data older than the retentionDays of each dataset. See Retention delete. With false, no data is deleted because of its age. A dataset with retentionDays: 0 is never changed. |
|
maintenance.retentionSafetyMarginDays |
1 | 0 to 30 | The number of days after retentionDays before the compactor deletes a file. It also prevents a merge of a file that the delete can remove soon. With 0, a merge can fail when the delete removes one of its files; the next pass merges again. |
maintenance.retentionIntervalMinutes |
1440 | 60 to 10080 | The interval of the retention delete. Each pass reads all the manifests of each dataset that has a retentionDays value. |
storage¶
| Key | Default | Meaning |
|---|---|---|
storage.provider |
AZURE |
The cloud of the storage: AZURE, S3 or GCP. You cannot change it after the first start. AWS S3 is validated on general-purpose buckets with static credentials (an access key with a session token), not with EKS Pod Identity or IRSA, and not on directory buckets (S3 Express One Zone). Google Cloud Storage is validated on buckets with a flat namespace, with a service-account key and a catalog warehouse with sts-enabled off (see below), not with GKE Workload Identity, and not on buckets with a hierarchical namespace. Azure is validated on StorageV2 accounts with the hierarchical namespace on and off. |
storage.destinationUri |
Required | The location of the tables, for example abfss://lake@account.dfs.core.windows.net/tracelake. The scheme must agree with storage.provider: abfss:// or abfs:// for AZURE, s3:// for S3, gs:// for GCP. If not, TraceLake does not start, and the error gives the two keys. The URI must be in the storage location of the catalog's warehouse: TraceLake creates the table of a new dataset at <destinationUri>/<namespace>/<dataset>, and the catalog refuses a location outside its warehouse. Then the ingestor does not start. |
storage.catalogUri |
Required | The URL of the Iceberg REST catalog. |
storage.catalogAuth.clientId |
Required | The OAuth2 client ID for the catalog. |
storage.catalogAuth.clientSecret |
Required | The OAuth2 client secret. Use ${VAR}. |
storage.catalogAuth.scope |
none | The OAuth2 scope. |
storage.catalogAuth.oauth2ServerUri |
{catalogUri}/v1/oauth/tokens |
The token endpoint. |
storage.catalogAuth.warehouse |
none | The warehouse in the catalog. Necessary for the compactor: without it, merge commits and snapshot expiry fail. |
storage.properties |
none | Properties for the two storage clients. See Storage properties. |
TraceLake does not connect to a catalog without credentials. It gets a token with the OAuth2 client-credentials grant and gets a new one before the token expires.
Storage properties¶
TraceLake uses two clients for the storage. The Iceberg client writes the table metadata. The
object-store client does the conditional writes, the cleanup and the queries. Both clients get all
of storage.properties, but each client reads only its own keys: the Iceberg keys have a dot, and
the object-store keys have the prefix azure_, aws_ or google_. Thus you write a setting that
both clients need two times. If a key has no dot and the object-store client does not read it,
TraceLake does not start, and the error names the key. This is also true for a key of a different
cloud. If a key has a dot and the Iceberg client does not read it, the key has no effect and gives
no error. Thus, if you misspell an Iceberg credential key, the Iceberg client uses its default
credentials, for example the identity of the node.
| Setting | Provider | Iceberg key | Object-store key |
|---|---|---|---|
| Account key | AZURE |
adls.account-key |
azure_storage_account_key |
| Access key and secret | S3 |
s3.access-key-id, s3.secret-access-key |
aws_access_key_id, aws_secret_access_key |
| Session token | S3 |
s3.session-token |
aws_session_token |
| Region | S3 |
s3.region |
aws_region |
| Service-account key | GCP |
gcs.credentials-json, the JSON in base64 |
google_service_account_key, the JSON as it is |
The Azure storage account comes from storage.destinationUri. Write a credential as ${VAR} and
set the variable from a Kubernetes Secret. Do not write a credential in the values file.
Necessary keys. With a workload identity or the default credential chain of the cloud, Azure
and GCP need no key. S3 needs the region of the bucket, in the two spellings (s3.region and
aws_region): without it, the object-store client uses us-east-1, and requests to a bucket in a
different region fail. A static credential needs its keys in the two spellings.
Azure and the catalog's credentials. The catalog can send a SAS token for an ADLS warehouse,
but the Iceberg client does not use it. Give the Iceberg client its own account key:
adls.account-name and adls.account-key. This is the credential that is validated. Without a
credential, the first write of a data file times out. The object-store client does not get the
catalog's credentials, so it always needs its own credential. An account key does not expire,
so give the two clients the same key.
AWS S3 and the catalog's credentials. The catalog can send temporary credentials for an S3
warehouse: an access key, a secret and a session token (Lakekeeper does this when sts-enabled is
on). A static key in storage.properties has priority over them. When you set
s3.access-key-id without s3.session-token, TraceLake removes the session token of the catalog,
because the object store refuses a long-term key that is sent with a session token. When you set
s3.session-token, the Iceberg client uses your token. The region of the catalog
(client.region, the region of the warehouse) has priority over s3.region, unless you also set
client.region. The object-store client does not get the catalog's credentials, so it always
needs its own credential.
GCP and the catalog's credentials. The catalog can send a token for a GCS warehouse (Lakekeeper
does this when sts-enabled is on, which is its default). When gcs.credentials-json is set, the
Iceberg client does not use this token: the key has priority over the token, as on AWS S3. When
the key is not set, the Iceberg client uses the token. The object-store client does not get the
token, so it always needs its own key (google_service_account_key). The token and the key are
both validated for the Iceberg client. A service-account key is validated with sts-enabled off.
That a key has priority over the token is validated with sts-enabled on. Write
gcs.credentials-json in base64: the Iceberg client ignores a value that is not base64, and gives
no error. With a key, the Iceberg client gets a new token from Google for each metadata file that
it reads or writes. In the region of the bucket, this adds approximately 185 ms to each of these
operations. Data files do not use the Iceberg client, and freshness does not change. But table
commits, compaction commits, the orphan sweep and a gateway query that loads many manifests for the
first time are slower. For example, we estimate that a query over one week of manifests that are not
in the cache can take more than the query timeout. Thus, on GCS, we recommend the catalog's token
for the Iceberg client: do not set gcs.credentials-json, and keep sts-enabled on. The catalog's
token is not refreshed, and a token from the catalog can be valid for less than one hour.
TraceLake loads the table again for each operation, and each load gets the catalog's current token.
One operation uses its token for seconds to minutes.
All the keys. The table above gives the usual keys only. The full lists are those of the two clients, at the versions that TraceLake uses:
- Iceberg client (iceberg 0.10.1): the
ADLS_*,S3_*,CLIENT_*andGCS_*constants iniceberg::io. Use the value of the constant, for examples3.path-style-access. - Object-store client (object_store 0.13.2):
AzureConfigKey,AmazonS3ConfigKeyandGoogleConfigKey. Use the spelling with the prefix (aws_region, notregion).
TraceLake sets timeout and connect_timeout for the gateway itself (see
queryGateway.upstreamRequestTimeoutSeconds).
Workload identity. On AWS, EKS Pod Identity and IRSA put variables in the pod. The Iceberg
client reads them from the environment, but the object-store client reads them only from
storage.properties. Thus write the pair:
| Identity | Service-account annotation | storage.properties |
|---|---|---|
| EKS Pod Identity | none | aws_container_credentials_full_uri: "${AWS_CONTAINER_CREDENTIALS_FULL_URI}", aws_container_authorization_token_file: "${AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE}" |
| IRSA | eks.amazonaws.com/role-arn: <role ARN> |
aws_web_identity_token_file: "${AWS_WEB_IDENTITY_TOKEN_FILE}", aws_role_arn: "${AWS_ROLE_ARN}" |
| GKE Workload Identity | iam.gke.io/gcp-service-account: <service-account email>, if you use a Google service account |
none |
In the Helm chart, the annotation goes in serviceAccount.annotations. TraceLake does not start if:
- only one key of a pair is set. Without the pair, the object-store client uses the role of the node;
- a static access key (
aws_access_key_idors3.access-key-id) is set together with a pair. A static key has priority over the workload identity in the two clients; - a
${VAR}is not set. Thus a pod that the identity webhook did not change does not start.
Do not give the variable of a static key a name that starts with AWS_. The Iceberg client also
reads AWS_* variables from the environment, and a static key there has priority over a workload
identity.
The Helm chart does not set the pod label that Azure Workload Identity needs.
Upgrade from 1.0. TraceLake 1.0 does not start with S3 or GCP. Thus a deployment on S3 or
GCS starts at this version, and cannot do a rolling upgrade from 1.0. TraceLake 1.0 also started
with provider: AZURE and an s3:// location, which this version refuses. For such a deployment,
stop all its pods, set provider: S3, and start them again. The bucket and the tables do not
change.
queryGateway¶
| Key | Default | Range | Meaning |
|---|---|---|---|
queryGateway.serverPort |
8080 | 1024 to 49151 | The HTTP port. |
queryGateway.memoryLimit |
none | 64 MiB to 1 TiB | The memory limit of the query engine, for example 4GB. The units are B, KB, MB, GB and TB, in multiples of 1024. With no value there is no limit. On the HTTP interface the limit applies to each query. On the PostgreSQL interface all connections share one limit. The limit does not include all the memory of a scan. See Gateway memory. |
queryGateway.maxWorkerThreads |
16 | 1 to 64 | The number of worker threads. All queries share them, unless heavyQueryBytes is set: then heavy queries use a second pool of the same size. It is also the default of targetPartitions. |
queryGateway.targetPartitions |
maxWorkerThreads |
1 to maxWorkerThreads |
The number of parallel parts of one query. Each part uses its own memory, so more parts use more memory. With fewer parts than threads, heavy queries leave threads free for short queries, and each heavy query is slower. See Point lookups beside heavy queries. |
queryGateway.heavyQueryBytes |
not set (one pool) | 1048576 (1 MiB) to 1099511627776 (1 TiB) | A query that reads at least this many bytes after pruning runs on a second, lower-priority pool of maxWorkerThreads threads. Short queries then do not wait behind heavy ones, and a heavy query alone still uses every core. The pod has twice as many threads, so it can use more than maxWorkerThreads cores: set its CPU request and limit for that. The lower priority applies on Linux only. See Point lookups beside heavy queries. |
queryGateway.maxInFlightHttpQueries |
16 | 1 to 1024 | The number of HTTP queries in progress on one pod. The gateway refuses one more with 503. |
queryGateway.snapshotPollIntervalSeconds |
8 | 5 to 10 | The interval at which the gateway asks the catalog for the current snapshot. |
queryGateway.queryTimeoutSeconds |
30 | 5 to 300 | The time limit to plan and prune a query. |
queryGateway.upstreamConnectTimeoutSeconds |
5 | 1 to 60 | The time limit to connect to the object store. |
queryGateway.upstreamRequestTimeoutSeconds |
10 | 1 to 150 | The time limit of one call from the gateway to the catalog or to the object store, including the response. The gateway tries a failed object-store call one more time. Thus, one call to an upstream that does not answer fails after approximately two times this value. Each sidecar that the gateway reads before the response starts is one more call. If the object store does not answer, a query that reads two sidecars can get 504 before the calls fail. Two times this value must be less than queryGateway.queryTimeoutSeconds, or the gateway does not start. One read of a data file must complete in this time. This value and upstreamConnectTimeoutSeconds replace timeout and connect_timeout in storage.properties for the gateway. |
queryGateway.topkDynamicFilter |
true | true or false | For ORDER BY ... LIMIT, skip the files, row groups and rows that cannot be in the result. Whole files are skipped only for the timeColumn and sortColumns of a dataset; see Performance. The result is the same with it on or off. This includes a NaN in a floating-point column, which sorts outside the value ranges that files record: if a file that a query reads holds a NaN in a floating-point column that the query reads, or does not record its count of NaN, the gateway skips no row groups and no pages by value ranges in that query, for any column; see Performance. On a dataset with a hotSource, this is not measured yet. |
queryGateway.drainTimeoutSeconds |
48 | 5 to 600 | The time limit of the shutdown of the gateway: it accepts no new requests and lets the responses in progress finish. |
queryGateway.indexCache.maxBytes |
536870912 (512 MiB) | 64 MiB to 8 GiB | The size of the memory cache of bloom-filter sidecars and data-file footers, some with their page index. |
queryGateway.indexCache.diskDir |
none, required | The local directory of the full-text sidecars. The gateway writes only in its subdirectory tracelake-idx, and deletes that subdirectory at start. The gateway does not start if it cannot write there. |
|
queryGateway.indexCache.diskMaxBytes |
none, required | 4 GiB to 16 TiB | The disk space for the full-text sidecars in diskDir. The gateway keeps the small parts of each sidecar there, about 1.5 % of a large sidecar, and the lists of entries that queries have read from the rest; this value is the limit for both. Give the volume this value plus 64 times the small parts of your largest sidecar: the gateway loads at most 64 sidecars at a time. Each loaded sidecar also uses one memory map (the compactor writes each sidecar as one Tantivy segment, and each segment uses one map), against the node's vm.max_map_count (65530 on many systems): keep diskMaxBytes / (the small parts of your smallest sidecar) well below that limit, or raise the limit. If the node runs out, the gateway can stop. Each list of entries that the gateway keeps counts as at least 16 KiB. |
queryGateway.manifestCache.maxBytes |
536870912 (512 MiB) | 16 MiB to 4 GiB | The size of the cache of table metadata. It is also the limit of the table metadata that one query can hold. |
queryGateway.warmup.windowHours |
24 | 1 to 168 | At start, the gateway loads the sidecars of the files added in this period. A value above compaction.snapshotRetentionHours has no effect beyond that retention, because the gateway cannot date a file whose snapshot has expired. |
queryGateway.auth¶
| Key | Default | Range | Meaning |
|---|---|---|---|
queryGateway.auth.issuerUrl |
Required | The OIDC issuer. The gateway finds the signing keys from {issuerUrl}/.well-known/openid-configuration. |
|
queryGateway.auth.audience |
none | If set, the aud claim of a token must be equal to it. |
|
queryGateway.auth.requiredClaims |
none | Claims, as name and text value, that a token must have. | |
queryGateway.auth.roleClaimPath |
none | A JMESPath expression that gives the roles in the token. Necessary with datasetRoles. |
|
queryGateway.auth.datasetRoles |
none | For each dataset, the roles that can read it. If the key is present, a dataset that is not in it, or that has an empty list, is denied to all callers. If the key is absent, each authenticated caller can read each dataset. | |
queryGateway.auth.maxJwksStalenessSeconds |
3600 | 60 to 86400 | How long the gateway continues to use its signing keys when the provider is unavailable. After that, requests get 503. |
queryGateway.auth.negativeCacheTtlSeconds |
30 | 1 to 300 | How long the gateway remembers that a key ID is not known, or that a fetch failed, before it asks the provider again. |
audience and roleClaimPath must not be empty text if you set them.
queryGateway.postgres¶
Without this block, the gateway has no PostgreSQL port. With it, all four keys are required.
| Key | Range | Meaning |
|---|---|---|
queryGateway.postgres.port |
1024 to 49151 | The PostgreSQL port. It must be different from queryGateway.serverPort and metrics.port. |
queryGateway.postgres.tls.certPath |
The certificate chain, in PEM. The gateway does not start if it cannot read the file. | |
queryGateway.postgres.tls.keyPath |
The private key, in PEM: PKCS#8, PKCS#1 or SEC1. Each 60 s, the gateway compares the two files with the certificate that it uses, and loads changed files, so a renewal does not need a restart. This is true only if the files change in the pod: do not mount the Secret with subPath, because the kubelet does not update it. If the new files are not correct, the gateway keeps the old certificate and writes a WARN line. Only the gateway reads the two files. In the Helm chart, mount them with gateway.extraVolumes and gateway.extraVolumeMounts, so that only the gateway pods hold the key. |
|
queryGateway.postgres.maxConnections |
1 to 10000 | The number of connections on one pod. |
queryGateway.mcp¶
Without this block, the gateway has no MCP interface. With it, resourceUrl is required.
| Key | Range | Meaning |
|---|---|---|
queryGateway.mcp.resourceUrl |
The interface's external URL. It must be https and end in /mcp, for example https://gw.example.com/ns/traces/mcp behind the chart's HTTPRoute. Each token must carry it as aud, and it is the only Origin accepted. |
|
queryGateway.mcp.serveHttpQuery |
default true |
false removes the HTTP query route from the pod, so that the pod serves MCP only. The metrics port stays. |
tail¶
| Key | Default | Range | Meaning |
|---|---|---|---|
tail.bindAddress |
0.0.0.0:50051 |
The address and port of the Arrow Flight listener of the tail service. Expose it inside the cluster only. | |
tail.tls.certPath |
none | A PEM certificate chain. With keyPath, the listener uses TLS. Without the two keys, it does not. Set the two keys or neither. |
|
tail.tls.keyPath |
none | The PEM private key of certPath: PKCS#8, PKCS#1 or SEC1. Only the tail service reads the two files. Each 60 s, it compares them with the certificate that it uses, and loads changed files. If the new files are not correct, it keeps the old certificate and writes a WARN line. |
The certificate must have the name of the headless Service. The gateway examines the certificate
against the host name in endpoint, also when it connects to one replica.
The tail service serves each dataset that has hotSource.type: TAIL. See
Tail service.
metrics¶
| Key | Default | Range | Meaning |
|---|---|---|---|
metrics.port |
9090 | 1024 to 49151 | The port of /metrics in each process. The tail service also serves its readiness probe there, GET /ready: 200 when ready, 503 when not. |
Keys with no effect in this version¶
The file accepts these keys, and examines a range where the table gives one, but no process uses the values.
| Key | Default | Range |
|---|---|---|
queryGateway.traceGraph.maxSpans |
10000 | |
queryGateway.traceGraph.maxResponseBytes |
67108864 | |
ingestion.datasets[].preset |
none | |
ingestion.datasets[].compaction.schedule |
A cron expression | |
ingestion.datasets[].compaction.backlogCheckIntervalMinutes |
5 to 120 |
retentionDays on a dataset removes old rows from the results of queries, but the rows stay in
storage. To delete them too, set maintenance.retentionDeleteEnabled: true. The compactor then
deletes them through the Iceberg catalog, so other engines that read the table never see a missing
file. See Retention delete. Do not use a lifecycle rule of your
storage account on the data files for this: it deletes files that the table still refers to, and
every reader of the table then fails.