Bluemix cloudant performance - Replication

I have an IBM Bluemix application using the Cloudant Bluemix service. Sometimes calls to Cloudant are slow (a few seconds), and after a minute the same call is the second. We don't hit it too hard, but nonetheless, I thought I'd look at replication to see if it was different than performance. The documentation clearly shows how to create a replica, but there is no document on how to use the replication function.

I'm not sure if this is because the Cloudant features we have through Bluemix are limited? Or what, but what the cloud dock says, for example: - Users connect to the nearest replica - If the replica does not work, users turn to another Source: https://cloudant.com/product/cloudant-features/replication/

With my Cloudant account from Bluemix, I can create a replica (transition from DB_A to B and vice versa). But what now?

I guess that itโ€™s time to spread the load before my application, otherwise these advantages will not be applied (i.e. I donโ€™t know the nearest replica, and I think that I will not need to write code to detect and disconnect and redirect to another replica, right ?).

I am looking for a guide to using replication to ease the download, to see if this helps performance.

Thanks Dan

+5
source share
1 answer

Most likely, the node you are doing is slow, or under heavy load, this can happen. Replicating to another database will not help you if the second database is not in a cluster of another in the first database.

Also, replications for database synchronization will add extra load to the cluster that you use, even if it happens across clusters. The download will be generated by a replicator supporting database synchronization if you use continuous (which I assume you are).

0
source

Source: https://habr.com/ru/post/1241014/


All Articles