Skip to content

feat(services): store cloudnet service metadata in the segments table - #142

Merged
TheMeinerLP merged 1 commit into
mainfrom
feat/lake-segment-cloudnet-fields
Nov 18, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
feat/lake-segment-cloudnet-fields

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

Since the plugin started reporting CloudNet metadata, every backend connection knows which
CloudNet task, groups, node and stage it went to. The lake did not keep any of it. A dashboard
asking "how much traffic went to staging" or "which players are on the Lobby task" had nothing
to filter on, and the only way to tell staging from production was to guess from server names.

This change keeps those five fields in the Iceberg segments table, next to the backend server
and game context that already describe a segment. Dashboards can now split staging from
production and group by task or node. Segments from plugins that predate the fields keep empty
values, so old and new data can be queried side by side. Postgres is unchanged.

The table has not been created in production yet, so the new columns are part of its first
layout and no schema evolution is needed. The lake layout docs describe the columns.

The plugin reports which CloudNet task, groups, node and stage a backend
connection went to. The lake dropped these fields, so dashboards could not
split staging from production or filter by task.

The Iceberg segments table now keeps them next to backend_server. Segments
from plugins that predate the fields are stored with empty values.
@TheMeinerLP
TheMeinerLP merged commit f278c77 into main Nov 18, 2026
13 checks passed
@TheMeinerLP
TheMeinerLP deleted the feat/lake-segment-cloudnet-fields branch November 18, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant