forked from antrea-io/theia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add clusterUUID to flow table (antrea-io#108)
To support multi-cluster, we add a new column "clusterUUID" as the cluster identifier to flow table. This PR makes the corresponding changes in the ClickHouse dataschema and related tests. We found the ClickHouse init process is likely to fail due to timeout, so we increase the env value of CLICKHOUSE_INIT_TIMEOUT from 12s to 60s, as suggested by Altinity documentation: https://kb.altinity.com/altinity-kb-kubernetes/altinity-kb-possible-issues-with-running-clickhouse-in-k8s/#clickhouse-init-process-failed Signed-off-by: heanlan <hanlan@vmware.com>
- Loading branch information
Showing
7 changed files
with
78 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
build/charts/theia/provisioning/datasources/migrators/downgrade/0-3-0_0-2-0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--Alter table to drop new columns | ||
ALTER TABLE flows | ||
DROP clusterUUID String; | ||
ALTER TABLE flows_local | ||
DROP clusterUUID String; |
5 changes: 5 additions & 0 deletions
5
build/charts/theia/provisioning/datasources/migrators/upgrade/0-2-0_0-3-0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--Alter table to add new columns | ||
ALTER TABLE flows | ||
ADD COLUMN clusterUUID String; | ||
ALTER TABLE flows_local | ||
ADD COLUMN clusterUUID String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters