You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2020/12/07 03:43:00 UTC
[jira] [Commented] (YUNIKORN-462) Streamline core to shim update on
allocation change
[ https://issues.apache.org/jira/browse/YUNIKORN-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17244934#comment-17244934 ]
Wilfred Spiegelenburg commented on YUNIKORN-462:
------------------------------------------------
This message *failed to sync shim* also looks like it is caused by the extra call back:
{code:java}
2020-12-07T03:04:56.565768Z stdout F 2020-12-07T03:04:56.562Z INFO general/general.go:245 delete pod {"appType": "general", "namespace": "devnntw3", "podName": "sleepjob", "podUID": "f54ba458-3838-11eb-a194-0242ac120003"}
2020-12-07T03:04:56.5658425Z stdout F 2020-12-07T03:04:56.562Z INFO cache/task.go:372 releasing allocations {"numOfAsksToRelease": 0, "numOfAllocationsToRelease": 1}
2020-12-07T03:04:56.5658703Z stdout F 2020-12-07T03:04:56.564Z ERROR scheduler/context.go:722 failed to sync shim {"error": "no corresponding pod sleepjob in pods of node yk8s-worker"}
2020-12-07T03:04:56.5658868Z stdout F github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*ClusterContext).processAllocationReleases
2020-12-07T03:04:56.5659795Z stdout F /Users/wilfred/go/pkg/mod/github.com/apache/incubator-yunikorn-core@v0.0.0-20201202015707-9f0f1ceb479b/pkg/scheduler/context.go:722
2020-12-07T03:04:56.5659995Z stdout F github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*ClusterContext).processAllocations
2020-12-07T03:04:56.5660282Z stdout F /Users/wilfred/go/pkg/mod/github.com/apache/incubator-yunikorn-core@v0.0.0-20201202015707-9f0f1ceb479b/pkg/scheduler/context.go:621
2020-12-07T03:04:56.5660531Z stdout F github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*ClusterContext).processRMUpdateEvent
2020-12-07T03:04:56.5660718Z stdout F /Users/wilfred/go/pkg/mod/github.com/apache/incubator-yunikorn-core@v0.0.0-20201202015707-9f0f1ceb479b/pkg/scheduler/context.go:229
2020-12-07T03:04:56.5660889Z stdout F github.com/apache/incubator-yunikorn-core/pkg/scheduler.(*Scheduler).handleRMEvent
2020-12-07T03:04:56.5670236Z stdout F /Users/wilfred/go/pkg/mod/github.com/apache/incubator-yunikorn-core@v0.0.0-20201202015707-9f0f1ceb479b/pkg/scheduler/scheduler.go:112 {code}
The pod was deleted by the shim first and we should thus be able to expect that the caches are updated, even before the event is sent to the core and thus before the call back can be made.
> Streamline core to shim update on allocation change
> ---------------------------------------------------
>
> Key: YUNIKORN-462
> URL: https://issues.apache.org/jira/browse/YUNIKORN-462
> Project: Apache YuniKorn
> Issue Type: Improvement
> Components: core - scheduler, shim - kubernetes
> Reporter: Wilfred Spiegelenburg
> Priority: Major
>
> Currently in the scheduler we have two updates that get send to the shim when an allocation is added or released:
> * event to shim RM event handler to allocate
> * reconciler plugin to update the shim caches
> Before YUNIKORN-317 one update was made in the cace the other in the scheduler. Now they are both in the scheduler in quick succession. The cache update in the shim is needed to make sure that the predicates are seeing the correct info. The event does the real bind etc of the allocation on the node.
> We should be able to fold the two calls into one call. However this requires changes on both sides and might even impact the SI as it will likely become a synced event call.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org