Got it will keep CDC in scope 🫡 On Sat, 28 Nov, 2026, 3:20 pm Aman Mittal, <[email protected]> wrote:
> Abhishek, > > Keep CDC, as data can be large. And we don't need to restart backups from > scratch. > > On Sat, 28 Nov, 2026, 1:09 pm Abhishek Chaudhary, < > [email protected]> wrote: > >> Hi James, Aman, >> >> Thanks, both. Here's how I'd scope the guide: >> >> - In scope: a planned, offline migration from MariaDB to PostgreSQL on >> the same Fineract release, with a reconciliation report (row counts, money >> totals, the trial balance, and each loan and savings account's balance) >> that an institution can show its supervisor. >> - Out of scope, stated as not supported: zero downtime (CDC can come >> later), running both databases in parallel with switch-over (what 24x365 >> banks would need), and upgrading Fineract in the same window. >> - Precautions: a timed dry run on a copy of production, a tested backup, >> and everything that writes to MariaDB stopped during the copy, including >> every Fineract instance. While checking, Fineract on PostgreSQL runs with >> scheduled jobs and outgoing messages (webhooks, SMS, events) off. >> - Rollback: the copy only reads from MariaDB, so before go-live, rolling >> back means pointing Fineract back at it. After go-live there's no simple >> way back (new data is only in PostgreSQL), so the guide marks that go/no-go >> point clearly. >> - Environments: the copy only needs network access to both databases, but >> stopping Fineract and switching it over differs (systemd, Docker Compose, >> Kubernetes), and managed databases have limits. The guide will note these; >> the POC is tested only on Docker Compose. >> >> Feel free to add any corrections, they'd be highly appreciated 😊 >> >> Thanks, >> Abhishek >> >> On Sat, 28 Nov, 2026, 5:03 am James Dailey, <[email protected]> >> wrote: >> >>> Abhishek - Downtime topic: >>> >>> In my experience, a few hrs of downtime over a weekend can be part of a >>> planned migration. In a regulated entity, this type of planned downtime is >>> subject to extensive process. >>> >>> In some places the banking Supervisor needs to see the plan, the test, >>> and to get timely information about any issue. Documentation of how this >>> works should be part of the "technology" and explained well. How does the >>> migration do checks on validity? Reconciliation? >>> >>> Anything that reduces confidence in the country's banking system can be >>> a negative. Think "bank run". >>> >>> Further, many 24x365 banking operations with 99.9999% uptime would treat >>> a few hrs downtime as a failure. So, from a design point of view, they >>> would have systems running in parallel with switching over logic. That is >>> likely beyond your scope but it should be mentioned as "not supported" and >>> "outside of scope". >>> >>> (Aside : Data pipes and ETLs should be addressable and schedulable. See >>> Apache Airflow ? ) >>> >>> On the other hand, for non-banking financial institutions (NBFIs) the >>> storyis a bit different. They don't have public deposits and don't have >>> banking supervision (for the most part). Unless they are of significant >>> importance as a payments processor, going down is entirely a matter of >>> reputation risk. It's not uncommon for lending companies to have regularly >>> scheduled downtimes. >>> >>> At the far end of the spectrum are small lenders like MFIs that may be >>> closed all weekend and a few hrs of downtime is just a minor internal >>> issue. >>> >>> Thanks, >>> >>> James >>> >>> Sent from Gmail Mobile >>> >>> On Fri, Nov 27, 2026 at 12:18 PM Abhishek Chaudhary < >>> [email protected]> wrote: >>> >>>> Hi all, >>>> >>>> Following up on this thread after the Community Sync, I'd like to take >>>> a first step for FSIP-9: an offline-copy POC with Apache SeaTunnel, as Aman >>>> suggested above, written up as a migration guide (settings, security, >>>> compute needs). >>>> >>>> This picks up from the March thread "End support of mySQL and MariaDB; >>>> migration tooling related to FSIP-9". Jose noted that pgloader struggles >>>> with large transaction and journal-entry tables, and Sifiso mentioned >>>> around 40 MFIs on MariaDB, so I'll start with MariaDB and run pgloader on >>>> the same data as a baseline. On Matrix, Aman mentioned that a few hours of >>>> downtime can be acceptable in banking (Aman, please correct me), so I'd >>>> start with an offline copy and leave zero-downtime/CDC for a later phase. >>>> >>>> Plan: >>>> >>>> 1. Seed MariaDB, on the same Fineract release as the target, with the >>>> integration tests (they already run on MariaDB in CI and cover savings, >>>> deposits and shares) plus part of the Cucumber E2E suite. >>>> 2. Start Fineract on a fresh PostgreSQL so Liquibase creates the schema. >>>> 3. Copy the data with SeaTunnel's JDBC to JDBC connector [1], and with >>>> pgloader for comparison. >>>> 4. Verify: row counts per table, sums of money columns and the trial >>>> balance, Fineract starting on the copied data, and the same API responses >>>> from both instances. >>>> >>>> What I've found so far: >>>> >>>> - Jira and GitHub have no earlier SeaTunnel work for Fineract; on this >>>> list it has only been proposed so far. >>>> - The E2E suite has 200 feature files, almost all loans (only 2 for >>>> savings), and CI only runs it against PostgreSQL, so it may need fixes to >>>> run on MariaDB. >>>> - Liquibase seeds reference data (permissions, configurations, codes, >>>> reports), and about 200 changesets are MySQL-only and 220 PostgreSQL-only. >>>> Report SQL, for example, is seeded in a PostgreSQL dialect, so the copy >>>> can't simply overwrite seeded tables, and DATABASECHANGELOG must not be >>>> copied. >>>> - Other things to check: sequences, boolean columns, dates/time zones, >>>> the tenant store, user-created datatables, and custom reports written in >>>> MySQL SQL. >>>> >>>> Questions: >>>> >>>> 1. Sifiso, Campbell: could you share rough sizes (database size, loan >>>> and transaction counts) and the Fineract release you run, so the compute >>>> numbers are realistic? >>>> 2. Does anyone need MySQL as a source, or is MariaDB enough to start? >>>> 3. Which seeded tables should keep the target's rows (e.g. reports) and >>>> which should take the source's (e.g. configurations)? >>>> 4. Would a page in the deployment section of fineract-doc be the right >>>> home for the guide? >>>> >>>> Thanks, >>>> Abhishek >>>> >>>> [1] >>>> https://www.google.com/url?q=https://seatunnel.apache.org/docs/getting-started/recipes/jdbc-to-jdbc/&source=gmail&ust=1795896497484000&sa=E >>>> >>>> On Thu, Nov 12, 2026 12:01 PM, Aman Mittal < >>>> [email protected]> wrote: >>>> >>>>> I researched that over 80% of migration problems can be solved with >>>>> Apache SeaTunnel (https://seatunnel.apache.org/) itself, as a sister >>>>> project. We could build around it for more Fineract-specific needs. >>>>> >>>>> On Thu, Nov 12, 2026 at 11:34 AM Aman Mittal < >>>>> [email protected]> wrote: >>>>> >>>>>> Also looking for Apache SeaTunnel if it can replace the need. >>>>>> >>>>>> On Thu, Nov 12, 2026 at 10:27 AM Aman Mittal < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> We have long voted on and accepted FSIP-9. Since the community >>>>>>> suggested and the majority agreed, provided that "Proper migration steps >>>>>>> were considered for Postgres," I want to revive discussions on the next >>>>>>> steps. >>>>>>> >>>>>>> >>>>>>> https://cwiki.apache.org/confluence/spaces/FINERACT/pages/406622736/FSIP-9+Standardize+on+PostgreSQL >>>>>>> >>>>>>> I think we can brainstorm ideas for the migration steps. One of the >>>>>>> suggestion it received was that we can use pgloader. However, many >>>>>>> companies or vendors are concerned that their data volume may be large >>>>>>> based on their organizational size. >>>>>>> >>>>>>> I suggest we create a dedicated plugin or perhaps a shared plugin >>>>>>> that exists outside of Fineract Core. >>>>>>> >>>>>>> What the plugin will do: (It will parallelly sync and monitor the >>>>>>> migration in real time 1:1 with MariaDB or MySQL). Then the vendors can >>>>>>> implement and sync to PostgreSQL via CDC or other available methods. >>>>>>> >>>>>>> When the data keeps syncing to PostgreSQL. Vendors can validate and >>>>>>> test schema changes live without incurring downtime. >>>>>>> >>>>>>> HARD Requirement: Plugin dependency should be ASF compliant >>>>>>> (Category A dependencies) >>>>>>> >>>>>>> I think this idea is worth exploring. >>>>>>> >>>>>>> Regards >>>>>>> Aman >>>>>>> >>>>>>
