<?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 Automating Cache Initializer after reload or recycling services. in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Automating-Cache-Initializer-after-reload-or-recycling-services/m-p/1672586#M15555</link>
    <description>&lt;P&gt;I have both Cache Initializer and QSST working but not sure how to automate either one of them after a reload or after the services have been recycled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 14:59:13 GMT</pubDate>
    <dc:creator>Mccutchan1</dc:creator>
    <dc:date>2020-02-05T14:59:13Z</dc:date>
    <item>
      <title>Automating Cache Initializer after reload or recycling services.</title>
      <link>https://community.qlik.com/t5/Management-Governance/Automating-Cache-Initializer-after-reload-or-recycling-services/m-p/1672586#M15555</link>
      <description>&lt;P&gt;I have both Cache Initializer and QSST working but not sure how to automate either one of them after a reload or after the services have been recycled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Automating-Cache-Initializer-after-reload-or-recycling-services/m-p/1672586#M15555</guid>
      <dc:creator>Mccutchan1</dc:creator>
      <dc:date>2020-02-05T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Cache Initializer after reload or recycling services.</title>
      <link>https://community.qlik.com/t5/Management-Governance/Automating-Cache-Initializer-after-reload-or-recycling-services/m-p/1672959#M15565</link>
      <description>&lt;P&gt;&amp;gt; after reload&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;EM&gt;cleanest&lt;/EM&gt;, but more complicated, route is to use External Program Tasks:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Architecture-Deep-Dive-Blog/Chaining-External-Program-Tasks/ba-p/1592800" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Architecture-Deep-Dive-Blog/Chaining-External-Program-Tasks/ba-p/1592800&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Alternatively, you can schedule things outside of Qlik Sense Enterprise using something like the &lt;A href="https://github.com/ahaydon/Qlik-Cli" target="_self"&gt;Qlik-Cli&lt;/A&gt; which then would allow you to chain it to the execution of the CacheIntiailizer.exe file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; after services have been recycled&lt;/P&gt;
&lt;P&gt;The easy mode answer would be just to schedule things using something like Windows Task Scheduler every X hours / minutes. That'll give you an approximation but not strictly speaking be exactly aligned with service restart.&lt;/P&gt;
&lt;P&gt;For a closer approximation of 100% alignment, it'll be a much more complicated series of things. The method that seems the most straight-forward is something like this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Script which checks the status of Engine(s). Example QRS API call: GET&amp;nbsp;/qrs/servicestatus/full?filter=(serviceType eq 3)
&lt;UL&gt;
&lt;LI&gt;This then writes the timestamp value (or serverNodeConfiguration &amp;gt; hostName &amp;amp; timestamp values for a multi-node environment)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Another script (or in the previous one): Checks the timestamp value against the prior row. If there's a difference then it executes CacheInitializer&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This would be a fast reactive but still reactive method.&lt;/P&gt;
&lt;P&gt;For a fully automated solution, you'd want to use something like the QRS's &lt;A href="https://community.qlik.com/t5/Qlik-Architecture-Deep-Dive-Blog/Qlik-Sense-Repository-Notification-API/ba-p/1582905" target="_self"&gt;Notification Capability&lt;/A&gt;. Here's some demo code for recording the Engine uptime to csv using this approach:&amp;nbsp;&lt;A href="https://github.com/levi-turner/60f3cacb-c4ee-47d3-8a40-9f23530c0267" target="_blank"&gt;https://github.com/levi-turner/60f3cacb-c4ee-47d3-8a40-9f23530c0267&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Automating-Cache-Initializer-after-reload-or-recycling-services/m-p/1672959#M15565</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2020-02-06T13:38:02Z</dc:date>
    </item>
  </channel>
</rss>

