Skip to content

Fail query with large taskUpdate size#13584

Merged
wenleix merged 1 commit intoprestodb:masterfrom
NikhilCollooru:updateRequestSize
Oct 24, 2019
Merged

Fail query with large taskUpdate size#13584
wenleix merged 1 commit intoprestodb:masterfrom
NikhilCollooru:updateRequestSize

Conversation

@NikhilCollooru
Copy link
Contributor

@NikhilCollooru NikhilCollooru commented Oct 22, 2019

The max taskUpdate size can be set using a new parameter
experimental.internal-communication.max-task-update-size.
Also add code changes to monitor the size of taskUpdates
that do not have the plan info. For this we sample
1 in 100 to avoid concurrency problems.

== RELEASE NOTES ==

General Changes
* Add configuration property ``experimental.internal-communication.max-task-update-size`` to limit the size of the taskUpdate.

Copy link
Contributor

@wenleix wenleix left a comment

Choose a reason for hiding this comment

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

Generally looks good me. I think Travis is complaining about you are not adding the new config into TestTaskManagerConfig :)

@wenleix
Copy link
Contributor

wenleix commented Oct 22, 2019

An not-so-related note from a shadow production test:

Status fetch: 917M call
Info fetch: 140M call
Send update: 103M call
Plan Serialize: 5.2M times

The ratio can change depends on workload, but the magnitude should be more or less similar.

If we normalize to have 1 plan serialize:

  • ~20 send update call
  • ~27 info fetch call
  • ~176 status fetch call

@NikhilCollooru NikhilCollooru changed the title Monitor size of taskUpdate's without plan Fail query with large taskUpdate size Oct 22, 2019
Copy link
Contributor

@wenleix wenleix left a comment

Choose a reason for hiding this comment

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

LGTM % nits.

Also note new added configuration property always requires release notes. See an example in https://prestodb.github.io/docs/current/release/release-0.225.html :

Add configuration property experimental.max-total-running-task-count and experimental.max-query-running-task-count to limit number of running tasks ......

@NikhilCollooru NikhilCollooru force-pushed the updateRequestSize branch 3 times, most recently from 11e4c04 to 606a58e Compare October 24, 2019 04:05
The max taskUpdate size can be set using a new parameter
experimental.internal-communication.max-task-update-size.
Also add changes to monitor the size of taskUpdates
that do not have the plan info. For this we sample
1 in 100 to avoid concurrency problems.
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.

3 participants