<div dir="ltr">Seems like something is missing cause despite having changed the config our wikimetrics1 instance is still throwing a bunch of errors like:<div><br></div><div><div><br></div><div> File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 238, in _revalidate_connection</div><div> "Can't reconnect until invalid "</div><div>StatementError: Can't reconnect until invalid transaction is rolled back (original cause: InvalidRequestError: Can't reconnect until invalid transaction is rolled back) u'SELECT user.user_id AS user_u</div></div><div><br></div><div><br></div><div>Restating the instance fixes things but somehow it gets "blocked" again. Is there something special about how these connections need to be managed?</div><div><br></div><div><br></div><div>Config is set up as follows (user removed)</div><div><br></div><div><div>SQL_ECHO : False</div><div>WIKIMETRICS_ENGINE_URL : 'mysql://<******>@localhost/wikimetrics'</div><div>WIKIMETRICS_POOL_SIZE : 100</div><div>MEDIAWIKI_ENGINE_URL_TEMPLATE : 'mysql://<****>.@labsdb1002.eqiad.wmnet/{0}_p'</div><div>MEDIAWIKI_POOL_SIZE : 200</div><div>CENTRALAUTH_ENGINE_URL : 'mysql://<*****>@labsdb1002.eqiad.wmnet/centralauth_p'</div><div>REPLICATION_LAG_MW_PROJECTS : [ 'enwiki', 'eowiki', 'elwiki', 'commonswiki', 'dewiki', 'frwiki', 'eswiki' ]</div><div>REPLICATION_LAG_THRESHOLD : 3 # (measured in hours)</div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 26, 2015 at 5:09 PM, Yuvi Panda <span dir="ltr"><<a href="mailto:yuvipanda@gmail.com" target="_blank">yuvipanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Yes they should! </p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Jan 26, 2015 5:04 PM, "Nuria" <<a href="mailto:nuria@wikimedia.org" target="_blank">nuria@wikimedia.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do these hosts also workfor the centralauth<br>
database?<br>
<br>
<br>
<br>
> On Jan 21, 2015, at 8:20 PM, Yuvi Panda <<a href="mailto:yuvipanda@gmail.com" target="_blank">yuvipanda@gmail.com</a>> wrote:<br>
><br>
> the DNAT rules are no longer required. Just connect directly to one of<br>
> labsdb1001.eqiad.wmnet, labsdb1002.eqiad.wmnet, or<br>
> labsdb1003.eqiad.wmnet. That should work.<br>
><br>
> I tried this out on wikimetrics1 instance and that seems to work...<br>
> --<br>
> Yuvi Panda T<br>
> <a href="http://yuvi.in/blog" target="_blank">http://yuvi.in/blog</a><br>
><br>
> _______________________________________________<br>
> Labs-l mailing list<br>
> <a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a><br>
> <a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</blockquote></div>
</div></div></blockquote></div><br></div>