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

Also consider memory usage in adaptive parallelism #1759

Merged
merged 8 commits into from
Oct 17, 2024

Conversation

makalaaneesh
Copy link
Collaborator

@makalaaneesh makalaaneesh commented Oct 16, 2024

Also consider memory load while adapting parallelism.
Memory load is considered to be high in the following scenarios

  • Available memory of any node is less than 10% (MIN_AVAILABLE_MEMORY_THRESHOLD) of it's total memory
  • tserver root memory consumption of any node has breached it's soft limit.

When memory load is high, we decrease the parallelism by 1 (similar to when cpu load is high)

Copy link
Collaborator

@sanyamsinghal sanyamsinghal left a comment

Choose a reason for hiding this comment

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

LGTM, with minor comments.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Any of the metadata scripts are not modified so the tar should remain unchanged.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Got committed because of the commit hook :) I've merged main and re-generated the tar, so should be fine

Comment on lines +34 to +42
memAvailable1 int
memTotal1 int
tserverRootMemConsumption1 int
tserverRootMemSoftLimit1 int

memAvailable2 int
memTotal2 int
tserverRootMemConsumption2 int
tserverRootMemSoftLimit2 int
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q. Is all this info also available in the dbside function you have implemented?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, yugabyte/yugabyte-db@872b59e .
Also added a comment in code with this sample output

Copy link
Contributor

@priyanshi-yb priyanshi-yb left a comment

Choose a reason for hiding this comment

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

LGTM

yb-voyager/src/adaptiveparallelism/adaptive_parallelism.go Outdated Show resolved Hide resolved
@sanyamsinghal
Copy link
Collaborator

@makalaaneesh please make the final commit message descriptive enough, before merging.

@makalaaneesh makalaaneesh merged commit 9e4e7a3 into main Oct 17, 2024
16 checks passed
@makalaaneesh makalaaneesh deleted the aneesh/adaptive-parallelism-memory branch October 17, 2024 09:23
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