ecoinpool
ecoinpool copied to clipboard
mysql replicator
I've been using ecoinpool for quite a while, and there is a problem I haven't been able to solve by myself. My mysql host is in a different server. Sometimes it goes offline for a few minutes, and mysql replicator stops working and I have to reset it manually.
Log:
=SUPERVISOR REPORT==== 19-Feb-2013::04:59:18 === Supervisor: {local, ecoinpool_mysql_replicator_sup} Context: shutdown Reason: reached_max_restart_intensity Offender: [{pid,{restarting,<0.82.0>}}, {name, {replicator,<<"fad98s7f8asf89a7syf89a7sf87fd0a98f">>, "pool_worker"}}, {mfargs, {mycouch_replicator,start_link, [{db, {server,"localhost",5984,[], [{basic_auth,{"MyUsername","MyPassword"}}]}, "ecoinpool", [{basic_auth,{"MyUsername","MyPassword"}}]}, {"workers/by_sub_pool", [{"sub_pool_id", <<"fad98s7f8asf89a7syf89a7sf87fd0a98f">>}]}, ecoinpool_mysql_replicator,"pool_worker", ["associateduserid","username","password"], 15,#Fun<ecoinpool_mysql_replicator_sup.3.1234567890>, #Fun<ecoinpool_mysql_replicator_sup.2.1234567890>]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}]
=INFO REPORT==== 19-Feb-2013::04:59:18 === application: ecoinpool_mysql_replicator exited: shutdown type: temporary
@p2k, I never worked with couchdb and erlang before, can you show me the way around this error? I wanted to know how to check if mysql_replicator was running, so I could restart when this error happened.