Skip to content

more bigcouch tests

i'm frequently testing the number of open file desciptors for the bigcouch beam process, and the number of occurrences or "error" in the bigcouch logs like this:

» dsh -cM -g bm.couch -g dev.bm.couch 'lsof -p `pidof beam`|wc -l'
elk: 541
clam: 552
urchin: 564
thrips: 659
ant: 645

» dsh -cM -g dev.bm.couch -g bm.couch "grep \"`date -R|cut -d ' ' -f1-4`\" /opt/bigcouch/var/log/bigcouch.log|grep '\[error\]'|wc -l" 
thrips: 0
ant: 0
elk: 812
clam: 10
urchin: 14

open file desciptors

hard to find reasonable thresholds, for the file descriptors i would propose > 1000 for the beginning.

about bigcouch errors

filtering for the current date in bigcouch.log is needed because logrotate doesn't work reliable (see #4983 (closed))

those errors above are from three seperate issues:

  • "putting _design docs if they are already present result in bigcouch "nocatch,conflict" 409 error (Bug #4911 (closed))"
  • "2 users trying to sync at the same time produce "Uncaught error in HTTP request, mochiweb_request,send" bigcouch error (Bug #5024)"
  • "bigcouch restart produces one single mochiweb_request error (Bug #4979 (closed))" - rejected because it won't fix, and it's only one error on startup

(from redmine: created on 2014-01-30, relates #4983 (closed))