You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When state size increases, the persistence of the state becomes a bottleneck as it happens synchronously. Currently, the persist interval is hardcoded in local apply backend to 20 seconds, and as state size increases, it becomes a significant amount of time spent on the persisting.
For remote apply backend it's possible to disable intermediate persistence completely, but it's not possible to do for the local apply backend.
Attempted Solutions
I have code changes that allow to specify a new persist interval via an environment variable.
Proposal
Make the persist interval configurable (or allow you to disable it completely) instead of using a hardcoded value. Open question: How to specify it: Is it enough to provide support via an environment variable, or will we need to add support for the command-line option?
Also, maybe it makes sense to make actual cloud write async?
References
No response
The text was updated successfully, but these errors were encountered:
Terraform Version
Use Cases
When state size increases, the persistence of the state becomes a bottleneck as it happens synchronously. Currently, the persist interval is hardcoded in local apply backend to 20 seconds, and as state size increases, it becomes a significant amount of time spent on the persisting.
For remote apply backend it's possible to disable intermediate persistence completely, but it's not possible to do for the local apply backend.
Attempted Solutions
I have code changes that allow to specify a new persist interval via an environment variable.
Proposal
Make the persist interval configurable (or allow you to disable it completely) instead of using a hardcoded value. Open question: How to specify it: Is it enough to provide support via an environment variable, or will we need to add support for the command-line option?
Also, maybe it makes sense to make actual cloud write async?
References
No response
The text was updated successfully, but these errors were encountered: