kubernetes-sigs / cluster-api-provider-ibmcloud

Cluster API Provider for IBM Cloud
https://cluster-api-ibmcloud.sigs.k8s.io
Apache License 2.0
60 stars 76 forks source link

Experiment to rearrange resource creation invocation in recocile loop to find best minimal time for overall infra resource creation #1837

Open Karthik-K-N opened 3 weeks ago

Karthik-K-N commented 3 weeks ago

/kind feature /area provider/ibmcloud

Describe the solution you'd like [A clear and concise description of what you want to happen.]

Currently as a part of reconcile while creating infra resources we create loadbalancer as the last resources, Its observed that loadbalancer takes lot more time to become active state.

We want to try and figure out best possible order for infra resource creation so that we can create all resources in minimal time. example Create all vpc resources prior to power vs resources so on.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

mkumatag commented 3 weeks ago

also we need to explore if there is a scope for parallelism like create vpc and powervs resources.

dharaneeshvrd commented 3 weeks ago

/assign

mjturek commented 2 weeks ago

I guess the best way to go is making as little as possible before kicking off LB creation? Something like this? I honestly am not sure if this is much different than what is done today

Stage 1:

Stage 2:

Stage 3: