Reference
Configuration keys
Tidemark reads its configuration from environment variables and nothing else.
In Kubernetes they come from the Helm chart, helm/tidemark, and its values.yaml has a key for every decision an installation makes.
The tables below are generated from that file when this site is built, so they say what the file says.
The variables themselves are explained in docs/running.md in the repository.
Which keys to set for which task is in Configuration.
An empty key sets no variable, and Tidemark’s own default applies.
The chart refuses at install what Tidemark would refuse at start, and names the key to set: no store, two stores, no cluster name, no bootstrap servers.
The HTTP port is fixed at 8080 (TIDEMARK_HTTP_PORT), so that the container, the probes and the Service cannot disagree.
The image and the cluster
| Key and default | What it does |
|---|---|
image.repositoryregistry.gitlab.dataflow.academy/kafka/tidemark | |
image.tagempty | |
image.pullPolicyIfNotPresent | |
imagePullSecrets[] | For a private registry, e.g. - name: tidemark-registry |
clusterNameempty | The cluster's name in manifest keys and metrics; in restore mode the lost cluster's. Empty: kafka.strimzi.clusterName. |
principalempty | Tidemark's own principal, recorded in every manifest (acls.read_as) so that after a restore the page gives the new cluster's Tidemark its ACLs before the first release (#371). Empty: the SCRAM or PLAIN user name, or User:CN=<user> for a Strimzi KafkaUser with tls; set it for any other TLS certificate or OAuth. |
Kafka
Beside Strimzi kafka.strimzi.clusterName is enough; otherwise the connection, TLS and authentication in the shape of Strimzi’s client authentication.
kafka.config passes any other client property on as it is: client.dns.lookup: use_all_dns_ips becomes TIDEMARK_KAFKA_CLIENT_DNS_LOOKUP, which Tidemark hands to every Kafka client as client.dns.lookup.
| Key and default | What it does |
|---|---|
kafka.strimzi.clusterNameemptykafka.strimzi.listener.port9093kafka.strimzi.listener.tlstrue | Beside Strimzi: the Kafka resource in this namespace. Set, the rest of kafka.* is not needed. |
kafka.strimzi.kafkaUser.createtrue | false: use an existing KafkaUser of that name and its Secret. |
kafka.strimzi.kafkaUser.nameempty | Empty: the release's name. |
kafka.strimzi.kafkaUser.authenticationtls | tls or scram-sha-512, as the listener authenticates. |
kafka.bootstrapServersempty | Without Strimzi: host:port,host:port. |
kafka.tls.enabledfalse | |
kafka.tls.caCertificate{} | The brokers' CA as PEM, {secretName or configMapName, key}. Empty: the JVM's trust. |
kafka.authentication{} | As Strimzi's client authentication: type: tls certificateAndKey: {secretName, certificate, key} type: scram-sha-512 username, passwordSecret: {secretName, password} type: scram-sha-256 the same type: plain the same |
kafka.config{} | Further client properties under Kafka's own names, e.g. client.dns.lookup: use_all_dns_ips. |
The store
| Key and default | What it does |
|---|---|
storage.s3.bucketemptystorage.s3.endpointemptystorage.s3.regionempty | Exactly one of s3 or azure. |
storage.s3.credentials{} | {secretName, accessKey, secretKey}. Empty: workload identity or the SDK's default chain. |
storage.s3.workloadIdentity.roleArnempty | IRSA: the IAM role for the ServiceAccount. |
storage.s3.caCertificate{} | The store's CA, if the JVM does not trust it: {secretName or configMapName, key}, plus type (PKCS12, JKS) and passwordKey for a keystore file. |
storage.azure.containerempty | |
storage.azure.endpointempty | https://<account>.blob.core.windows.net |
storage.azure.workloadIdentity.clientIdempty | The managed identity's client id; it annotates the chart's ServiceAccount. |
storage.azure.workloadIdentity.podLabelfalse | Label the pod for the workload identity webhook without a client id here, for a ServiceAccount of your own that carries the annotation. |
storage.azure.connectionString{} | {secretName, key} holding a connection string, instead of workload identity. |
manifestRetentionDays7 | How long the store's lifecycle rule keeps the manifests; the alerts warn before the restore point falls out of it. |
The backup and the restore policy
| Key and default | What it does |
|---|---|
backup.kannika.namespaceempty | Where Kannika's resources are. Empty: the release's namespace. |
backup.kannika.storageempty | The Storage the backup writes to, and the Credentials with its keys; the location and the keys are read from them. |
backup.kannika.credentialsempty | |
backup.kannika.credentialsSecrets[] | The Secrets those Credentials point at, for the Role. |
backup.kannika.prefixempty | By hand, instead of or over what the Storage says. Empty fields fall back to storage.*. |
backup.kannika.s3.bucketempty | |
backup.kannika.s3.endpointempty | |
backup.kannika.s3.regionempty | |
backup.kannika.s3.credentials{} | |
backup.kannika.s3.caCertificate{} | |
backup.kannika.azure.containerempty | |
backup.kannika.azure.endpointempty | |
backup.kannika.azure.connectionString{} | |
restorePolicy.configMaps[] | ConfigMaps whose keys are policy files; all are mounted into one directory. |
Restore mode
| Key and default | What it does |
|---|---|
restore.enabledfalse | The target of a restore: a release of its own. |
restore.executefalse | Execute the page's commands where the principal has the rights, instead of showing them. |
restore.kannika.createtrue | With execute, grant create on Kannika's restores, so that Tidemark creates the Restore resource on a click. false: the page offers it as a file to apply. |
restore.kannika.resource.nameemptyrestore.kannika.resource.storageemptyrestore.kannika.resource.eventhubemptyrestore.kannika.resource.serviceAccountemptyrestore.kannika.resource.parallelismemptyrestore.kannika.resource.maxProducersemptyrestore.kannika.resource.labels{} | The fields of Kannika's Restore resource this installation fixes. |
The round, the page and the log
| Key and default | What it does |
|---|---|
ui.enabledtrue | |
log.levelINFO | |
log.kafkaLevelWARN | |
cadenceSeconds10 | Seconds between rounds, so between restore points. |
topicPrefix_tidemark. | Tidemark's own topics: the canary and the restore's state topic. |
canary.topics.inemptycanary.topics.outempty | A topic named in full instead of following the prefix; empty: <prefix>canary.in, canary.out and restore. |
stateTopicempty |
Metrics and the pod
| Key and default | What it does |
|---|---|
metrics.serviceMonitor.enabledfalse | |
metrics.serviceMonitor.interval30s | |
metrics.serviceMonitor.labels{} | |
metrics.prometheusRule.enabledfalse | |
metrics.prometheusRule.labels{} | |
metrics.dashboard.enabledfalsemetrics.dashboard.labels.grafana_dashboard1metrics.dashboard.annotations{} | A ConfigMap for Grafana's sidecar. |
rbac.createtrue | The chart's Roles: Strimzi's KafkaTopics and KafkaUsers, Kannika's resources. |
serviceAccount.createtrue | |
serviceAccount.nameempty | |
serviceAccount.annotations{} | |
resources.requests.cpu100mresources.requests.memory512Miresources.limits.memory1Gi | Placeholders until #37 has measured numbers. |
podSecurityContext.runAsNonRoottruepodSecurityContext.runAsUser1001 | The pod runs as a user, never as root. |
securityContext.allowPrivilegeEscalationfalsesecurityContext.readOnlyRootFilesystemtruesecurityContext.capabilities.drop["ALL"] | The container: no privilege escalation, a read-only root file system, no capabilities. Tidemark writes nothing to disk. |
commonLabels{} | On every resource and the pod. |
nodeSelector{} | |
tolerations[] | |
affinity{} | |
priorityClassNameempty | |
podLabels{} | |
podAnnotations{} | |
extraEnvs[] | |
extraVolumes[] | |
extraVolumeMounts[] |
Outside Kubernetes
Two variables are for running Tidemark on a laptop and have no key in the chart:
| Variable | What it does |
|---|---|
|
Writes manifests into this directory instead of an object store. Nothing outside the machine can read it, so it is no place for a backup’s restore points. |
|
|
Two variables of the AWS SDK, not Tidemark’s, matter for some S3-compatible stores; in the chart they go into extraEnvs:
| Variable | What it does |
|---|---|
|
|
|
|
Metrics
/metrics serves the Prometheus text format on TIDEMARK_HTTP_PORT.
Every series carries a cluster label with TIDEMARK_CLUSTER_NAME, so one Prometheus can watch several Tidemarks.
The series to alert on is tidemark_restore_point_age_seconds{class="clean"}: how far back a restore would go right now.
The chart’s alerts (metrics.prometheusRule) are on it, and the dashboard helm/tidemark/files/dashboard.json puts it at the top.
Restore point and manifests
| Series | Meaning |
|---|---|
|
Age of the newest written manifest the backup covers: the recovery point. |
|
1 after a start, until the stored manifests have been judged again. While it is 1, an absent restore point means "not known yet", not "none". |
|
Age of the newest manifest written to the store, by the same classes. Says that Tidemark is alive and cutting; says nothing about the backup. |
|
|
|
Manifests confirmed written to the store. |
|
Histogram of the compressed size of a written manifest. |
|
1 when the last manifest’s cut provably splits no transaction, 0 when it does or cannot tell, absent when transactions could not be checked. |
The cut and the canary
| Series | Meaning |
|---|---|
|
The canary floor minus the widest partition interval of the last manifest. |
|
The chain floor divided by the width of the last cut. Above 1, every partition is inside the yardstick. |
|
Histogram of how wide each completed cut came out. |
|
Histogram of canary round trips. |
|
Fastest and slowest canary round trip since the last manifest. The gap between them is the spread across brokers. |
|
Probes by outcome, and failed probes by the exception the client reported. |
|
Time since a probe last measured something. Climbing means every manifest is graded wide. |
|
Canary topics that do not exist. Above zero, no floor is measured. |
|
Replicas and in-sync replicas of each canary topic, fewest across its partitions. |
Rounds
| Series | Meaning |
|---|---|
|
Rounds by outcome. |
|
How long the last round was allowed to take. Above the shortest rung, rounds are being retried with more time. |
|
Partitions the last round asked about. |
|
Partitions of the last manifest by health, |
|
Partitions the last manifest expected and did not get. Above zero, the manifest is not clean. |
|
High watermark minus cut, summed per topic: committed records held back by an open transaction. A backup tool’s own lag metric reads zero here. |
Which partition holds a topic back is on the page, in the manifest’s partition table.
Transactions and consumer offsets
| Series | Meaning |
|---|---|
|
1 once |
|
Transactions the last cut provably fell through. |
|
Transactions and partitions whose side of the cut the round could not tell. Either makes the manifest not atomic. |
|
Transactions that committed during the round with consumer offsets, so a group may stand past records the cut does not hold. |
|
Partitions whose cut is held at the first offset of an open transaction. |
|
Whether, and by how many records, the view of |
|
Undecided records on |
|
Consumer groups in the view. |
|
Group partitions whose committed offset is beyond the cut: a |
|
Records on |
Backup coverage
These need TIDEMARK_COVERAGE_PROVIDER=kannika.
| Series | Meaning |
|---|---|
|
Time since the backup’s index was last read completely. |
|
Partitions of the newest manifest by what the backup holds of them: |
|
Written manifests newer than the restore point, kept to be judged again. |
|
Reads of the index per topic: |
|
Topics whose index could not be read on the last refresh, and how long the longest of them has failed. |
|
Topics in the cut the backup holds nothing of, and topics whose index was not read yet. |
Which topics and partitions the backup does not cover, and how many offsets they are short, is on the page under Restore readiness.
Restore readiness, store and clock
| Series | Meaning |
|---|---|
|
Topics the restore policy ( |
|
Groups an ACL names that have no offsets in the newest manifest. A restore starts them at their |
|
Writes to the manifest store by outcome. |
|
Manifests waiting for the store. They are not restore points yet. |
|
How long the store has not taken a manifest. 0 while writes succeed. |
|
Manifests dropped because the buffer was full. |
|
Steps of the wall clock of a second or more, the size of the last one, and how far the wall clock stands from the clock manifests are filed under. |
|
Restore mode only: 1 once the state topic has been read back. |
Alerts
The chart’s metrics.prometheusRule needs the Prometheus Operator and a coverage provider.
| Alert | Severity | Fires when |
|---|---|---|
|
warning |
the clean restore point is older than half the manifest retention, for 15 minutes |
|
critical |
it is older than four fifths of the retention, for 5 minutes |
|
critical |
Tidemark has judged the stored manifests and none is covered, for 15 minutes |
HTTP endpoints
All on TIDEMARK_HTTP_PORT.
Without that variable there is no HTTP server at all.
| Path | Answers |
|---|---|
|
200 while the process answers. The liveness and startup probe. |
|
200 once the consumer offsets view has caught up; 503 with the reason before that, also while the cluster does not answer at start. The readiness probe. It routes nothing: the Service publishes the pod while it is not ready. |
|
200 when a round was published and a manifest confirmed in the store within the last three cadences; 503 with the reason otherwise. Point monitoring here, not at the probes. |
|
The series above, in the Prometheus text format. |
With TIDEMARK_UI=true, and always in restore mode, the page and what it reads:
| Path | Answers |
|---|---|
|
The page. |
|
What this service offers the page. |
|
The newest round, the store and its buffer, the canary, the coverage provider’s last result and the runtime checks. Uncovered partitions are counted per topic, not listed. From memory. |
|
The recent rounds. From memory. |
|
One manifest from the store, under this cluster’s prefix. |
|
The coverage verdict stored beside that manifest; 404 when it has none. |
|
With a coverage provider: every partition of the newest written manifest the backup does not cover or has not read, by topic, without a cap. |
|
Restore mode only: what the guided restore reads from the target and the store, and the decisions it records. They exist for the page; During the disaster uses them. |
The manifest
One JSON object per round, gzip-compressed, at
tidemark/<cluster>/manifests/<yyyy-MM-dd-HH-mm-ss-SSS>-round-<n>.json.gz
The stamp is UTC and fixed-width, so the newest manifest is the last key of a listing.
Coverage verdicts go beside the manifests, under tidemark/<cluster>/coverage/.
A restore needs this one file and no running Tidemark. Offsets are exclusive everywhere, and maps by partition are keyed by the partition number as a string. The fields an operator reads:
| Field | Meaning |
|---|---|
|
1. A reader refuses a version it does not know. |
|
When the round went out. For humans; nothing orders manifests by it. |
|
Every partition clean and none missing. |
|
No partition missing. |
|
No transaction split by the cut, proven. A restore takes a manifest that is clean, complete and atomic unless a human chooses otherwise. |
|
Restore every record strictly below this offset. |
|
The partition’s own measured interval, and whether it was below the canary chain floor ( |
|
The widest partition interval: how much time the cut spans at worst. |
|
The fastest canary chain the partitions were judged against. |
|
Which rung of the deadline ladder the round settled on. 0 is the tightest. |
|
Partitions the round could not place, with the reason for each. |
|
Group, topic, partition: the offset the group had committed, in the original cluster’s numbering. |
|
Groups a restore cannot set as they are: beyond the cut, or below the log start. Reported for a human, never clamped. |
|
|
|
Beside the cut, for diagnosis. A high watermark that stays above the cut is an open or abandoned transaction. |
|
Every topic’s definition (partitions, replication factor, configuration; |
|
The topic IDs of this incarnation of the cluster. |
Glossary
| Term | Meaning |
|---|---|
manifest |
What a round writes: the cut per partition, the group offsets, the topic definitions and ACLs, and how good the cut is. |
cut, |
Per partition, the first offset that no longer belongs to the restore point. Everything below it does. |
consistent cut |
A cut with no effect inside it whose cause is outside. A cause without its effect is harmless: the application redoes it. |
round |
One pass of Tidemark: read groups, transactions and offsets, judge the cut, write a manifest. Every |
canary |
Tidemark’s own probe: a record written to the canary-in topic, read back, written to canary-out, and timed until it is visible there. |
chain floor |
The fastest canary chain in the window, shown as Baseline on the page. The yardstick for every partition: no real application chain is faster. |
cut width |
The widest partition interval in a cut. Width on the page. |
headroom |
The chain floor divided by the cut width. Above 1, the cut is narrower than any chain. |
clean / wide |
A partition whose interval was below the chain floor / reached it. A wide partition may hold an effect without its cause. |
complete / incomplete |
Every partition placed / some missing, with the reason. |
atomic |
No transaction is split by the cut, proven. |
tx undecided |
A transaction whose side of the cut the round could not tell. |
holding the cut |
An open transaction keeps the cut on that partition at its first offset. |
deadline tier |
The rung of the deadline ladder a round settled on. 0 is the tightest and the healthy case. |
Last Stable Offset |
The offset below which every transaction on a partition is decided. The cut sits on it, because a backup reading |
coverage |
Whether the backup holds every record below a manifest’s cut. Tidemark reads it from Kannika’s index. |
restore point |
A manifest a restore can start from. The Restore point tile on the page shows the newest one the store has confirmed. |
recovery point |
The newest written manifest the backup also covers, |
backup lagging |
The newest manifest is not covered by the backup yet. |
cut − 1 |
On the page, the target of a partition that probably ends on a commit marker. A marker is no record and is not restored, so the partition counts as restored one offset below its cut. |
excluded topic |
A topic the restore policy says |
incarnation |
One life of a cluster, told apart by its topic IDs. A restored cluster is a new incarnation and writes to a new prefix. |
restore mode |
|
state topic |
|
restore check |
The guided restore’s verdict on a candidate manifest: passes, with warnings, falls short, or unknown. |
newest that passes |
The newest candidate that passes every check. |
|
The header Kannika gives every restored record, holding its offset in the original cluster. |
release |
The decision that an application may reach the target. Its ACLs follow. |
ok / warn / fail / note |
On the page: met / read the hint / blocked or violated / for information only. |