karmada icon indicating copy to clipboard operation
karmada copied to clipboard

Scheduler always connect karmada-scheduler-estimator-cluster service while karmada system is deployed by `karmada-init`

Open wuyingjun-lucky opened this issue 2 years ago • 2 comments

What happened: Scheduler always connect karmada-scheduler-estimator-cluster service while karmada system is deployed by karmada-init image Scheduler log error continuously What you expected to happen: Scheduler log normally image

@RainbowMango @lonelyCZ Do you think we should set the option enable-scheduler-estimator=false in karmada-init becasue the component karmada-scheduler-estimator is not included. And In future we can deploy or enable the optional compents in karmadactl

How to reproduce it (as minimally and precisely as possible): use karmada-init to deploy a karmada-system Anything else we need to know?:

Environment:

  • Karmada version:
  • kubectl-karmada or karmadactl version (the result of kubectl-karmada version or karmadactl version):
  • Others:

wuyingjun-lucky avatar May 17 '22 08:05 wuyingjun-lucky

This should be in order to enable the scheduler-estimator at any time, otherwise we need to restart the karmada-scheduler when we deploy the estimator for the member cluster.

Perhaps, this polling is more frequent, is there a way to automatically detect, automatic sleep.

lonelyCZ avatar May 17 '22 08:05 lonelyCZ

We cannot detect existence of karmada-scheduler-estimator by Service.

When deploy in Host Kubernetes Cluster, there is a Service named karmada-scheduler-estimator-{{MEMBER_CLUSTER_NAME}} for routing info. But this Service is inside Host Kubernetes Cluster, and karmada-scheduler only connects to kube-apiserver for Karmada itself.

https://github.com/karmada-io/karmada/blob/c817ace443bc32f06ee091fc2bd1b35cfe942343/pkg/estimator/client/service.go#L22-L28

cmicat avatar Sep 29 '22 08:09 cmicat