-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[db-sync] Add the d_b_workspace_cluster
table to sync config
#14136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/hold Depends on: #14134 (comment) Also, did you announce the rollout to team workspace? It should not affect them. But they should be aware of the impact, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There's a hold from @geropl around follow-up.
Yes, that was done here (internal Slack). |
We just realized that before merging this we need to switch the table to the "soft deletion" pattern. |
e3813e3
to
f1a4a86
Compare
We should be able to land this once #14351 is deployed. |
name: "d_b_workspace_cluster", | ||
primaryKeys: ["name", "applicationCluster"], | ||
timeColumn: "_lastModified", | ||
deletionColumn: "deleted", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/unhold |
Description
Add the
d_b_workspace_cluster
table to thedb-sync
config to start syncing the table.Context
As part of #9198 we want to start syncing the `d_b_workspace_cluster` table with `db-sync`.Currently, the table differs between US and EU regions because each table contains only the data relevant to that region. For example, in the EU table, the
eu70
workspace cluster is marked asavailable
and theus70
cluster iscordoned
. In the US clustereu70
iscordoned
andus70
isavailable
.In order to sync the table we need to get to a point where there is no difference in the data in the table between EU and US regions.
To do that we will introduce a new field in the table called
applicationCluster
which records the name of the application cluster to which the record belongs. Thus, for each workspace cluster there will be two rows in Gitpod SaaS:Effectively the new
applicationCluster
column gives the table an extra dimension so that we can combine both tables (EU and US) into one.#13722 added the column to the table and made
gpctl
fill the value whengpctl register
ing a new workspace cluster. The value is taken from theGITPOD_INSTALLATION_SHORTNAME
environment variable inws-manager-bridge
.Related Issue(s)
Part of #9198 and #13800
How to test
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide