-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Improve bin packing concept page #50664
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
base: main
Are you sure you want to change the base?
Improve bin packing concept page #50664
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
85f0c1d
to
7178587
Compare
/hold Previous PR was held. |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! Just a couple of minor points.
@@ -15,7 +16,7 @@ scoring strategies that support the bin packing of resources: `MostAllocated` an | |||
|
|||
<!-- body --> | |||
|
|||
## Enabling bin packing using MostAllocated strategy | |||
## Bin packing using MostAllocated strategy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reflecting on an old problem (which I am partly to blame), "bin packing" is a misleading term here. This is really a "prefer MostAllocated" strategy. Kubernetes scheduler in its current form is not capable of doing actual bin packing, mainly because it schedules one pod at a time.
Now that we are refining these documents, should we remove "bin packing"?
```math | ||
\begin{align} | ||
{ \text{intel.com/foo} } &\Longrightarrow { resourceScoringFunction((2 + 1), 4)} \tag*{} \\ | ||
&= { 100 - ((4 - 3) \times { 100 \over 4 } )} \tag*{} \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would write this as:
&= { 100 - ({(4 - 3) \over 4} \times 100 )} \tag*{} \
mathematically the same, but a bit easier to comprehend. The same for the other equations below.
Improve the concept explanation of bin packing
ℹ️ This was originally PR #49795; please also see the review history on that PR.
To make the idea work, this PR changes the styling for formulae on narrow viewports, so that they gain auto scroll bars.
Original vs preview