https://pulumi.com logo
c

cold-coat-35200

12/13/2018, 10:24 AM
Hi, With the latest pulumi cli version the preview is really slow, 5 time slower with the same code, any idea what cause this?
m

microscopic-florist-22719

12/13/2018, 5:43 PM
@bitter-oil-46081 @colossal-beach-47527 any ideas?
b

bitter-oil-46081

12/13/2018, 6:32 PM
I suspect this is due to the change we made between 0.16.6 and 0.16.7 to start sending richer data for display on pulumi.com from previews. @colossal-beach-47527 any thoughts on if there's something we can do easily to verify that assumption (I suspect using 0.16.6 we could set some variable to have it send the events in the same way 0.16.7 and see if we see the slowdown?)
c

colossal-beach-47527

12/13/2018, 6:58 PM
Yes, I’m certain this has to do with a recent change we made for how we store and emit the update logs. There is a lot of chattiness between the
pulumi
CLI and the Pulumi Service relative to how many resources are in your stack, and with the recent changes, that number just increased by a small factor. So a slowdown was expected, but 5x seems especially bad. Does your stack use Docker by chance? And do your stack update logs contain locks of output from the Docker build?
c

cold-coat-35200

12/13/2018, 8:30 PM
the stack does not have any docker related stuff
we see the same behaviour with smaller stack, like 20 resource
c

colossal-beach-47527

12/13/2018, 11:14 PM
@cold-coat-35200 interesting. I’ll need to do some more analysis on the server-side to see what the culprit is. Hopefully we can fix whatever the bottleneck is quickly. Thank you for bringing this to our attention!
c

cold-coat-35200

12/18/2018, 6:44 AM
Is there an issue for this to track?
c

colossal-beach-47527

12/18/2018, 3:52 PM
@cold-coat-35200 sorry for the radio silence. I just logged https://github.com/pulumi/pulumi/issues/2303 to track it. I’ll be able to land some performance improvement in the next few weeks.
c

cold-coat-35200

12/18/2018, 4:03 PM
thanks
c

colossal-beach-47527

12/21/2018, 10:18 PM
A fix for the perf issue has been submitted, and will be in the next official Pulumi release. If you want to get ahold of the latest -dev bits, you can run
curl -fsSL <https://get.pulumi.com/> | bash -s -- --version 0.16.9-dev.1545348870
. If you have any problems, or still see this performance regression please let me know. Have a great weekend!
c

cold-coat-35200

12/22/2018, 1:46 PM
thanks, we will try next year 😄
Copy code
Resources:
    + 204 to create

pulumi preview  4,66s user 1,01s system 23% cpu 24,004 total
@colossal-beach-47527 really nice speed improvement!