<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Suyog Kalambate on Medium]]></title>
        <description><![CDATA[Stories by Suyog Kalambate on Medium]]></description>
        <link>https://medium.com/@suyog.kalambate?source=rss-1dec044f7331------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ze_rtG9C6S2zP5qK</url>
            <title>Stories by Suyog Kalambate on Medium</title>
            <link>https://medium.com/@suyog.kalambate?source=rss-1dec044f7331------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:23:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suyog.kalambate/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to install and configure the STRIIM Tool]]></title>
            <link>https://blog.searce.com/how-to-install-and-configure-the-striim-tool-c1a57e71ec5e?source=rss-1dec044f7331------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1a57e71ec5e</guid>
            <category><![CDATA[striim-installation]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cdc]]></category>
            <category><![CDATA[striim]]></category>
            <category><![CDATA[homogeneous-migration]]></category>
            <dc:creator><![CDATA[Suyog Kalambate]]></dc:creator>
            <pubDate>Mon, 31 Jul 2023 06:37:19 GMT</pubDate>
            <atom:updated>2023-07-31T06:57:05.490Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In today’s data-driven world, organizations often face the need to migrate large volumes of data from one database to another. This process can be complex and time-consuming if not managed effectively. However, with the right tools and techniques, you can simplify and streamline the data migration process. In this blog post, we will explore the installation and configuration of striim — a powerful platform for homogenous data migration — and guide you through the steps required to successfully migrate your databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JGo-kwWgdQfZt-bnhZJkw.png" /></figure><p><strong>What is Striim? </strong><br>Striim is a real-time data integration and streaming analytics platform that enables organisations to move and process data across a wide range of sources and targets. It provides robust capabilities for data ingestion, transformation, and delivery, making it an ideal choice for homogenous data migration scenarios.</p><p><strong>Prerequisites: </strong><br>Before we dive into the installation and configuration process, ensure you have the following prerequisites in place:</p><p><strong>Step 1: </strong>System Requirements- Before installing Striim, ensure that your system meets the minimum requirements. Striim can run on both Linux and Windows platforms. Here are the recommended system specifications:</p><ul><li>Operating System: Linux (Red Hat, CentOS, or Oracle Linux) or Windows (Windows Server 2012 or later)</li><li>Processor: Intel Core i5 or equivalent</li><li>RAM: 8 GB or higher</li><li>Disk Space: 20 GB or higher</li></ul><p><strong>Step 2: </strong>Obtain the Striim Installation Package, Visit the Striim website (<a href="https://www.striim.com/">https://www.striim.com</a>) and navigate to the downloads section. Download the appropriate installation package for your operating system. Make sure to choose the version compatible with your database system.</p><p><strong>Step 3: </strong>Install Striim Follow these steps to install Striim:</p><p><strong>For Linux:</strong></p><ol><li>Extract the downloaded package using the following command:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_V5slbHrY9CRhSBQiyRWg.png" /></figure><p><strong>For Windows:</strong></p><ol><li>Double-click the downloaded installation package to launch the installer.</li><li>Follow the on-screen instructions to complete the installation. Choose an appropriate installation directory and provide necessary permissions.</li></ol><p><strong>Step 4:</strong> Configure Striim for Homogeneous Data Migration Once Striim is installed, it’s time to configure it for homogeneous data migration. Here are the general steps involved:</p><p>Installation Steps: Follow these steps to install Striim on your system:</p><ol><li>Extract the installation package: After downloading the Striim installation package, extract its contents to a directory of your choice.</li><li>Start Striim: Navigate to the extracted directory and run the appropriate startup script based on your operating system. For example, on Linux, execute the “startStriim.sh” script.</li><li>Edit /opt/striim/conf/startUp.properties, edit the following property values (removing any # characters and spaces from the beginning of the lines), and save the file:</li></ol><ul><li><strong>WAClusterName:</strong> a name for the Striim cluster (note that if an existing Striim cluster on the network has this name, Striim will try to join it)</li><li><strong>CompanyName:</strong> If you specify keys, this must exactly match the associated company name. If you are using a trial license, any name will work.</li><li><strong>ProductKey and LicenseKey: </strong>If you have keys, specify them, otherwise leave blank to run Striim on a trial license. Note that you cannot create a multi-server cluster using a trial license.</li><li><strong>Interfaces:</strong> If the system has more than one IP address, specify the one you want Striim to use, otherwise leave blank and Striim will set this automatically.</li><li>If not hosting the metadata repository on the internal Derby instance with its default settings, see <a href="https://www.striim.com/docs/platform/en/configuring-striim-s-metadata-repository.html#setting-startup-properties-for-the-metadata-repository">Setting startUp.properties for the metadata repository</a>.</li></ul><p>4. By default, a Striim server uses a maximum of 4GB. To change that, edit striim/conf/startUp.properties and change the value of MEM_MAX. To increase maximum memory to, for example, 8GB, change the value to 8192m:<br> MEM_MAX=8192m</p><p>5. sometimes striim job get failed due to exceeded heap usage threshold of 95.0 <br> To avoid the above error need to uncomment <strong>EvictThreshold=66.0</strong> in startUp.properties file and restart the striim.</p><p>6. Installing third-party drivers in Striim Platform (MySQL/MariaDB)</p><p>This driver must be installed in every Striim server that will read from or write to MySQL.<br> a.Download the Connector/J 8.0.27 package from <a href="https://downloads.mysql.com/archives/c-j/">https://downloads.mysql.com/archives/c-j/</a> and extract it.</p><p>b. Copy mysql-connector-java-8.0.27.jar to striim/lib.</p><p>c.Stop and restart Striim (see <a href="https://www.striim.com/docs/platform/en/starting-and-stopping-striim-platform.html">Starting and stopping Striim Platform</a>).</p><p>7. Reboot the system and verify that Striim has restarted automatically.</p><p>For Ubuntu 16.04 or later, enter:<br> sudo systemctl enable striim-node<br> sudo systemctl start striim-node</p><p>8. Access the Striim console: Once Striim is up and running, open a web browser and enter the URL “<a href="http://localhost:9080/">http://localhost:9080</a>&quot; (assuming you are running Striim locally). This will take you to the Striim console.</p><p>Configuration Steps: After successfully installing Striim, proceed with the following configuration steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cyia1vsl6awQOc8CETf4Q.png" /></figure><ol><li><strong>Define source and target databases:</strong> In the Striim console, define the source and target databases by specifying the necessary connection details. This involves providing the database type, server address, port number, database name, and authentication credentials.</li><li><strong>Create a data flow:</strong> In Striim, a data flow represents the pipeline for migrating data from the source to the target database. Define a new data flow by selecting the appropriate source and target database configurations.</li><li><strong>Define data mappings and transformations:</strong> Once the data flow is created, define the mappings and transformations required to ensure data compatibility between the source and target databases. Striim offers a user-friendly interface to define these operations visually.</li><li><strong>Configure error handling and monitoring:</strong> Set up error handling and monitoring mechanisms to track the progress of your data migration process. Configure notifications and alerts to promptly address any issues or errors that may occur during the migration.</li><li><strong>Validate and test the migration: </strong>Before initiating the actual data migration, validate the configured data flow and mappings by performing test migrations on a subset of data. This allows you to identify and resolve any potential issues before migrating the entire dataset.</li><li><strong>Initiate the data migration:</strong> Once you are confident in the configuration and have successfully tested the migration process, initiate the full data migration by running the data flow in Striim.</li></ol><p><strong>Conclusion</strong>: <br>Data migration is a critical process that requires careful planning and execution. Striim provides a comprehensive solution for homogenous data migration, offering powerful capabilities to simplify and streamline the process. By following the installation and configuration steps outlined in this blog, you can leverage Striim’s features to efficiently migrate your databases while ensuring minimal disruption to your business operations. Remember to thoroughly test and validate the migration process before performing the final migration to guarantee a smooth and successful data transition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1a57e71ec5e" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/how-to-install-and-configure-the-striim-tool-c1a57e71ec5e">How to install and configure the STRIIM Tool</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LOB Migration in PostgreSQL]]></title>
            <link>https://blog.searce.com/lob-migration-in-postgresql-b81dad3cf00d?source=rss-1dec044f7331------2</link>
            <guid isPermaLink="false">https://medium.com/p/b81dad3cf00d</guid>
            <category><![CDATA[postgresql-database]]></category>
            <category><![CDATA[lob]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Suyog Kalambate]]></dc:creator>
            <pubDate>Fri, 10 Jun 2022 06:18:01 GMT</pubDate>
            <atom:updated>2022-06-10T06:52:17.202Z</atom:updated>
            <content:encoded><![CDATA[<h3>LOB Migration in PostgreSQL DB</h3><p>Why are we here?</p><p>Migrating <a href="https://www.postgresql.org/docs/13/largeobjects.html">Large Object</a> structures in terabyte-scale PostgreSQL databases can be super challenging and time-consuming. For tables that GCP-DMS cannot migrate, we can leverage <em>pg_dump</em> and <em>pg_restore</em> for the migration of multiple tables in parallel from the source database to the destination. However, the same approach takes significantly longer in the case of Large Objects because of how Large Objects are stored in PostgreSQL. In fact, Large Objects in PostgreSQL can be the single gating item to extend the downtime required for migration multi-fold. Fortunately, there is a way to overcome this limitation and reduce the time required to migrate Large Objects by ~99%.</p><p>This solution can be easily implemented using scripts (Python) that can be executed individually or optionally as a plug-and-play script in conjunction with other scripts. This makes the solution scalable for the migration of Large Objects of any size in PostgreSQL to Cloud SQL.</p><h3>LOB Summary</h3><p>However, for Large Objects, pg_dump and pg_restore prove to be ineffective, since we only have a single table, pg_largeobject, which restricts both pg_dump and pg_restore to creating just a single thread for execution. The utility pg_dump and pg_restore, rely on exporting data to disk and importing data from disk respectively, before the data is written to disk during the export operation it is first written to memory, we took advantage of this fact in our solution, where we would fetch data related to Large Objects and keep them in memory and instead of writing the data to disk, it was written directly to the database. This approach brought the total downtime needed from 12.5 hours to just 18 minutes. A reduction of ~98% in downtime is required.</p><p>This script would only target LOB tables, where the loid data would be fetched from the source Cloud SQL instance, and instead of storing it to disk like the pg_dump command would, it would instead save it in memory. The loid data is then restored in the destination Cloud SQL instance, freeing up memory in the VM instance for other tasks.</p><p>The script generates a temporary folder called tmp in which each loid’s metadata is saved. These are simple text files that will be labeled as done once they have been successfully pushed to the destination source. This is especially crucial since it ensures that no data is overwritten if the script is run again as a fail resumption strategy. The script also has a feature that produces a temporary file in the same tmp folder to indicate whether the execution was successful or failed due to unforeseen circumstances. This allows the script to resume from the last object written.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*AhBolFYAAQnhlpO0vkQ1pg.png" /></figure><p>Git: <a href="https://github.com/searceinc/postgresql-lob-migration">https://github.com/searceinc/postgresql-lob-migration</a></p><p>This script makes use of the concurrent. future multithreading functionality, which provides a high-level interface for asynchronously processing callables. Psycopg connection is used to complete PostgreSQL operations.</p><p>Comparing the time taken by the initial and updated script for different sizes of LOB is mentioned in the tables below-:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*SBNTjorK1D9KfCdRJQ6Ovw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b81dad3cf00d" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/lob-migration-in-postgresql-b81dad3cf00d">LOB Migration in PostgreSQL</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>