<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic celery-worker 100% cpu usage in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/celery-worker-100-cpu-usage/m-p/240084#M97326</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've had 100% CPU usage from the celery-worker processes for a few weeks now, I spent some time trying to resolve this but without resolution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using a standard Ubuntu 14 appliance build.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is a looping of emerging threats downloading, rendering, repeat.&amp;nbsp; I don't have the db permission issue some other users have reported, where the rendering is unsuccessful because the celery-worker doesn't have permission to the DB. The rendering is successful, unfortunately it just repeats&amp;nbsp;as soon as it successfully renders. I have 3 workers (3 CPUs) and all 3 workers consistently loop like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[2018-11-16 10:38:08,510: WARNING/Worker-3] Imported 15500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:09,550: WARNING/Worker-3] Imported 16000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:10,567: WARNING/Worker-3] Imported 16500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:11,592: WARNING/Worker-3] Imported 17000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:12,651: WARNING/Worker-3] Imported 17500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:13,664: WARNING/Worker-3] Imported 18000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:14,691: WARNING/Worker-3] Imported 18500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:15,707: WARNING/Worker-3] Imported 19000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:16,043: WARNING/Worker-3] Finished Importing 19142 rules. Committing data&lt;BR /&gt;[2018-11-16 10:38:16,044: INFO/Worker-3] Rendering rules.&lt;/P&gt;
&lt;P&gt;==&amp;gt; mhn.log &amp;lt;==&lt;BR /&gt;2018-11-16 10:33:50,193 - /opt/mhn/server/mhn/tasks/rules.py - Fetching sources from 1 sources.&lt;BR /&gt;2018-11-16 10:33:50,195 - /opt/mhn/server/mhn/tasks/rules.py - Downloading from "&lt;A href="http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz" target="_blank"&gt;http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz&lt;/A&gt;".&lt;BR /&gt;2018-11-16 10:34:16,022 - /opt/mhn/server/mhn/tasks/rules.py - Bulk importing 19142 rules.&lt;BR /&gt;2018-11-16 10:35:08,829 - /opt/mhn/server/mhn/tasks/rules.py - Rendering rules.&lt;BR /&gt;2018-11-16 10:37:10,118 - /opt/mhn/server/mhn/tasks/rules.py - Fetching sources from 1 sources.&lt;BR /&gt;2018-11-16 10:37:10,120 - /opt/mhn/server/mhn/tasks/rules.py - Downloading from "&lt;A href="http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz" target="_blank"&gt;http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz&lt;/A&gt;".&lt;BR /&gt;2018-11-16 10:37:36,014 - /opt/mhn/server/mhn/tasks/rules.py - Bulk importing 19142 rules.&lt;BR /&gt;2018-11-16 10:38:16,044 - /opt/mhn/server/mhn/tasks/rules.py - Rendering rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried clearing out the celery queue, this also didn't seem to help. I've also tried the normal restarting and stopping the celery worker processes, however as soon as celery-beat is restarted, this looping begins again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help or suggestions, I'm stuck&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 00:13:27 GMT</pubDate>
    <dc:creator>jtrevaskis</dc:creator>
    <dc:date>2018-11-16T00:13:27Z</dc:date>
    <item>
      <title>celery-worker 100% cpu usage</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/celery-worker-100-cpu-usage/m-p/240084#M97326</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've had 100% CPU usage from the celery-worker processes for a few weeks now, I spent some time trying to resolve this but without resolution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using a standard Ubuntu 14 appliance build.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is a looping of emerging threats downloading, rendering, repeat.&amp;nbsp; I don't have the db permission issue some other users have reported, where the rendering is unsuccessful because the celery-worker doesn't have permission to the DB. The rendering is successful, unfortunately it just repeats&amp;nbsp;as soon as it successfully renders. I have 3 workers (3 CPUs) and all 3 workers consistently loop like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[2018-11-16 10:38:08,510: WARNING/Worker-3] Imported 15500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:09,550: WARNING/Worker-3] Imported 16000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:10,567: WARNING/Worker-3] Imported 16500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:11,592: WARNING/Worker-3] Imported 17000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:12,651: WARNING/Worker-3] Imported 17500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:13,664: WARNING/Worker-3] Imported 18000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:14,691: WARNING/Worker-3] Imported 18500 rules so far...&lt;BR /&gt;[2018-11-16 10:38:15,707: WARNING/Worker-3] Imported 19000 rules so far...&lt;BR /&gt;[2018-11-16 10:38:16,043: WARNING/Worker-3] Finished Importing 19142 rules. Committing data&lt;BR /&gt;[2018-11-16 10:38:16,044: INFO/Worker-3] Rendering rules.&lt;/P&gt;
&lt;P&gt;==&amp;gt; mhn.log &amp;lt;==&lt;BR /&gt;2018-11-16 10:33:50,193 - /opt/mhn/server/mhn/tasks/rules.py - Fetching sources from 1 sources.&lt;BR /&gt;2018-11-16 10:33:50,195 - /opt/mhn/server/mhn/tasks/rules.py - Downloading from "&lt;A href="http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz" target="_blank"&gt;http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz&lt;/A&gt;".&lt;BR /&gt;2018-11-16 10:34:16,022 - /opt/mhn/server/mhn/tasks/rules.py - Bulk importing 19142 rules.&lt;BR /&gt;2018-11-16 10:35:08,829 - /opt/mhn/server/mhn/tasks/rules.py - Rendering rules.&lt;BR /&gt;2018-11-16 10:37:10,118 - /opt/mhn/server/mhn/tasks/rules.py - Fetching sources from 1 sources.&lt;BR /&gt;2018-11-16 10:37:10,120 - /opt/mhn/server/mhn/tasks/rules.py - Downloading from "&lt;A href="http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz" target="_blank"&gt;http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz&lt;/A&gt;".&lt;BR /&gt;2018-11-16 10:37:36,014 - /opt/mhn/server/mhn/tasks/rules.py - Bulk importing 19142 rules.&lt;BR /&gt;2018-11-16 10:38:16,044 - /opt/mhn/server/mhn/tasks/rules.py - Rendering rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried clearing out the celery queue, this also didn't seem to help. I've also tried the normal restarting and stopping the celery worker processes, however as soon as celery-beat is restarted, this looping begins again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help or suggestions, I'm stuck&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 00:13:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/celery-worker-100-cpu-usage/m-p/240084#M97326</guid>
      <dc:creator>jtrevaskis</dc:creator>
      <dc:date>2018-11-16T00:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: celery-worker 100% cpu usage</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/celery-worker-100-cpu-usage/m-p/240556#M97327</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/54528"&gt;@jtrevaskis&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;MineMeld is not using celery. I guess you have installed MHN on your server and that is giving high CPU, but that's not related to MineMeld.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luigi&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 13:15:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/celery-worker-100-cpu-usage/m-p/240556#M97327</guid>
      <dc:creator>lmori</dc:creator>
      <dc:date>2018-11-20T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: celery-worker 100% cpu usage</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/celery-worker-100-cpu-usage/m-p/240651#M97328</link>
      <description>&lt;P&gt;oh of course your right, its MHN&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 22:12:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/celery-worker-100-cpu-usage/m-p/240651#M97328</guid>
      <dc:creator>jtrevaskis</dc:creator>
      <dc:date>2018-11-20T22:12:24Z</dc:date>
    </item>
  </channel>
</rss>

