<?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 Re: Increase in Latency in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470198#M11953</link>
    <description>&lt;P&gt;Thanks team for the responses!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We've set PERFORMANCE to trace and we can see the latency on both Source and target. PFB log below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"[PERFORMANCE ]T: Source latency 337814.62 seconds, Target latency 337814.62 seconds, Handling latency 0.00 seconds"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We've tried Batch optimized apply mode earlier which didn't help to meet the real time CDC with huge latency.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We've 7 designed different tasks cause we were provided with&amp;nbsp;different SCN's, Schemas and few tables do not have primary key.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And we tried the same task settings with NULL target, there is no decrease in latency.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These were the IO of Source Backup folder :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;iops- 9661 iops for read and 1704 iops for write.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any other workaround for this issue&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 07:02:12 GMT</pubDate>
    <dc:creator>bindupenmatsa</dc:creator>
    <dc:date>2024-07-12T07:02:12Z</dc:date>
    <item>
      <title>Increase in Latency</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2469925#M11926</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;We have 7 CDC tasks running in&amp;nbsp;&lt;SPAN class="non-edit-text ng-binding" title="Transactional apply"&gt;Transactional apply mode&lt;/SPAN&gt; with different SCN's and Schemas. PFB&amp;nbsp;&lt;SPAN&gt;Transaction Offload Tuning:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Total transactions memory size exceeds (MB): 1024&lt;BR /&gt;Transactions duration exceeds (seconds): 60&lt;/P&gt;
&lt;P&gt;Since we were&amp;nbsp;&lt;SPAN&gt;not provided ASM privileges and logs were getting stored outside ASM in Backup folder.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Previously the data is accumulating on the Source Disk and waiting until source commit. So, we've requested for increase in Memory and virtual processors along with Network bandwidth. Currently we've got Memory - 64GB, virtual processors - 16 and Network bandwidth from source - 50mbps allocated. Now the data is getting stored in Target - On Disk, we've added buffer parameters to the task as below mentioned:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ah pu lw pv pw px py pz qa qb qc qd qe qf qg qh qi qj qk ql qm qn qo qp qq qr qs qt qu qv qw qx qy qz ra"&gt;"common_settings": {&lt;BR /&gt;"stream_buffers_number": 20,&lt;BR /&gt;"stream_buffer_size": 100,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ah pu lw pv pw px py pz qa qb qc qd qe qf qg qh qi qj qk ql qm qn qo qp qq qr qs qt qu qv qw qx qy qz ra"&gt;Source - Oracle&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ah pu lw pv pw px py pz qa qb qc qd qe qf qg qh qi qj qk ql qm qn qo qp qq qr qs qt qu qv qw qx qy qz ra"&gt;Target - Bigquery [commit mode is enabled]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ah pu lw pv pw px py pz qa qb qc qd qe qf qg qh qi qj qk ql qm qn qo qp qq qr qs qt qu qv qw qx qy qz ra"&gt;Still we can see the increase in Latency for all the tasks. Any suggestions on how can we bring down the latency and speed up the log processing time?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 12:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2469925#M11926</guid>
      <dc:creator>bindupenmatsa</dc:creator>
      <dc:date>2024-07-11T12:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Increase in Latency</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470129#M11931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285436"&gt;@bindupenmatsa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to increase logging component PERFORMANCE to trace then analyze the task log to find out if it is a source latency or target latency at the first place.&lt;/P&gt;
&lt;P&gt;Secondly, may I know why you use 'transactional apply mode' instead of 'bulk apply mode'. Transactional apply mode would cause latency issue usually.&lt;/P&gt;
&lt;P&gt;Thirdly, are those 7 CDC tasks using the same source endpoint and same target endpoint? If so, can you combine them into less number of tasks. If they have same source endpoint but different target endpoint, consider using logstream task.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Kent&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 23:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470129#M11931</guid>
      <dc:creator>Kent_Feng</dc:creator>
      <dc:date>2024-07-11T23:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Increase in Latency</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470131#M11932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285436"&gt;@bindupenmatsa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to what&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/181906"&gt;@Kent_Feng&lt;/a&gt;&amp;nbsp;shared, if the latency is *only* due to waiting for the source to commit the changes, there isn't much you can do besides work with the source DBA to have smaller / more frequent commits on the source transactions. Replicate only applies committed changes to the target.&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 23:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470131#M11932</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2024-07-11T23:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Increase in Latency</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470138#M11933</link>
      <description>&lt;P&gt;Besides&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121014"&gt;@Dana_Baldwin&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/181906"&gt;@Kent_Feng&lt;/a&gt;&amp;nbsp;, you may replace the GBQ target by &lt;A title="NULL Device" href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Null-File-Target/ta-p/1737871" target="_blank" rel="noopener"&gt;NULL Device&lt;/A&gt;, and keep all other settings as is, rerun the task again to see if latency disappears.... if Yes, it means the network and target GBQ cannot swallow the changes volume. If NO, the source side issue.&lt;/P&gt;
&lt;P&gt;Hope this helps to position where the bottleneck is.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 00:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470138#M11933</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-07-12T00:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Increase in Latency</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470198#M11953</link>
      <description>&lt;P&gt;Thanks team for the responses!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We've set PERFORMANCE to trace and we can see the latency on both Source and target. PFB log below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"[PERFORMANCE ]T: Source latency 337814.62 seconds, Target latency 337814.62 seconds, Handling latency 0.00 seconds"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We've tried Batch optimized apply mode earlier which didn't help to meet the real time CDC with huge latency.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We've 7 designed different tasks cause we were provided with&amp;nbsp;different SCN's, Schemas and few tables do not have primary key.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And we tried the same task settings with NULL target, there is no decrease in latency.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These were the IO of Source Backup folder :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;iops- 9661 iops for read and 1704 iops for write.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any other workaround for this issue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 07:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470198#M11953</guid>
      <dc:creator>bindupenmatsa</dc:creator>
      <dc:date>2024-07-12T07:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Increase in Latency</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470238#M11955</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285436"&gt;@bindupenmatsa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the information.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;[PERFORMANCE ]T: Source latency 337814.62 seconds, Target latency 337814.62 seconds, Handling latency 0.00 seconds&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This means the bottleneck is in the source side instead of target side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A title="Target latency" href="https://help.qlik.com/en-US/replicate/May2024/Content/Global_Common/Content/SharedEMReplicate/Console/Terminology.htm#:~:text=captured%20that%20change.-,Target%20latency,source%20database%20and%20when%20it%20is%20visible%20in%20the%20target%20database.,-Source%20endpoint" target="_blank" rel="noopener"&gt;Target latency&lt;/A&gt; equals &lt;A title="source latency" href="https://help.qlik.com/en-US/replicate/May2024/Content/Global_Common/Content/SharedEMReplicate/Console/Terminology.htm#:~:text=the%20current%20task.-,Source%20latency,event%20to%20its%20transaction%20log%20and%20when%20Replicate%20captured%20that%20change.,-Target%20latency" target="_blank" rel="noopener"&gt;source latency&lt;/A&gt; plus handling latency.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;We've tried Batch optimized apply mode earlier which didn't help to meet the real time CDC with huge latency.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's hard to understand why Batch optimized mode is worse.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;We've 7 designed different tasks cause we were provided with&amp;nbsp;different SCN's, Schemas and few tables do not have primary key.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Looks to me the entire tasks need to be designed or merged, because of:&lt;/P&gt;
&lt;P&gt;1- The redo logs were read 7 times. for example you have 10G changes (redo log files size) per day, then totally 70G files will be transferred between Oracle server and Qlik Replicate server via internet/intranet connection every day. Both I/O resources and network bandwidth are wasted.&lt;/P&gt;
&lt;P&gt;2- Too many connections were established in Oracle database. Let's say one task need 6 connections, then the total connections are more than 6*7=42. Almost same for target side. It occupy the source and target side database resources.&lt;/P&gt;
&lt;P&gt;3- Too many tasks not only impact the source and target side database, these tasks will impact each other as resource conflict etc which may lead latency.&lt;/P&gt;
&lt;P&gt;In short, looks to me it's too eelier to tell a workaround. I'd like to suggest PS engaged (charge based) to understand the hardware and software environment, and merge the existing tasks to less tasks, at most 2 or 3 tasks.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 07:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470238#M11955</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-07-12T07:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Increase in Latency</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470497#M11960</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285436"&gt;@bindupenmatsa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As John mentioned as entire tasks needs to re-designed. The last week we communicated the same over a call this is purely infrastructure side issue. Kindly engage the PS team asap to resolve the source latency issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Suresh&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 10:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Increase-in-Latency/m-p/2470497#M11960</guid>
      <dc:creator>sureshkumar</dc:creator>
      <dc:date>2024-07-13T10:50:07Z</dc:date>
    </item>
  </channel>
</rss>

