<?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>article Routes deployed on dual runtime servers in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Routes-deployed-on-dual-runtime-servers/ta-p/2151447</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;P&gt;When a Route (which has a &lt;STRONG&gt;cFtp&lt;/STRONG&gt; component) is deployed on multiple runtime servers, it consumes the file from the FTP at the same time and creates a duplicate. This is expected behavior.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H2&gt;Best practice&lt;/H2&gt; 
 &lt;P&gt;Talend suggests deploying a Route on a single runtime server. If there is a requirement to deploy it on multiple runtime servers, you must redesign the logic accordingly, as FTP Route consumers are not thread-safe.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;This is a limitation of Apache Camel &amp;gt; FTP components.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;You can use the &lt;STRONG&gt;readLock&lt;/STRONG&gt; option to force Camel to not consume files currently being written. However, this option is turned off by default, as it requires that you have write access.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;There are other solutions for avoiding consuming files currently being written over FTP; for example, you can write to a temporary destination, and move the file after it has been written.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;When moving files using the &lt;STRONG&gt;move&lt;/STRONG&gt; or &lt;STRONG&gt;preMove&lt;/STRONG&gt; options, the files are restricted to the &lt;STRONG&gt;FTP_ROOT&lt;/STRONG&gt; folder. That prevents you from moving them outside of the FTP area. If you want to move files to another area, you can use soft links and move them into a soft-linked folder.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;For more information, see &lt;A href="http://camel.apache.org/ftp.html" target="_self"&gt;Apache Camel&lt;/A&gt;.&lt;/P&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 19:06:24 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-09T19:06:24Z</dc:date>
    <item>
      <title>Routes deployed on dual runtime servers</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Routes-deployed-on-dual-runtime-servers/ta-p/2151447</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;P&gt;When a Route (which has a &lt;STRONG&gt;cFtp&lt;/STRONG&gt; component) is deployed on multiple runtime servers, it consumes the file from the FTP at the same time and creates a duplicate. This is expected behavior.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H2&gt;Best practice&lt;/H2&gt; 
 &lt;P&gt;Talend suggests deploying a Route on a single runtime server. If there is a requirement to deploy it on multiple runtime servers, you must redesign the logic accordingly, as FTP Route consumers are not thread-safe.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;This is a limitation of Apache Camel &amp;gt; FTP components.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;You can use the &lt;STRONG&gt;readLock&lt;/STRONG&gt; option to force Camel to not consume files currently being written. However, this option is turned off by default, as it requires that you have write access.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;There are other solutions for avoiding consuming files currently being written over FTP; for example, you can write to a temporary destination, and move the file after it has been written.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;When moving files using the &lt;STRONG&gt;move&lt;/STRONG&gt; or &lt;STRONG&gt;preMove&lt;/STRONG&gt; options, the files are restricted to the &lt;STRONG&gt;FTP_ROOT&lt;/STRONG&gt; folder. That prevents you from moving them outside of the FTP area. If you want to move files to another area, you can use soft links and move them into a soft-linked folder.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;For more information, see &lt;A href="http://camel.apache.org/ftp.html" target="_self"&gt;Apache Camel&lt;/A&gt;.&lt;/P&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 19:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Routes-deployed-on-dual-runtime-servers/ta-p/2151447</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-09T19:06:24Z</dc:date>
    </item>
  </channel>
</rss>

