Skip to content

Conversation

@hongchaodeng
Copy link
Contributor

This is to update scheduler.md to make it easier for new dev to understand:

  • extend "exploring the code" section and put it before "scheduling algorithm"
  • update the scheduling algorithm diagram. The previous one is really confusing.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 12, 2016
@hongchaodeng
Copy link
Contributor Author

hongchaodeng commented Dec 12, 2016

@timothysc @davidopp
As a side note, docs are moved here.
We need a way to forward docs/devel/scheduler.md in main repo to here.

@davidopp
Copy link
Contributor

Yes, please ask the contribex SIG when they are going to do that, as they are responsible for the move.

@hongchaodeng
Copy link
Contributor Author

hongchaodeng commented Dec 12, 2016

Assigning @timothysc @davidopp as we discussed in 1.6 code health plan.

@fabiand
Copy link

fabiand commented Dec 12, 2016

👍 as a newbie this documentation update looks nice to me. Especially the new ascii art should get a place on my wall. My 2ct.

@timothysc
Copy link
Contributor

I'll assign @jayunit100 b/c he last updated the doc.

@timothysc timothysc assigned jayunit100 and unassigned timothysc Dec 12, 2016
@jayunit100
Copy link
Member

thanks @hongchaodeng couple minor comments, otherwise lg !

@hongchaodeng
Copy link
Contributor Author

@jayunit100
Didn't see any comments :)

@jayunit100
Copy link
Member

just added

indicating where the Pod should be scheduled.
The Kubernetes scheduler runs as a process alongside the other master components such as the API server.
Its interface to the API server is to watch for Pods with an empty PodSpec.NodeName,
and for each Pod, it posts a Binding indicating where the Pod should be scheduled.
Copy link
Member

Choose a reason for hiding this comment

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

binding

- [pkg/scheduler/scheduler.go](http://releases.k8s.io/HEAD/pkg/scheduler/scheduler.go):
This is the scheduler framework that handles stuff (e.g. binding) beyond the scheduling algorithm.
- [pkg/scheduler/generic_scheduler.go](http://releases.k8s.io/HEAD/pkg/scheduler/generic_scheduler.go):
This is the scheduling algorithm that basically assigns nodes for pods.
Copy link
Member

Choose a reason for hiding this comment

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

The scheduling algorithm that assigns nodes for pods.

|
v
+-------------------+-------------------------+
| left nodes: |
Copy link
Member

Choose a reason for hiding this comment

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

change "left nodes" to "remaining nodes" ..

for Pods with an empty PodSpec.NodeName, and for each Pod, it posts a Binding
indicating where the Pod should be scheduled.
The Kubernetes scheduler runs as a process alongside the other master components such as the API server.
Its interface to the API server is to watch for Pods with an empty PodSpec.NodeName,
Copy link
Member

Choose a reason for hiding this comment

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

it's (not your fault, it existed before :) but might as well fix now right :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you read again? It should be "Its interface to the ... is to".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jayunit100
I see no problem in this sentence:

"Its interface to the API server is to watch..."

Can you clarify what it should be?

@jayunit100
Copy link
Member

@hongchaodeng (1) fix the one other Its comment and (2) rebase to one commit, then lets and thanks agin

@hongchaodeng
Copy link
Contributor Author

Thanks @jayunit100 for review.
(1) please help answer my question.
(2) done

@jayunit100
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 13, 2016
@davidopp davidopp assigned wojtek-t and unassigned davidopp Dec 13, 2016
@davidopp
Copy link
Contributor

@wojtek-t can you please review this?

@hongchaodeng
Copy link
Contributor Author

Thanks @jayunit100 @davidopp .
I will merge it by tomorrow if no further question.

@hongchaodeng hongchaodeng merged commit e3871da into kubernetes:master Dec 14, 2016
@hongchaodeng hongchaodeng deleted the s branch December 14, 2016 16:34
rmohr pushed a commit to rmohr/community that referenced this pull request May 4, 2022
* VM memory dump design proposal

Signed-off-by: Shelly Kagan <[email protected]>

* design review fixes

Signed-off-by: Shelly Kagan <[email protected]>

* Add more details on the subresource command

Signed-off-by: Shelly Kagan <[email protected]>

* Add vm yaml with memory dump information

Signed-off-by: Shelly Kagan <[email protected]>

* other review changes

Signed-off-by: Shelly Kagan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants