-
Notifications
You must be signed in to change notification settings - Fork 53
Scaling an app down while a build is running leads to unpredictable results #1224
Comments
From @carmstrong on November 5, 2015 23:37
Have you seen any issues with HEALTHCHECK_URL set? We strongly recommend using this as a best practice for app deploys, since by default we will consider all running containers to be live and healthy. |
From @jeff-lee on November 6, 2015 0:9 I haven't been able to reproduce the container=0 issue yet when HEALTHCHECK_URL is set, but the shutdown of the new containers and hang of the builder does still happen. I have also seen 502 Bad Gateway and 404's when it's set if I scale down late enough in the deploy process. |
From @carmstrong on November 6, 2015 0:11
In general, I don't know if we make any guarantees when scaling an app up/down while a deploy is already running - the controller is executing logic as to how many containers to scale up/down based on the current number it sees. Is there a use case for this, @jeff-lee, or are you just doing resiliency testing? |
From @jeff-lee on November 6, 2015 0:56 @carmstrong I was doing resiliency testing of the build process and this popped up. Having said that, our CI is pushing builds to staging and qa throughout the day so I don't think it would be unusual for someone to try to scale an app without knowing that a build might be in progress. It would be less of an issue in production since that's a more controlled process. |
From @mboersma on November 11, 2015 15:54
Sounds like a common case that Deis should handle gracefully. |
From @bacongobbler on January 22, 2016 0:50 I'm not sure if there's an easy way to resolve this reliably. There are a lot of concurrency issues related to Deis. This is one of them. Perhaps at some point we could use something that acts a single source of truth to tells us when the builder is performing a build, but I don't see an easy solution to this problem that we could tackle for the LTS release. |
From @bacongobbler on January 22, 2016 0:52 see also deis/deis#4746 |
This issue was moved to teamhephy/controller#34 |
From @jeff-lee on November 5, 2015 22:47
I'm running into an issue in v1.12.0 where scaling down an app while a build is running can result in either:
a) The new containers getting shut down and the build hanging
b) Zero running containers
I started a new cluster and scaled the example-go app up to 3.
I then started a build ( v75 ) and scaled the app down from 3 to 2 when the node started pulling the new containers down.
At this point, the v75 container gets stopped and the build ( with HEALTHCHECK_URL set ) hangs.
I have also seen all of the containers get stopped when scaling from 3 to 2. Though I have only been able to reproduce this when HEALTHCHECK_URL is not set so far.
Copied from original issue: deis/deis#4719
The text was updated successfully, but these errors were encountered: