<div dir="ltr">Hi,<div><br></div><div>I started using db_cluster module.</div><div>DB are  master-slave replication both ways.<br></div><div><br></div><div>#!define DBURL "cluster://kamailio"</div><div><br></div><div><div>when i stop the primary  mysql server, all subscribers fails to register again.</div><div>seems like the usrloc module does not work with the cluster.</div><div><br></div><div>modparam("usrloc", "db_mode",  1)</div><div>modparam("db_cluster", "cluster", "kamailio=>primary=9s9s;secondary=8s8s")</div><div><br></div><div><br></div></div><div>it works OK for modules like dispatcher and htable to reload from DB.</div><div>it shows the sql driver errors, but reloads from the secondary server.</div><div><br></div><div><br></div><div>I need auto expire, so, p_usrloc is not a good option.</div><div>working with version 4.2</div><div><br></div><div>any ideas ?</div><div><br></div><div>Uri</div></div>