Skip to content

[workflow] Call scanWorkflow concurrently#8272

Merged
ajm188 merged 1 commit intovitessio:mainfrom
tinyspeck:am_vtctld_concurrent_scanworkflow
Jun 15, 2021
Merged

[workflow] Call scanWorkflow concurrently#8272
ajm188 merged 1 commit intovitessio:mainfrom
tinyspeck:am_vtctld_concurrent_scanworkflow

Conversation

@ajm188
Copy link
Contributor

@ajm188 ajm188 commented Jun 7, 2021

Description

scanWorkflow involves a remote call to a tablet to get the
copy_state rows for the workflow stream associated with that tablet.
Calling this concurrently gives us a noticeable speedup, especially on
workflows involving many streams.

Signed-off-by: Andrew Mason amason@slack-corp.com

Related Issue(s)

Checklist

  • Tests were added or are not required -- N/A
  • Documentation was added or is not required

Deployment Notes

@ajm188 ajm188 added Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Cluster management labels Jun 7, 2021
@ajm188 ajm188 requested review from doeg and rafael June 7, 2021 00:47
@ajm188 ajm188 requested a review from deepthi as a code owner June 7, 2021 00:47
Copy link
Contributor

@doeg doeg left a comment

Choose a reason for hiding this comment

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

This looks good to me!

`scanWorkflow` involves a remote call to a tablet to get the
`copy_state` rows for the workflow stream associated with that tablet.
Calling this concurrently gives us a noticeable speedup, especially on
workflows involving many streams.

Signed-off-by: Andrew Mason <amason@slack-corp.com>
@ajm188 ajm188 force-pushed the am_vtctld_concurrent_scanworkflow branch from 0f66a5c to b31abf9 Compare June 15, 2021 20:35
@ajm188 ajm188 merged commit a3c34a3 into vitessio:main Jun 15, 2021
@ajm188 ajm188 deleted the am_vtctld_concurrent_scanworkflow branch June 15, 2021 22:05
ajm188 pushed a commit to tinyspeck/vitess that referenced this pull request Jun 15, 2021
…scanworkflow

[workflow] Call `scanWorkflow` concurrently

Signed-off-by: Andrew Mason <amason@slack-corp.com>
ajm188 pushed a commit to tinyspeck/vitess that referenced this pull request Jul 23, 2021
…scanworkflow

[workflow] Call `scanWorkflow` concurrently

Signed-off-by: Andrew Mason <amason@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Cluster management Type: Enhancement Logical improvement (somewhere between a bug and feature)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VtctldServer] in GetWorkflows, getCopyStates makes a remote VReplicationExec call in a loop, serially. we should make that happen concurrently.

2 participants