Skip to content

[feature](alter colocate group) Support alter colocate group replica allocation - #23320

Merged
dataroaring merged 7 commits into
apache:masterfrom
yujun777:feat-alter-colocate-group
Sep 26, 2023
Merged

[feature](alter colocate group) Support alter colocate group replica allocation#23320
dataroaring merged 7 commits into
apache:masterfrom
yujun777:feat-alter-colocate-group

Conversation

@yujun777

@yujun777yujun777 commented Aug 22, 2023

Copy link
Copy Markdown
Contributor

Proposed changes

Support alter colocate group's replica allocation.

  1. SQL command: ALTER COLOCATE GROUP [database.]group SET ("replication_allocation" = "...").

  2. Colocate group belongs to a database, but if its name starts with __global__, then it's a global group, and does not belong to any database;

  3. After alter group schema's replica allocations, also modify all the group's related tables's propertities default.replication_allocation and dynamic.replication_allocation, also modify all the table's existing partitions's replica allocations;

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@yujun777

Copy link
Copy Markdown
ContributorAuthor

run buildall

@yujun777
yujun777force-pushed the feat-alter-colocate-group branch from 4c62368 to a8a6839CompareSeptember 4, 2023 00:41
@yujun777
yujun777force-pushed the feat-alter-colocate-group branch from af0935e to 2b535cdCompareSeptember 23, 2023 02:27
@yujun777

Copy link
Copy Markdown
ContributorAuthor

run buildall

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.82 seconds
stream load tsv: 561 seconds loaded 74807831229 Bytes, about 127 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.6 seconds inserted 10000000 Rows, about 349K ops/s
storage size: 17162009945 Bytes

@yujun777

Copy link
Copy Markdown
ContributorAuthor

run buildall

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.71 seconds
stream load tsv: 561 seconds loaded 74807831229 Bytes, about 127 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.6 seconds inserted 10000000 Rows, about 349K ops/s
storage size: 17161897242 Bytes

@yujun777
yujun777force-pushed the feat-alter-colocate-group branch from 1b76505 to e42714aCompareSeptember 23, 2023 15:27
@yujun777

Copy link
Copy Markdown
ContributorAuthor

run buildall

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.52 seconds
stream load tsv: 557 seconds loaded 74807831229 Bytes, about 128 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size: 17162437241 Bytes

@dataroaring
dataroaringforce-pushed the feat-alter-colocate-group branch from e42714a to d2ba0a6CompareSeptember 25, 2023 03:57
@dataroaring

Copy link
Copy Markdown
Contributor

run buildall

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.21 seconds
stream load tsv: 555 seconds loaded 74807831229 Bytes, about 128 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.6 seconds inserted 10000000 Rows, about 349K ops/s
storage size: 17162243833 Bytes

@yujun777
yujun777force-pushed the feat-alter-colocate-group branch from d2ba0a6 to 682dbb5CompareSeptember 26, 2023 07:58
@yujun777

Copy link
Copy Markdown
ContributorAuthor

run buildall

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.33 seconds
stream load tsv: 555 seconds loaded 74807831229 Bytes, about 128 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size: 17161847329 Bytes

@dataroaringdataroaring left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Sep 26, 2023
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@dataroaring
dataroaring merged commit e9eaf49 into apache:masterSep 26, 2023
vinlee19 pushed a commit to vinlee19/doris that referenced this pull request Oct 7, 2023
xiaokang added a commit that referenced this pull request Oct 23, 2023
@xiaokangxiaokang added dev/2.0.3 kind/meta-version-change Categorizes issue or PR as related to changing meta version and removed dev/2.0.3-merged labels Oct 23, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.kind/meta-version-changeCategorizes issue or PR as related to changing meta versionmerge_conflictreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@yujun777@doris-robot@dataroaring@kaijchen@xiaokang@wm1581066