Skip to content

Refactor LoadTestAction for usability - #3192

Open
weiminyu wants to merge 1 commit into
google:masterfrom
weiminyu:load-test
Open

Refactor LoadTestAction for usability#3192
weiminyu wants to merge 1 commit into
google:masterfrom
weiminyu:load-test

Conversation

@weiminyu

@weiminyu weiminyu commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Calculates the delay seconds automatically. This value helps ensure that all EPP requests are enqueued before the scheduled test start time. Since queue insertion is much slower than dispatch, this is essential to maintain a stable QPS rate.

Also parallelizes queue insertion using a thread pool. This reduces the delay for enqueuing the requests.

BUG=http://b/533414332


This change is Reviewable

Comment on lines +322 to +324
var _ =
executorService.submit(
() -> cloudTasksUtils.enqueue(getQueueName(index % NUM_QUEUES), chunks.get(index)));

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

var _ ... is preferred pattern for suppressing CheckReturnValue rule.

@weiminyu weiminyu left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@weiminyu resolved 1 discussion.
Reviewable status: 0 of 2 files reviewed, all discussions resolved.

Comment thread core/src/main/java/google/registry/loadtest/LoadTestAction.java Fixed
Calculates the delay seconds automatically. This value helps ensure that
all EPP requests are enqueued before the scheduled test start time.
Since queue insertion is much slower than dispatch, this is essential to
maintain a stable QPS rate.

Also parallelizes queue insertion using a thread pool. This reduces the
delay for enqueuing the requests.

BUG=http://b/533414332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants