Re: Cloudant 10 requests per second limit

2017-12-08 Thread Brendan Duddridge
Hi Traun, Looks like this is the code in question: > > > https://github.com/couchbase/couchbase-lite-ios/blob/9a8903b9e851d5584abeec069ead4d2637b3bb91/Source/CBLMisc.m#L381 > Ah excellent! I've added a check for the 429 error to tell it to return NO that's it's not a fatal error. Now I just

Re: Cloudant 10 requests per second limit

2017-12-08 Thread Traun Leyden
Looks like this is the code in question: https://github.com/couchbase/couchbase-lite-ios/blob/9a8903b9e851d5584abeec069ead4d2637b3bb91/Source/CBLMisc.m#L381 On Fri, Dec 8, 2017 at 11:40 AM, Brendan Duddridge wrote: > Hi Jens, > > > Sync Gateway will sometimes return a 503

Re: Cloudant 10 requests per second limit

2017-12-08 Thread Brendan Duddridge
Hi Jens, Sync Gateway will sometimes return a 503 if the DB server is overloaded; > CBL handles that by trying again a bit later. What status code does > Cloudant return? > Where in CBL does it handle the 503 error and try again? Do you think I could just modify the code to also do the same

Re: Cloudant 10 requests per second limit

2017-12-05 Thread Brendan Duddridge
> Sync Gateway will sometimes return a 503 if the DB server is overloaded; > CBL handles that by trying again a bit later. What status code does > Cloudant return? > > It looks like it's a 429 -- too many requests error. https://console.bluemix.net/docs/services/Cloudant/api/http.html#http

Re: Cloudant 10 requests per second limit

2017-12-05 Thread Jens Alfke
> On Dec 5, 2017, at 3:14 PM, Brendan Duddridge wrote: > > Ya, I didn't think it ran any queries. But it would be good if it could > handle the response code and then try again in a little bit. Sync Gateway will sometimes return a 503 if the DB server is overloaded; CBL

Re: Cloudant 10 requests per second limit

2017-12-05 Thread Brendan Duddridge
Ya, I didn't think it ran any queries. But it would be good if it could handle the response code and then try again in a little bit. On Tuesday, December 5, 2017 at 3:48:17 PM UTC-7, Jens Alfke wrote: > > > No, there’s nothing like that, because it’s never been an issue before. > (FWIW, the

Re: Cloudant 10 requests per second limit

2017-12-05 Thread Jens Alfke
> On Dec 5, 2017, at 12:55 PM, Brendan Duddridge wrote: > > I was wondering if there was anything in Couchbase Lite 1.4 which could > throttle the number of lookups per second, writes per second and queries per > second during a replication process. No, there’s nothing

Re: Cloudant 10 requests per second limit

2017-12-05 Thread Brendan Duddridge
Yes, that is a limitation with the free tier. But their older Cloudant service didn't have this limitation and I had a lot of customers using it. So now I'm starting to field all these support requests. Just trying to figure out what to do now and how to handle it. -- You received this

Re: Cloudant 10 requests per second limit

2017-12-05 Thread Traun Leyden
I think those limitations only apply to the free tier of IBM Cloud. I don't know of any throttling mechanisms in Couchbase Lite along those lines though. On Tue, Dec 5, 2017 at 12:55 PM, Brendan Duddridge wrote: > Hi, > > IBM has changed their system so that it only allows

Cloudant 10 requests per second limit

2017-12-05 Thread Brendan Duddridge
Hi, IBM has changed their system so that it only allows for a limited number of requests per second: - 20 Lookups/sec - 10 Writes/sec - 5 Queries/sec I was wondering if there was anything in Couchbase Lite 1.4 which could throttle the number of lookups per second, writes per second