You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Alexander (JIRA)" <ji...@apache.org> on 2012/09/15 21:38:08 UTC

[jira] [Commented] (COUCHDB-1052) CouchDB crashes by Erlang Heartbeat Runtime System

    [ https://issues.apache.org/jira/browse/COUCHDB-1052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456479#comment-13456479 ] 

Alexander commented on COUCHDB-1052:
------------------------------------

Please, reopen this bug - we need a quick solution for CouchDB 1.0.3.
All our webservers are down!
RESPAWN_TIMEOUT=1 doesn't work and we can't to apply an attached patch cause couchdb 1.0.3 has another code lines.
Waiting for your response.
                
> CouchDB crashes by Erlang Heartbeat Runtime System
> --------------------------------------------------
>
>                 Key: COUCHDB-1052
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1052
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Infrastructure
>    Affects Versions: 0.10.1, 1.0.1
>         Environment: Solaris 10
>            Reporter: Nicolas Maupu
>         Attachments: couchdb-bin-1.0.1.diff
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Hello,
> We have several couchdb in our production environment (starting from 0.10.1 and upgraded to 1.0.1). Some instances began to crash several times a day.
> After research (I am not aware of all erlang tips and tricks), I found that the problem was caused by erlang heartbeat runtime system (http://www.erlang.org/doc/man/heart.html).
> For some reasons (it seems to be a problem with system clock), this heartbeat process sends a signal to main erlang process to trigger HEARTBEAT_COMMAND. 
> The command configured by couchdb startup script is to call 'bin/couchdb -k' which kill server ...
> I don't know if this is wanted or not but is Erlang heartbeat system provided to restart a service if this one crash ?
> I patched mine to restart process gracefully but I would like to know if this is a feature or a bug : next time I upgrade, I will have to patch again.
> My patch is a little bit specific to my architecture so I did not provide it. Ask me if you are interested.
> nm.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira