New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With too many apb's bootstrap causes the route to timeout. #876
Comments
|
@rthallisey @jmontleon Thanks! It helped - able to run bootstrap only after extending the timeout as mentioned. |
|
Assuming correct fix here is to make this an async call, thoughts? |
|
@jwmatthews yes if the bootstrap is taking too long, we should spawn it off as we start. |
|
@jwmatthews @jmrodri @dymurray when running If it was changed to async would that behavior have to be changed in the client tool? |
|
@jmontleon I misread the original complaint about |
|
We could probably annotate the route we create with a 1 or 2 minute timeout for now. I think it would cover most cases for the time being. If we ever see cases of someone with 100's of APB's we might have to readdress it, but even close to 200 was returning for me in under a minute. |
|
Example @jmontleon shared: |
|
Fixed by PR #1008 |
|
@jwmatthews it's unlucky, the 504 error not gone after increasing the timeout as your mentioning . |
|
There are a couple PR's hanging out to fix this. Trying to get them merged: @wenchma can you describe the asb route and verify the annotation is there? Is it actually taking 5 minutes (300s) to return now if you set that value? If that doesn't seem right maybe we're hitting something else. |
|
@jmontleon thanks for your reply, I guess I need a longer timeout. |
|
As mentioned it there might be something else happening that we haven't run into before as well. 5 minutes seems like an awfully long time to bootstrap unless you are loading a huge number of APB's. I suppose it is possible, but managed to get to only around around 60s by creating a couple hundred APB's. |
|
@jmontleon it looks like that the 5 minutes timeout did not take effect. it was obvious it returned 504 error in less than 5 minutes. |
|
Closing as this has been fixed. |
Bug:
Pretty low priority at this point.
With too many apb's bootstrap causes the route to timeout.
What happened:
What you expected to happen:
Boostrap completes.
How to reproduce it:
Populate a whole lot of APB's. In my cases I created 150 service templates in CFME while running a simple test of the adapter. Those were in addition to the ones available at docker.io/ansibleplaybookbundle that were also being loaded.
Boostrap actually completes but the route times out. I'd guess the defaults is ~10-30 seconds. My boostrap is taking probably closer to a minute
oc annotate route -n ansible-service-broker asb-1338 --overwrite haproxy.router.openshift.io/timeout=300sstops it from happening.We could probably add the annotation to the route we create with a reasonable setting higher than the default, otherwise as we see users with more than a handful of APB's we may start seeing folks reporting this.
The text was updated successfully, but these errors were encountered: