clickhouse-operator icon indicating copy to clipboard operation
clickhouse-operator copied to clipboard

take long time to start next pod, why? about 9min

Open Sallery-X opened this issue 5 years ago • 13 comments

image

Sallery-X avatar Jul 24 '20 16:07 Sallery-X

@SalleryWang , look at pod events, there should be some info on what's going on.

alex-zaitsev avatar Jul 24 '20 16:07 alex-zaitsev

no,it just take long time to start a pending pod? pending pod to running is not slow

Sallery-X avatar Jul 24 '20 16:07 Sallery-X

Is there a performance issue about operator, when i create a lot pods  

Sallery-X avatar Jul 26 '20 08:07 Sallery-X

the logs show take a lot time to spent on the code, as fallows: is it nessesary? if curStatefulSet == nil { err := w.schemer.HostCreateTables(host) if err == nil { w.a.V(1). WithEvent(host.CHI, eventActionCreate, eventReasonCreateCompleted). WithStatusAction(host.CHI). Info("Created schema objects on host %s replica %d to shard %d in cluster %s", host.Name, host.Address.ReplicaIndex, host.Address.ShardIndex, host.Address.ClusterName) } else { w.a.WithEvent(host.CHI, eventActionCreate, eventReasonCreateFailed). WithStatusError(host.CHI). Error("FAILED to create schema objects on host %s with error %v", host.Name, err) } }

Sallery-X avatar Jul 27 '20 03:07 Sallery-X

@alex-zaitsev

Sallery-X avatar Jul 27 '20 03:07 Sallery-X

image

Sallery-X avatar Jul 27 '20 06:07 Sallery-X

@alex-zaitsev @Slach when i create cluster, i think no need to migrat schema objects to host, has error

Sallery-X avatar Jul 27 '20 06:07 Sallery-X

Those errors seem to take less than a second in total. Could you attach the full operator log when starting a cluster?

alex-zaitsev avatar Jul 27 '20 06:07 alex-zaitsev

it is too large

Sallery-X avatar Jul 27 '20 06:07 Sallery-X

28-2.pdf

Sallery-X avatar Jul 27 '20 06:07 Sallery-X

@alex-zaitsev

Sallery-X avatar Jul 27 '20 06:07 Sallery-X

@alex-zaitsev

Sallery-X avatar Jul 29 '20 09:07 Sallery-X

are you using aws eks? if so, do you have readiness gate injection?

fishzhe avatar Nov 09 '21 01:11 fishzhe