[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-development
Subject:    [haiku-development] Re: [Announce] Small Trac change
From:       looncraz <looncraz () looncraz ! net>
Date:       2019-11-21 14:28:49
Message-ID: 66b9265c-79df-4fc8-b7bd-9827ccbb3129 () email ! android ! com
[Download RAW message or body]

<div dir='auto'>Would restricting robots help?</div><div class="gmail_extra"><br><div class="gmail_quote">On Nov 20, 2019 20:21, Alexander von Gluck IV &lt;kallisti5@unixzen.com&gt; wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:&#39;arial&#39; , sans-serif;font-size:13px">Trac has been eating CPU like a monster for a while.<br /><br />To try and fix this I set a CPU Limit on the Trac container to something reasonable (a few cores).<br />I think that limit has been causing Trac to get extremely slow (and be killed) randomly.<br /><br />This evening I was reviewing our config and found:<br /><br />restrict_users &#61; enabled.<br /><br />It seems Trac has a 13 year old bug about having a large number of users (we have ~2,700) and<br />doing inefficient parsing of those users on every ticket view.<br /><br /><a href="https://trac.edgewall.org/ticket/4245">https://trac.edgewall.org/ticket/4245</a><br /><br />Add a few well-behaved web crawlers looking at our tickets, and bam. multiple cores at 100%<br /><br />I&#39;ve disabled restrict_users.. and the CPU usage is now within reason so far<br />(20% on core, 50% one core, etc)<br /><br />The downside? The modify ticket owner field is no longer a drop-down, and is just a text field<br />you need to populate with a username. That&#39;s not ideal, but hey Trac seems a lot faster :-)<br /><br />The old UI experience was desirable.. but until the bug above is fixed i&#39;m out of options.<br /><br />Thanks!<br /><br /> -- Alex<br /></div></div>
</blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic