Skip to content

Conversation

@zeroalphat
Copy link
Contributor

@zeroalphat zeroalphat commented Jun 4, 2025

fix #13

@zeroalphat zeroalphat self-assigned this Jul 30, 2025
@zeroalphat zeroalphat added the enhancement New feature or request label Sep 12, 2025
Signed-off-by: zeroalphat <taichi-takemura@cybozu.co.jp>
@zeroalphat zeroalphat marked this pull request as ready for review September 16, 2025 01:49
@zeroalphat zeroalphat requested a review from masa213f September 16, 2025 01:49
Comment on lines 246 to 248
if zone == "" {
zone = constants.NoZoneName
}

Choose a reason for hiding this comment

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

Is it necessary to use constants.NoZoneName?
It's no problem to leave the zone as an empty string.

Using constants.NoZoneName, it just creates unnecessary constraints.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This process wasn't really necessary, so I removed it.

if zone == "" {
zone = constants.NoZoneName
}
zoneScore := constants.MaxZoneScore - zoneCount[zone]

Choose a reason for hiding this comment

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

It's fine as is, but constants.MaxZoneScore may have no meaning.
This constant does not affect the sort order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was using the MaxZoneScore variable to invert the score. However, there wasn't much point in inverting it, so I removed the variable and the related logic.

Signed-off-by: zeroalphat <taichi-takemura@cybozu.co.jp>
@zeroalphat zeroalphat requested a review from masa213f September 18, 2025 00:45
Copy link

@masa213f masa213f left a comment

Choose a reason for hiding this comment

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

LGTM

@zeroalphat zeroalphat merged commit 39fb98a into main Sep 18, 2025
5 checks passed
@zeroalphat zeroalphat deleted the improve-scheduling branch September 18, 2025 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Failure Domain Awareness in ImagePrefetch Controller Node Selection

3 participants