Skip to content

Fix split cacheable setting for affinity scheduling#15464

Merged
shixuan-fan merged 1 commit intoprestodb:masterfrom
kewang1024:fix_split_cachable_setting_for_affinity_scheduling
Nov 20, 2020
Merged

Fix split cacheable setting for affinity scheduling#15464
shixuan-fan merged 1 commit intoprestodb:masterfrom
kewang1024:fix_split_cachable_setting_for_affinity_scheduling

Conversation

@kewang1024
Copy link
Collaborator

@kewang1024 kewang1024 commented Nov 20, 2020

As of now, when we schedule a scan for bucketed table which then joins with a remote,
we don't set the cacheable to true even if we enable affinity scheduling, this PR introduce the support for it

== RELEASE NOTES ==

General Changes
* Add support in affinity scheduler to enable cache for bucketed table scan that has remote source

As of now, when we schedule a scan for bucketed table which then joins with a remote,
we don't set the cacheable to true even if we enable affinity scheduling
Copy link
Contributor

@shixuan-fan shixuan-fan left a comment

Choose a reason for hiding this comment

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

Do we want to mention this in release note?

switch (nodeSelectionStrategy) {
case HARD_AFFINITY:
bucketToNode = getFixedMapping(connectorBucketNodeMap);
cacheable = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

I might miss something, but why is hard affinity not cacheable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hard affinity is for connectors that use its own storage like Raptor, we don't want to do cache for them

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, sounds good. I thought hard affinity could also apply for disaggregated storage (though should never be more preferable than soft affinity), but let's not worry about it for now.

@shixuan-fan shixuan-fan merged commit 817d50a into prestodb:master Nov 20, 2020
@kewang1024 kewang1024 deleted the fix_split_cachable_setting_for_affinity_scheduling branch November 20, 2020 20:09
@caithagoras caithagoras mentioned this pull request Dec 4, 2020
1 task
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