This is an automated email from the ASF dual-hosted git repository. yuchaoran pushed a commit to branch branch-1.3.0 in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
commit 2c2f84a32e730d22cf977561f68b17d54ed1eabc Author: Chaoran Yu <[email protected]> AuthorDate: Wed Jul 19 23:18:46 2023 -0700 Cherry-picked internal changes on v1.3.0 --- pkg/plugin/predicates/predicate_manager.go | 37 +++++++++++++++++++++--- rio.yml | 46 ++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 4 deletions(-) diff --git a/pkg/plugin/predicates/predicate_manager.go b/pkg/plugin/predicates/predicate_manager.go index a342bd0f..575aeb13 100644 --- a/pkg/plugin/predicates/predicate_manager.go +++ b/pkg/plugin/predicates/predicate_manager.go @@ -21,6 +21,11 @@ package predicates import ( "context" "fmt" + "k8s.io/kubernetes/pkg/scheduler/framework/plugins/noderesources" + "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodevolumelimits" + "k8s.io/kubernetes/pkg/scheduler/framework/plugins/volumebinding" + "k8s.io/kubernetes/pkg/scheduler/framework/plugins/volumerestrictions" + "k8s.io/kubernetes/pkg/scheduler/framework/plugins/volumezone" "go.uber.org/zap" v1 "k8s.io/api/core/v1" @@ -223,9 +228,16 @@ func NewPredicateManager(handle framework.Handle) PredicateManager { // VolumeBinding } - // run all PreFilter plugins during allocation phase + // TODO: make this configurable + // exclude the following preFilters + // - podtopologyspread + // - interpodaffinity + // these preFilter has high latency and dramatically slows down the scheduling, + // disable them by default. See more in rdar://94852521 allocationPreFilters := map[string]bool{ - "*": true, + noderesources.FitName: true, + nodeports.Name: true, + volumebinding.Name: true, } /* @@ -266,9 +278,26 @@ func NewPredicateManager(handle framework.Handle) PredicateManager { // VolumeZone } - // run all Filter plugins during allocation phase + // TODO: make this configurable + // exclude the following filters + // - podtopologyspread + // - interpodaffinity + // these preFilter has high latency and dramatically slows down the scheduling, + // disable them by default. See more in rdar://94852521 allocationFilters := map[string]bool{ - "*": true, + nodeunschedulable.Name: true, + nodename.Name: true, + tainttoleration.Name: true, + nodeaffinity.Name: true, + nodeports.Name: true, + noderesources.FitName: true, + volumerestrictions.Name: true, + nodevolumelimits.EBSName: true, + nodevolumelimits.GCEPDName: true, + nodevolumelimits.CSIName: true, + nodevolumelimits.AzureDiskName: true, + volumebinding.Name: true, + volumezone.Name: true, } return newPredicateManagerInternal(handle, reservationPreFilters, allocationPreFilters, reservationFilters, allocationFilters) diff --git a/rio.yml b/rio.yml new file mode 100644 index 00000000..d5f9537f --- /dev/null +++ b/rio.yml @@ -0,0 +1,46 @@ +schemaVersion: 2.0 +secrets: + names: + - raimldpi-aws-login-test + - raimldpi-aws-login-prod +notify: + email: + enabled: false +security: + scanReports: + dockerfile: + continueOnFail: true + dockerload: + continueOnFail: false +pipelines: + - name: yunikorn-multi-arch-build-1.3.0 + branchName: v1.3.0-1 + build: + template: 'freestyle:v4:publish' + steps: ['true'] + machine: + baseImage: 'docker.apple.com/base-images/ubi9/go1.20-builder' + env: + APP_VERSION: '1.0.#{}' + HTTP_PROXY: 'http://proxy.config.pcp.local:3128' + HTTPS_PROXY: 'http://proxy.config.pcp.local:3128' + http_proxy: 'http://proxy.config.pcp.local:3128' + https_proxy: 'http://proxy.config.pcp.local:3128' + NO_PROXY: 'localhost,127.0.0.1,10.100.0.0/16,internal,*.internal,apple.com,*.apple.com' + no_proxy: 'localhost,127.0.0.1,10.100.0.0/16,internal,*.internal,apple.com,*.apple.com' + executor: + type: tekton + resources: + size: medium + targetPlatforms: + - linux/amd64 + - linux/arm64 + package: + version: 'yunikorn-scheduler-${APP_VERSION}' + dockerfile: + - dockerfilePath: build/Dockerfile + perApplication: false + env: + MAIN_VERSION: ${APP_VERSION} + publish: + - repo: docker.apple.com/aiml-di-dpi/yunikorn --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
