-
Notifications
You must be signed in to change notification settings - Fork 21
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
Rate limits from new IBM Bluemix Cloudant plans are not managed by the connector #56
Comments
I tried a local fix l2fprod@f342236 enabling the retry plugin and obviously it solves the issue. Ideally this should be built-in into the connector with configuration from the datasource. |
It would be great if StrongLoop's Cloudant connector could wrap Cloudant's nodejs library. The Shared plan has been deprecated in favour of the new rate-capped Lite & Standard plans, and at the moment SL dies when used against the Lite plan. The Lite plan is intended to serve as a free-forever taster/development tier but applications using that need to be mindful of the caps. Cloudant's library has configurable backoff&retry handling through its Stefan Kruger, IBM Cloudant. |
@xpqz Thanks for the feedback, this is definitely something we should take into consideration (using the native nodejs library that supports rate-capped lite and standard plans). @jannyHou We should add this to your connector's roadmap doc -- high priority too because this is obviously a barrier to entry for this project. |
It seems like this issue is actually about not supporting plugin configuration in the connector; we're not passing through an options object that allows configuration of the nodejs-cloudant module. |
@kjdelisle you're right. I've a straightforward fix l2fprod@f342236 for my own app but would love to see plugin support built in the connector! |
I've merged the passthrough into the master stream, and it should be a part of the connector's 3.0.0 release when that time comes. |
Hi, do we have an idea when the 3.0.0 will be released? |
Any plans to port this to the LTS release? We would really like to have this fix because we keep hitting these limits. |
@patsvc I'll add this to our backlog. It's not a breaking change, so I imagine it wouldn't be too much work. |
This should be released on |
Hi, still running into this issue after upgrading to Seems like the issue is caused by a Any advice? |
@jmereaux Is your model a |
@jannyHou It is a regular PersistedModel. I'm using a Cloudant server on Bluemix (standard plan = 100 lookups/s, 50 writes/s, 5 queries/s) |
Cloudant in Bluemix has plans with rate limits. It used to have a "Shared" plan with a limit of storage but the new plans have introduced read and write per second limits:
https://www.ibm.com/blogs/bluemix/2016/09/new-cloudant-lite-standard-plans-are-live-in-bluemix-public/
The Cloudant nodejs package has been updated to cope with the new limits and automatically retry. This is implemented with a Cloudant "retry" plugin:
https://github.com/cloudant/nodejs-cloudant#request-plugins
The loopback-connnector-cloudant should be updated to use the latest Cloudant nodejs package and support the configuration of the retry plugin.
Typically I'm getting http error 429 (the Cloudant error code when you reach the rate limit) and messages like:
The text was updated successfully, but these errors were encountered: