Skip to content
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

c2c: increase c2c roachtest workload flexibility #95191

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

msbutler
Copy link
Collaborator

Previously in c2c roachtests, the foreground workload on the src cluster would run for a predefined amount of time, based on the expected initial scan time. But, if this estimated initial scan time wasn't accurate, the roachtest would not properly simulate c2c customer workload. E.g. if the initial scan actually took much longer than expected, the workload would finish before the initial scan!

This patch removes the need to specify a duration for the src cluster workload. Instead, the goroutine running the workload will get cancelled at cutover time, determined by the replicationTestSpec.additionalDuration field, which specifies how long the workload should after the initial scan completes.

This patch also adds additional logging which provides instructions for opening a sql session to the tenant and opening a tenant's dbconsole.

Informs #89176

Release note: None

@msbutler msbutler self-assigned this Jan 13, 2023
@msbutler msbutler requested a review from a team as a code owner January 13, 2023 02:14
@msbutler msbutler requested review from srosenberg and renatolabs and removed request for a team January 13, 2023 02:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@renatolabs renatolabs left a comment

Choose a reason for hiding this comment

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

👍

pkg/cmd/roachtest/tests/cluster_to_cluster.go Outdated Show resolved Hide resolved
pkg/cmd/roachtest/tests/cluster_to_cluster.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me.

I suppose an alternative would be assert that the initial scan completed in under some given amount of time.

@msbutler
Copy link
Collaborator Author

TFTR!

bors r=stevendanna, renatolabs

@craig
Copy link
Contributor

craig bot commented Jan 19, 2023

Merge conflict.

Previously in c2c roachtests, the foreground workload on the src cluster would
run for a predefined amount of time, based on the expected initial scan time.
But, if this estimated initial scan time wasn't accurate, the roachtest would
not properly simulate c2c customer workload. E.g. if the initial scan actually
took much longer than expected, the workload would finish before the initial
scan!

This patch removes the need to specify a duration for the src cluster workload.
Instead, the goroutine running the workload will get cancelled at cutover time,
determined by the `replicationTestSpec.additionalDuration` field, which
specifies how long the workload should after the initial scan completes.

This patch also adds additional logging which provides instructions for opening
a sql session to the tenant and opening a tenant's dbconsole.

Informs cockroachdb#89176

Release note: None
@msbutler
Copy link
Collaborator Author

bors r=stevendanna, renatolabs

@craig
Copy link
Contributor

craig bot commented Jan 19, 2023

Build succeeded:

@craig craig bot merged commit 38407a0 into cockroachdb:master Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants