I am using couchbase sync gateway public API
DELETE /{db}/{doc}+?rev=+_rev
for multiple documents async deletion and got error:
error: Service Unavailable,
reason: Database server is over capacity
I noticed that
DELETE
not for GET
, i.e, when I async get multiple documents' revision identifiers via API GET /{db}/{doc}
, it is working fine. I guess the reason is GET
is lighter. So question is:
Thanks!
I'm not sure if the capacity being referred to here lies with the Sync Gateway or with Couchbase Server. I would try increasing the file descriptors on the Sync Gateway as per https://developer.couchbase.com/documentation/mobile/current/guides/sync-gateway/os-level-tuning/index.html.
If that doesn't work, you might want to try increasing the memory of the Couchbase buckets that you are trying to delete from to see if that changes the available capacity.
Good luck!