<?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>question Slow ambari rest api in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235571#M197384</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Can anyone explain how to rise speed of "rest api"?&lt;BR /&gt;Last month, the CPU load began to grow on ambari server and appeared alert "Ambari server performance rest api Critical 25,000ms"&lt;/P&gt;&lt;P&gt;I have 4 CPU core and 32GB ram on ambari host&lt;/P&gt;&lt;P&gt;The cluster is contain 25 nodes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107067-1.png" style="width: 990px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14523i81E251ACB1890871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107067-1.png" alt="107067-1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107093-2.png" style="width: 799px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14524iD63ADFFEA535B044/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107093-2.png" alt="107093-2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107132-2.png" style="width: 799px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14525i74A42C54B07B62B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107132-2.png" alt="107132-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 23:48:38 GMT</pubDate>
    <dc:creator>ururu</dc:creator>
    <dc:date>2019-08-17T23:48:38Z</dc:date>
    <item>
      <title>Slow ambari rest api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235571#M197384</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Can anyone explain how to rise speed of "rest api"?&lt;BR /&gt;Last month, the CPU load began to grow on ambari server and appeared alert "Ambari server performance rest api Critical 25,000ms"&lt;/P&gt;&lt;P&gt;I have 4 CPU core and 32GB ram on ambari host&lt;/P&gt;&lt;P&gt;The cluster is contain 25 nodes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107067-1.png" style="width: 990px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14523i81E251ACB1890871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107067-1.png" alt="107067-1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107093-2.png" style="width: 799px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14524iD63ADFFEA535B044/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107093-2.png" alt="107093-2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107132-2.png" style="width: 799px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14525i74A42C54B07B62B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107132-2.png" alt="107132-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:48:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235571#M197384</guid>
      <dc:creator>ururu</dc:creator>
      <dc:date>2019-08-17T23:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ambari rest api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235572#M197385</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/63185/trinimak.html" nodeid="63185"&gt;@Ruslan Fialkovsky&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following HCC article explains some of the points to check for Cluster API slow response scenario. Can you please check if that is helpful for you to troubleshoot the issue?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Section: &lt;/STRONG&gt;Ambari API Response Time Check&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/articles/131670/ambari-server-performance-tuning-troubleshooting-c.html" target="_blank"&gt;https://community.hortonworks.com/articles/131670/ambari-server-performance-tuning-troubleshooting-c.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:02:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235572#M197385</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-03-12T16:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ambari rest api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235573#M197386</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I have this "time requests"&lt;/P&gt;&lt;P&gt;time curl -i -u admin:* -H 'X-Requested-By: ambari' -X GET &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://localhost:8080/api/v1/clusters/DataLake" target="_blank"&gt;http://localhost:8080/api/v1/clusters/DataLake&lt;/A&gt;&lt;/P&gt;&lt;P&gt;real 0m36.270s&lt;BR /&gt;user 0m0.020s&lt;BR /&gt;sys 0m0.184s&lt;/P&gt;&lt;P&gt;time curl -i -u admin:* -H 'X-Requested-By: ambari' -X GET &lt;A href="http://localhost:8080/api/v1/clusters/DataLake?fields=Clusters/desired_configs" target="_blank"&gt;http://localhost:8080/api/v1/clusters/DataLake?fields=Clusters/desired_configs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;real 0m0.190s&lt;BR /&gt;user 0m0.003s&lt;BR /&gt;sys 0m0.013s&lt;BR /&gt;&lt;BR /&gt;time curl -i -u admin:* -H 'X-Requested-By: ambari' -X GET &lt;A href="http://localhost:8080/api/v1/clusters/DataLake?fields=Clusters/health_report,Clusters/total_hosts,alerts_summary_hosts" target="_blank"&gt;http://localhost:8080/api/v1/clusters/DataLake?fields=Clusters/health_report,Clusters/total_hosts,alerts_summary_hosts&lt;/A&gt;&lt;BR /&gt;real 0m30.498s&lt;BR /&gt;user 0m0.002s&lt;BR /&gt;sys 0m0.011s&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I think something with database time response, isn't it?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:33:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235573#M197386</guid>
      <dc:creator>ururu</dc:creator>
      <dc:date>2019-03-12T16:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ambari rest api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235574#M197387</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/63185/trinimak.html"&gt;@Ruslan Fialkovsky&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What is the age of your ambari managed cluster (like 6 monthds old / 1 year old / 2 year old) ?&lt;/P&gt;&lt;P&gt;After months of operation on larger clusters, the Ambari Server may begin to accrue a large amount of historical data in the database. This can cause UI performance degradation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;In some old clusters we see that there are lots of old "alert_history" (old operational logs) or old alert notification data entries present in the database that causes slowness, As with time these entries grows much on the database. So the DB dump size also grows and the DB queries can respond slow results. We can use the following command to perform some DB cleanup.&lt;/P&gt;&lt;PRE&gt;# ambari-server db-purge-history --cluster-name DataLake --from-date 2018-12-15&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt; &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-administration/content/purging-ambari-server-history.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-administration/content/purging-ambari-server-history.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:07:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235574#M197387</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-03-12T18:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ambari rest api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235575#M197388</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I already cleaned ambari database --from-date 2019-01-01 now it size is 1200mb, but i have databases "oozie, ranger, hive, airflow" on the same postgres cluster. Should i clean historical data from those databases?&lt;BR /&gt;HDP cluster is two years old.&lt;BR /&gt;The most big base now is oozie 12GB&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 19:03:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235575#M197388</guid>
      <dc:creator>ururu</dc:creator>
      <dc:date>2019-03-12T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slow ambari rest api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235576#M197389</link>
      <description>&lt;P&gt;I have database replica and physical replication slot. When replica was down, postgers began to save wal journal and them was save all month! When i drop replication slot and clear old wal journal the cpu utilisation return to normal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107123-1.png" style="width: 808px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14522i8AD8DC900921E8EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107123-1.png" alt="107123-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:48:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Slow-ambari-rest-api/m-p/235576#M197389</guid>
      <dc:creator>ururu</dc:creator>
      <dc:date>2019-08-17T23:48:20Z</dc:date>
    </item>
  </channel>
</rss>

