https://pulumi.com logo
Title
r

rough-window-15889

08/17/2021, 7:41 PM
How is everyone organizing their pulumi stacks? Are you using monolith stacks? Are you using microstacks? Have you used one and changed to the other? What were lessons learned or advantages to the different approaches?
b

bored-oyster-3147

08/17/2021, 8:08 PM
How would you define monolith stacks and microstacks?
r

rough-window-15889

08/17/2021, 8:25 PM
For Monolith: ex. an entire application encompassing the different layers. For Microstacks: ex. Stack for app service or ec2s, Stack for Databases or storage etc. Kind of corresponding to what is described here: https://www.pulumi.com/docs/guides/organizing-projects-stacks/
b

bored-oyster-3147

08/17/2021, 8:27 PM
Microstacks only make sense to me for microservices or resources that need to be shared by multiple projects
Which is effectively what we do where I'm at, we have separate pulumi projects for shared resources and application projects reference those shared resources that are deployed independently
đź’Ż 1
w

worried-city-86458

08/17/2021, 10:23 PM
Other factors to consider are performance and blast radius. Currently only using multiple stacks for infra but considering a stack per microservice after that.
👍 1
o

orange-byte-86458

08/17/2021, 10:44 PM
My “monolith” stack just grew to a size when it takes pulumi solid 2 minutes to calculate the update, and I’m considering splitting it into “microstacks” or, at least, “ministacks”.
👍 1
r

rough-window-15889

08/18/2021, 12:59 PM
Yeah the consideration for me comes because Pulumi is taking almost 30 mins to run each time. Splitting into microstacks to cut down on how long it takes to run and decoupling things sounds appealing.
w

worried-city-86458

08/18/2021, 8:31 PM
Sounds like it would be worth capturing a trace and logging an issue
b

better-monkey-50785

10/14/2021, 3:21 PM
I’d be really interested to see what’s included in these stacks that are taking 2-30 min to run. Any way you can share?
o

orange-byte-86458

10/14/2021, 8:25 PM
For us, it’s just a lot of EKS/GKE clusters + surrounding resources. I’m guessing it just takes a ton of time to synchronize every resource’s state, and EKS API is, perhaps, particularly slow.
w

worried-city-86458

10/14/2021, 10:41 PM
EKS is quite slow. How does it compare to GKE?
o

orange-byte-86458

10/15/2021, 1:23 AM
GKE clusters definitely get provisioned faster. I believe update operations on them are faster too, but I never measured precisely and we have quite a bit more EKS clusters than GKE so it’s hard to tell