Skip to content
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

Couch Db take 100% CPU usage on replication with heavy data #790

Closed
biju78 opened this issue Sep 5, 2017 · 2 comments
Closed

Couch Db take 100% CPU usage on replication with heavy data #790

biju78 opened this issue Sep 5, 2017 · 2 comments

Comments

@biju78
Copy link

biju78 commented Sep 5, 2017

When we triggering continuous replication with some heavy data( more than 10000 records) we found that couch db process take 100% CPU usage.Most of the time erlang.exe process take more than 60% and many couchjs.exe process take 4% each.
This problem is also occurring without heavy data while we triggering more than 400 continuous replication triggering in a single data base.Once this issue occurs(100% CPU usage) some times replication is too slow or it dose not works.As per some google search we try to resolve this solution by resolving lowering the values of configuration properties(default.ini) worker_processes, worker_batch_size and http_connections. But it dose not works. If any one know how to resolve this issue then please help us..

Thanks in Advance.

@biju78 biju78 changed the title Couch Db take 100% usage on replication with heavy data Couch Db take 100% CPU usage on replication with heavy data Sep 5, 2017
@wohali
Copy link
Member

wohali commented Sep 29, 2017

There's not enough information to go on here, but this sounds like deployment architecture issues, not a CouchDB bug. Here are some standard recommendations:

  • Upgrade to CouchDB 2.1 if you can, replication is improved in this release.
  • Try running a 3-node CouchDB 2.1 cluster with a load balancer in front if you are not already.
  • Use Mango views and selectors if you can, instead of JavaScript views, for improved performance.

@wohali wohali closed this as completed Sep 29, 2017
@penkeysuresh
Copy link

penkeysuresh commented Dec 18, 2017

@wohali I'm facing the same Issue and I posted the logs and error output here #869 . Could you please go through and give some pointers on how to solve this ?

Edit: I've managed to bring back the CPU utilisation to normal levels, it's hardly a solution, but it fixes my problem for time being. Check out the comments here #869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants