<p>Thanks Bogdan. It's a very busy Mysql server and the CPU usage is very high when turning it on. The issue happens very rarely so I can't sniff as well.</p>

<p>On another note, the issue looks to be unique key failure on presentity table. I have a cluster of 2 Opensips. They started at exact the same time and have the same range of pids(forcked). So the etag generated on the 2 servers could be collisioned. Am I right?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/766#issuecomment-173191424">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcieWVO598gyj1G_p7zwVkM1lEgK7Cks5pb3ZLgaJpZM4HIgGz.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/766#issuecomment-173191424"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>