Slow operations with SSA enabled #2427
Labels
area/server-side-apply
impact/performance
Something is slower than expected
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
What happened?
We've been seeing very slow operation when SSA is enabled (via config
kubernetes:enableServerSideApply: true
) compared to CSA. For example, a preview operation that usually take a couple of seconds (without any resource changes) now takes 3-4 minutes.We're using google storage as the backend and stack has ~100 resources
Expected Behavior
Reasonable times when running up/preview
Steps to reproduce
Enable SSA on a stack and run any operation compared to the same stack without it enabled
Output of
pulumi about
CLI
Version 3.68.0
Go Version go1.20.4
Go Compiler gc
Plugins
NAME VERSION
go unknown
kubernetes 3.28.0
Host
OS ubuntu
Version 23.04
Arch x86_64
This project is written in go: executable='/usr/local/go/bin/go' version='go version go1.20.4 linux/amd64'
Current Stack: stg2
(stack and backend details redacted)
Dependencies:
NAME VERSION
github.com/bringg/pulib 0.10.0
github.com/creasty/defaults 1.7.0
github.com/onsi/ginkgo/v2 2.9.5
github.com/onsi/gomega 1.27.7
github.com/pulumi/pulumi-kubernetes/sdk/v3 3.28.0
github.com/pulumi/pulumi/sdk/v3 3.68.0
Pulumi locates its logs in /tmp by default
Additional context
We've run a trace and we can see the
RegisterResource
takes most of the time, see the attached trace for referencestg2-up.trace.gz
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: