pulumi: [Python SDK] slow performance with large CRD in helm chart.
Expected Behavior
pulumi up is fast just like in typescript ~5 seconds
Typescript SDK TRACE out.txt
Current Behavior
pulumi up with python is very very slow ~1 hour !
Python SDK TRACE out.txt.zip
(I didn’t wait and canceled the command pulumi up, very long wait)
Steps to Reproduce
-
Chart with a large CRD yaml size ~10k lines Example: https://github.com/VictoriaMetrics/helm-charts/blob/master/charts/victoria-metrics-operator/templates/crd.yaml https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-operator
-
use python sdk to install chart:
from pulumi_kubernetes.helm import v3
from pulumi_kubernetes.helm.v3.helm import ChartOpts
vm_chart = v3.Chart("vm", ChartOpts(chart="victoria-metrics-operator", repo="vm"))
Context (Environment)
macOS Big Sur 11.1
Python 3.9.1
pulumi v2.17.0
pulumi-kubernetes==2.7.4
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 27 (17 by maintainers)
@Zaid-Ajaj As you are the only person with an M1 on our team, I’m assigning this to you to take a look. Thank you!
This could be helpful: https://github.com/pulumi/pulumi-kubernetes/issues/1867#issuecomment-1107353905
Another non-M1 data point:
So the problem does seem to be M1-specific.
For another data point, I ran on my first-gen M1 and got just about the same results as @rawkode:
Looking at a trace, it appears that most of the time is spent in the
/pulumirpc.LanguageRuntime/Runfunction, so it seems like this is an issue with the core Python SDK rather than the k8s provider. Moving the issue to pulumi/pulumi for further investigation.https://www.pulumi.com/docs/troubleshooting/#performance
You can email or DM me with results.