[Sunflower] Fiscal year rollover testing

[Sunflower] Fiscal year rollover testing

Test status: completed

Overview

  • This document includes testing of Fiscal Year Rollover (FYR) in sunflower release. 

    • The testing triggered from UI for the ledger with generated amount of defined data set (Data quantity**: 50000 orders with Open status and 50000 orders with Pending status).

  • Testing include two different phases of the fiscal year transition process:

    • #1 phase: Test Fiscal Year Rollover - is a risk free simulation pre-step to #2 phase which includes only Finance part of the data (to preview how the rollover settings will affect funds, budgets, and encumbrances).

    • #2 phase: Fiscal Year Rollover - perform a permanent changes. It is the actual process which move financial data, budgets, and encumbrances into the new fiscal year. It includes not only Finance but Orders parts of the data too.

  • The purpose of testing is to define duration of those two phases, to do comparison between current and previous results of each phase, to find any trends for resource utilization. To recommend improvements how to make it work better if any confirmed.

    • Previous successful testing for #2 phase took 3 hours and 30 minutes

  • Jiras/ links:

Summary

  • Running FYR completed successfully.

  • Eureka based environment (with CSP 6 v13.0.10 - https://folio-org.atlassian.net/browse/MODORDERS-1388 ): 

    • #1 Phase Test FYR took 1 hours 18 minutes, completed successfully.

    • #2 Phase actual FYR took 2 hours 15 minutes, completed successfully. During this phase budgetsClosingRollover and finanacialRollover successed in 2 hours and 7 minutes and ordersRollover took 8 minutes.

  • Service CPU utilization for both phases was under 8% on eureka environment except a spike at ordersRollover stage of test rollover (mod-orders-storage - 51%, mod-finance-storage 39%).

  • DB CPU usage was on level of 34% (db.r7g.xlarge) during both phases of FYR. Previously on quesnelia release xlarge db used 39%.

  • No memory leaks were found.

  • FYR retesting with default memory for mod-finance, mod-finance-storage completed successfully with the same phases durations.

Recommendations & Jiras

  • To solve UI issues on budget and transaction tabs memory allocated to:

    • mod-finance and mod-finance-storage: "memory": 2048, "memoryReservation": 1740, -Xmx1536m

    • sidecar-mod-finance, mod-finance-storage: "memoryReservation": 870, -Xmx768m

Errors

  • "POST /finance-storage/ledger-rollovers HTTP_1_1" 504 0 rt=400.006 uct="" This error happen when FYR triggered from UI and doesn’t affect FYR itself. To get status for the processes use Logs tab.

  • finance/budget/{budget_UUID}/view 2026-03-17 14:45:15,365 ERROR [io.ver.cor.net.imp.ConnectionBase] (vert.x-eventloop-thread-0) Connection reset {
    "errors" : [ {
    "message" : "Failed to proxy request: response timeout",
    "type" : "InternalServerErrorException",
    "code" : "service_error",
    "parameters" : [ {
    "key" : "cause",
    "value" : "Connection reset"
    } ]
    } ],
    "total_records" : 1
    }

Test Runs and Results

Data size: 100K orders (50K orders in open status, 50K - pending), 200K order lines, 400K transactions. 

Test #

Scenario

Load level

Fiscal year rollover duration Orchid*

Fiscal year rollover duration

Poppy*

FYR duration

Quesnelia (Eureka)

FYR duration

Quesnelia (non-Eureka)

FYR duration

Sunflower (Eureka)^^^

Comments

Test #

Scenario

Load level

Fiscal year rollover duration Orchid*

Fiscal year rollover duration

Poppy*

FYR duration

Quesnelia (Eureka)

FYR duration

Quesnelia (non-Eureka)

FYR duration

Sunflower (Eureka)^^^

Comments

1

Test Fiscal year rollover

1 rollover at a time

-

3.5 hours

3.5 hours

3 hours 20 minutes

1 hour 20 minutes

Completed

2

Fiscal year rollover

1 rollover at a time

6 days (failed with 504 error)

29 hours

8 hours, failed due to 500(server error)

9 hours 7 minutes

2 hours 15 minutes

Completed

*Results are taken from the previous test report. Details can be found at the link: [Orchid] Fiscal year rollover testing

*Results are taken from the previous test report. Details can be found at the link: [Poppy] Fiscal year rollover testing

*Results are taken from the previous test report. Details can be found at the link: https://folio-org.atlassian.net/wiki/x/EIBGIQ

**Data structure can be found at the link: Fiscal year rollover testing

*** Tests carried out with raised memory for mod-finance and mod-finance-storage to solve UI issues on Budget and Transactions tabs.

Instance CPU Utilization

This graph shows how instances utilize CPU during the tests.

2026-03-17_14h12_58-20260317-121258.png

 

Service CPU Utilization

Test FYR & FYR

Data transition process happen on database side and it explains low cpu utilization from services. Maximum CPU utilization by services during tests were not over 8% in all phases except of spikes on ordersRollover process mod-finance-storage - 39%, mod-orders-storage - 51%

image-20260317-133623.png

Memory Utilization

Test FYR & FYR

This graph shows memory usage during all phases of FYR. After tests completed no signs of memory growing trends for mod-finance-storage.

image-20260317-134258.png

Memory usage stayed on the same level after tests stopped.

image-20260317-135116.png

Database metrics

DB CPU Utilization

Test FYR & FYR

DB CPU usage during all phases: 34%. Except of spike to 78% at the last ordersRollover step.

image-20260317-130003.png

DB Connections

Test FYR & FYR

DB connections stay stable on 1300 level during all phases of FYR.

image-20260317-125532.png

 

DB Load

Test FYR & FYR

image-20260319-072054.png

Top SQL

Test FYR & FYR

image-20260319-072110.png

DB metrics (additional)

Transactions per second - under 5, spike at the last ordersRollover step - 19.

image-20260319-072451.png

CPU utilization

  • (08:15–11:55) Dominated by nice (~30%)

    • Instance is moderately loaded

    • Most CPU is from low-priority/background processes

  • Spike at ~12:00

    • ordersRollover process

image-20260319-073057.png

 

This graph show there’re no deadlocks

image-20260319-072224.png

 

 

Appendix

Infrastructure

PTF -environment SELCTLS2 - TLS

Folio

  • 13 r7i.2xlarge EC2 instances located in US East (N. Virginia)us-east-1

  • db.r7g.xlarge database instance, writer

  • MSK - ptf-loc-1

    • 6 kafka.m7g.large brokers in 2 zones (3 per zone)

    • Apache Kafka version 3.9.x

    • EBS storage volume per broker 300 GiB

    • auto.create.topics.enable=true

    • log.retention.minutes=480

    • default.replication.factor=2

  • Open Search ptf-loc:

    • Data node - r7g.2xlarge.search (4)

    • Master node - m7g.large.search (3)

  • DB instance parameter group

    fse-aurora-postgresql16-7k-db-connection - 7000 db connections instead of 5000 in default parameter group (the only difference).

 

Dataset

Finance data prepared in accordance to recommendation

  • oganizations - 1000

  • orders - 100000

  • polines - 200000

  • pieces - 400000

Other data

Table

cs00000int

cs00000int_0001

cs00000int_0002

cs00000int_0003

cs00000int_0004

Table

cs00000int

cs00000int_0001

cs00000int_0002

cs00000int_0003

cs00000int_0004

mod_entities_links.authority

12,105,793

950,424

817,539

814,519

811,797

mod_inventory_storage.holdings_record

301,597

7,454,426

7,495,171

449,228

7,900,986

mod_inventory_storage.instance

21,209,536

7,142,898

7,805,409

1,235,132

7,027,718

mod_inventory_storage.item

182

10,137,887

9,068,213

547,896

9,346,449

mod_source_record_storage.marc_records_lb

34,876,853

—

—

—

—

mod_source_record_storage.raw_records_lb

46,896,807

—

—

—

—

mod_source_record_storage.records_lb

46,896,807

—

—

—

—

Modules

Cluster Resources - selctls2-pvt (Tue Mar 17 14:16:05 UTC 2026) Module Task Definition Revision Module Version Task Count Mem Hard Limit Mem Soft Limit CPU Units Xmx Metaspace Size Max Metaspace Size mod-licenses 13 mod-licenses:6.2.4 0 2480 2312 64 1792 384 512 mod-quick-marc 13 mod-quick-marc:7.0.0 1 2288 2176 64 1664 384 512 mod-data-export-spring 13 mod-data-export-spring:3.5.2 1 2048 1844 64 1536 384 512 edge-dematic 9 edge-dematic:2.4.3-SNAPSHOT.168.tls 1 1024 896 65 768 88 128 mod-data-import 15 mod-data-import:3.3.6 1 2048 1844 64 1292 384 512 mod-data-export 13 mod-data-export:5.3.0 1 2592 2480 64 1440 88 1024 mod-remote-storage 19 mod-remote-storage:3.4.3 2 4920 4472 1024 3960 512 512 mod-finance-storage 21 mod-finance-storage:8.8.7 2 2048 1740 128 1536 88 128 mod-mosaic 9 mod-mosaic:1.0.0 2 1024 896 64 768 88 128 mod-ebsconet 9 mod-ebsconet:2.4.0 2 1248 1024 64 700 128 256 edge-sip2 5 edge-sip2:3.4.2.tls 2 1024 896 64 768 88 128 mod-consortia-keycloak 15 mod-consortia-keycloak:1.7.3-SNAPSHOT.80.tls 2 5136 4776 512 4416 384 512 mod-tags 13 mod-tags:2.4.1 2 1024 896 64 768 88 128 mod-notify 13 mod-notify:3.4.1 2 1024 896 64 768 88 128 mod-inventory-update 9 mod-inventory-update:4.1.0 2 1024 896 64 768 88 128 mod-configuration 13 mod-configuration:5.12.1 2 1024 896 64 768 88 128 edge-caiasoft 18 edge-caiasoft:2.4.1-SNAPSHOT.131.tls 2 1024 896 65 768 88 128 mod-gobi 9 mod-gobi:3.0.2 2 1024 896 64 768 88 128 mod-graphql 10 mod-graphql:1.13.1 2 1024 896 64 768 88 128 mod-erm-usage 12 mod-erm-usage:5.1.1 2 2800 2550 64 1800 384 512 mod-batch-print 13 mod-batch-print:1.3.0 2 1024 896 64 768 88 128 mod-copycat 13 mod-copycat:1.8.1 2 1024 896 64 768 88 128 mod-entities-links 17 mod-entities-links:4.0.3 2 2592 2483 64 1440 0 1024 pub-edge 5 pub-edge:2025.09.19 2 1024 896 64 768 0 0 mod-orders 18 mod-orders:13.0.10 2 2048 1740 1024 1024 384 512 kong 11 kong:3.9.2 2 6144 6144 64 768 88 128 edge-patron 8 edge-patron:5.3.3.tls 2 1024 896 64 768 88 128 edge-ncip 8 edge-ncip:1.10.3.tls 2 1024 896 64 768 88 128 mod-users-bl 9 mod-users-bl:7.10.4 2 1440 1152 64 922 88 128 mod-inventory-storage 21 mod-inventory-storage:29.0.18 2 4096 3690 1024 3076 384 512 mod-invoice 17 mod-invoice:6.0.4 2 4320 3456 512 3072 88 128 mod-sender 9 mod-sender:1.14.2 2 1024 896 64 768 88 128 mod-login-keycloak 12 mod-login-keycloak:3.0.4-SNAPSHOT.1113.tls 2 1024 896 128 512 88 256 mgr-tenant-entitlements 13 mgr-tenant-entitlements:3.1.10.tls 2 1024 896 64 512 88 256 mod-data-export-worker 13 mod-data-export-worker:3.4.14 2 3072 2800 64 2048 384 512 mod-circulation-storage 17 mod-circulation-storage:17.4.3 2 2880 2592 1024 1814 384 512 mod-calendar 13 mod-calendar:3.3.1 2 2048 1536 64 1024 96 256 mod-event-config 13 mod-event-config:2.9.1 2 1024 896 64 768 88 128 mod-courses 13 mod-courses:1.4.13 2 1024 896 64 768 88 128 mod-circulation-item 15 mod-circulation-item:1.2.2 2 2880 2592 256 0 0 0 mod-email 13 mod-email:1.19.1 2 2800 2550 64 1800 384 512 mod-di-converter-storage 15 mod-di-converter-storage:2.4.3 2 2048 1792 512 1536 88 128 mod-circulation 15 mod-circulation:24.5.0-SNAPSHOT.756 2 2880 2592 1024 1814 384 512 mod-pubsub 13 mod-pubsub:2.16.3 2 1536 1440 1024 922 384 512 edge-rtac 19 edge-rtac:2.9.4-SNAPSHOT.287.tls 2 2048 1792 256 1536 88 128 edge-orders 10 edge-orders:3.2.3-SNAPSHOT.184.tls 2 1024 896 65 768 88 128 mod-users 19 mod-users:19.5.4 2 1024 896 256 768 88 128 mod-template-engine 13 mod-template-engine:1.22.2 2 1024 896 64 768 88 128 mod-audit 13 mod-audit:2.11.4 2 1024 896 64 768 88 128 mod-source-record-manager 17 mod-source-record-manager:3.10.11 2 5600 5000 1024 3500 384 512 mod-feesfines 13 mod-feesfines:19.3.3 2 1024 896 64 768 88 128 edge-users 6 edge-users:2.1.0-SNAPSHOT.1376.tls 2 1024 896 128 768 88 128 mod-service-interaction 13 mod-service-interaction:4.2.5 2 2048 1844 64 1290 384 512 mod-dcb 13 mod-dcb:1.3.10 2 2048 1844 64 1292 384 512 mod-patron 9 mod-patron:6.3.6 2 1024 896 64 768 88 128 edge-connexion 7 edge-connexion:1.4.1-SNAPSHOT.104.tls 2 1024 896 65 768 88 128 mod-organizations-storage 13 mod-organizations-storage:4.9.2 2 1024 896 64 700 88 128 edge-erm 8 edge-erm:1.4.1.tls 2 1024 896 64 768 88 128 mod-ncip 9 mod-ncip:1.16.1 2 1024 896 64 768 88 128 mod-agreements 15 mod-agreements:7.2.4 2 4096 4096 64 4096 0 0 mod-organizations 9 mod-organizations:2.1.1 2 1024 896 64 768 88 128 mod-serials-management 15 mod-serials-management:2.0.4 2 2480 2312 512 1792 384 896 mod-settings 13 mod-settings:1.2.0 2 1024 896 64 768 88 128 mod-search 18 mod-search:5.0.12 2 6592 6480 512 5180 512 1024 mod-record-specifications 13 mod-record-specifications:2.0.3 2 2048 1592 64 1440 256 512 edge-inventory 5 edge-inventory:2.2.1-SNAPSHOT.1630.tls 2 1024 896 128 768 88 128 mod-orders-storage 21 mod-orders-storage:13.9.7 2 1024 896 512 700 88 128 mod-erm-usage-harvester 12 mod-erm-usage-harvester:5.1.1 2 1024 896 64 768 88 128 mod-password-validator 13 mod-password-validator:3.4.1 2 1440 1298 64 768 384 512 mod-fqm-manager 13 mod-fqm-manager:4.0.15 2 3000 2600 64 2048 88 512 edge-dcb 9 edge-dcb:1.3.6-SNAPSHOT.67.tls 2 1024 896 65 768 88 128 mod-bulk-operations 15 mod-bulk-operations:2.2.9 2 3072 2600 64 2048 384 512 mod-finance 14 mod-finance:5.1.2 2 2048 1740 256 1536 88 128 mod-tlr 12 mod-tlr:1.1.9 2 1024 896 64 768 88 256 mod-lists 13 mod-lists:3.1.6 2 6000 2600 64 2048 88 512 mod-permissions 13 mod-permissions:6.7.1 2 1684 1544 64 1024 384 512 mod-marc-migrations 10 mod-marc-migrations:2.0.5 2 2880 2592 64 1814 384 512 mgr-applications 11 mgr-applications:3.0.6-SNAPSHOT.1303.tls 2 1024 896 65 512 88 256 mgr-tenants 9 mgr-tenants:3.0.6-SNAPSHOT.1133.tls 2 1024 896 65 512 88 256 edge-ea-data-export 1 edge-ea-data-export:4.4.0.tls 2 1024 896 64 768 88 128 edge-oai-pmh 7 edge-oai-pmh:2.11.0-SNAPSHOT.189.tls 2 1512 1360 65 1440 384 512 mod-okapi-facade 11 mod-okapi-facade:3.0.0-SNAPSHOT.45.tls 2 1024 896 65 768 88 128 mod-rtac 13 mod-rtac:3.8.3 2 2048 1792 256 1536 88 128 mod-task-list 3 mod-task-list:1.10.0 2 1024 896 64 768 88 128 mod-scheduler 14 mod-scheduler:3.0.8.tls 2 1024 896 64 512 88 256 mod-circulation-bff 13 mod-circulation-bff:1.1.9 2 2880 2592 128 1814 88 128 mod-inventory 21 mod-inventory:21.1.19 2 2880 2592 1024 1814 384 512 mod-requests-mediated 19 mod-requests-mediated:1.2.11 2 3000 2048 256 1536 88 192 mod-patron-blocks 13 mod-patron-blocks:1.12.3 2 1024 896 64 768 88 128 edge-fqm 8 edge-fqm:4.0.2.tls 2 1024 896 64 768 88 128 nginx-edge 5 nginx-edge:2025.09.19 2 1024 896 64 0 0 0 mod-invoice-storage 19 mod-invoice-storage:6.0.1 2 3744 3072 2048 2048 384 512 mod-reading-room 13 mod-reading-room:1.2.1 2 1024 896 64 768 88 128 mod-oai-pmh 11 mod-oai-pmh:3.15.4 2 4096 3690 64 3076 384 512 mod-notes 13 mod-notes:7.0.0 2 1024 896 64 952 384 512 mod-kb-ebsco-java 13 mod-kb-ebsco-java:6.0.1 2 1024 896 64 768 88 128 mod-eusage-reports 12 mod-eusage-reports:3.0.0 2 1024 896 64 768 88 128 folio-keycloak 14 folio-keycloak:26.5.1.tls 3 3500 2700 2048 2548 0 0 mod-roles-keycloak 13 mod-roles-keycloak:3.0.14-SNAPSHOT.1107.tls 4 4096 3688 128 3076 88 256 mod-users-keycloak 12 mod-users-keycloak:3.0.12-SNAPSHOT.860.tls 4 4096 3688 128 3076 88 256 mod-remote-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-finance-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 870 64 768 0 96 mod-mosaic - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-ebsconet - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-consortia-keycloak - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 65 256 0 96 mod-tags - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-notify - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-inventory-update - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-configuration - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-gobi - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-licenses - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-graphql - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-erm-usage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-roles-keycloak - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 65 256 0 96 mod-batch-print - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-copycat - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-entities-links - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-orders - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-users-bl - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-inventory-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 768 512 256 0 128 mod-invoice - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-sender - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-login-keycloak - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 65 256 0 96 mod-data-export-worker - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 768 64 256 0 128 mod-circulation-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-calendar - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-event-config - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-courses - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-circulation-item - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-email - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-di-converter-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-circulation - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-pubsub - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 512 256 0 96 mod-users - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-template-engine - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-audit - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-source-record-manager - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-quick-marc - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-feesfines - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-service-interaction - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-dcb - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-patron - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-data-export-spring - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-organizations-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-ncip - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-agreements - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-organizations - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-serials-management - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-settings - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-data-import - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-search - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-record-specifications - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-orders-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-erm-usage-harvester - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-password-validator - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-fqm-manager - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-bulk-operations - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1500 768 64 256 0 128 mod-finance - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 870 64 768 0 96 mod-tlr - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-lists - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 768 715 64 256 0 96 mod-permissions - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-users-keycloak - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 65 256 0 96 mod-marc-migrations - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-okapi-facade - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 65 256 0 96 mod-rtac - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-task-list - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-scheduler - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-circulation-bff - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-inventory - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 768 512 256 0 128 mod-requests-mediated - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-patron-blocks - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-invoice-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-reading-room - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-data-export - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-oai-pmh - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-notes - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-kb-ebsco-java - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-eusage-reports - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96

Methodology/Approach

In order to run FYR:

truncate tables with query

Truncate
truncate table [tenant]_mod_organizations_storage.organizations cascade; truncate table [tenant]_mod_orders_storage.purchase_order cascade; truncate table [tenant]_mod_invoice_storage.invoices cascade;

Create organization (Vendor) to reuse its id as access provider in the next query which generates needed data set.

Replace FYR id, access provider, fund id, fund name in accordance with FYR ledger info. Also check all instance related fields which should be replaced with actual data.  The script prepared to generate needed amount of organizations, orders, po lines, invoices.

Generate CREATE OR REPLACE FUNCTION public.generate_0062_data_for_edifact_export( scenario_prefix TEXT, organizations_amount INTEGER, orders_per_vendor INTEGER, polines_per_order INTEGER, pieces_per_order INTEGER ) RETURNS VOID AS $$ DECLARE orgName TEXT DEFAULT 'perf_test_vendor'; orgCodePrefix TEXT DEFAULT 'PERF_TEST_ORG'; vendor_id TEXT; BEGIN FOR org_counter IN 1..organizations_amount LOOP INSERT INTO cs00000int_mod_organizations_storage.organizations (id, jsonb) VALUES ( public.uuid_generate_v4(), jsonb_build_object( 'code', concat(orgCodePrefix, '_', scenario_prefix, '_', org_counter), 'erpCode', '986532', 'isVendor', true, 'name', concat(orgCodePrefix, '_', scenario_prefix, '_', org_counter), 'status', 'Active', 'metadata', jsonb_build_object( 'createdDate', '2026-02-08T00:00:00.000+0000', 'createdByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691', 'updatedDate', '2026-02-08T00:00:00.000+0000', 'updatedByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691' ) ) ) RETURNING id INTO vendor_id; PERFORM public.generate_0062_orders(orders_per_vendor, polines_per_order, pieces_per_order, vendor_id,1,2); END LOOP; END $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION public.generate_0062_orders( orders_per_vendor INTEGER, polines_per_order INTEGER, pieces_per_order INTEGER, vendor_id TEXT, invoices_per_organization INTEGER, invoicelines_per_invoice INTEGER ) RETURNS VOID AS $$ DECLARE order_id TEXT; poline_id TEXT; newPoNumber INTEGER; BEGIN FOR order_counter IN 1..orders_per_vendor LOOP --SELECT nextval('cs00000int_mod_orders_storage.po_number') INTO newPoNumber; -- Select the current last_number from order_number and increment it for newPoNumber SELECT last_number INTO newPoNumber FROM cs00000int_mod_orders_storage.order_number FOR UPDATE; -- Lock the row to avoid concurrency issues -- Increment the value of newPoNumber for this order newPoNumber := newPoNumber + 1; -- Update order_number table with the new incremented last_number UPDATE cs00000int_mod_orders_storage.order_number SET last_number = newPoNumber; INSERT INTO cs00000int_mod_orders_storage.purchase_order (id, jsonb) VALUES ( public.uuid_generate_v4(), jsonb_build_object( 'id', public.uuid_generate_v4(), 'notes', jsonb_build_array(), 'acqUnitIds', jsonb_build_array(), 'approved', true, 'reEncumber', false, 'nextPolNumber', 2, 'workflowStatus', 'Pending', 'poNumber', newPoNumber, 'vendor', vendor_id, 'orderType', 'One-Time', 'metadata', jsonb_build_object( 'createdDate', '2026-02-06T00:00:00.000+0000', 'createdByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691', 'updatedDate', '2026-02-06T00:00:00.000+0000', 'updatedByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691' ) ) ) RETURNING id INTO order_id; PERFORM public.generate_0062_polines(order_id, polines_per_order, pieces_per_order, newPoNumber, vendor_id); PERFORM public.generate_0062_invoices(invoices_per_organization, invoicelines_per_invoice, vendor_id, poline_id); END LOOP; END $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION public.generate_0062_polines( order_id TEXT, polines_per_order INTEGER, pieces_per_order INTEGER, ponumber INTEGER, vendor_id TEXT ) RETURNS VOID AS $$ DECLARE polineNumber TEXT; currPoNumber INTEGER; iteration_counter INT := 1; BEGIN FOR line_counter IN 1..polines_per_order LOOP SELECT last_number INTO currPoNumber FROM cs00000int_mod_orders_storage.order_number; INSERT INTO cs00000int_mod_orders_storage.po_line (id, jsonb) VALUES ( public.uuid_generate_v4(), jsonb_build_object( 'id', public.uuid_generate_v4(), 'cost', jsonb_build_object( 'currency', 'USD', 'discountType', 'percentage', 'quantityElectronic', 2, 'poLineEstimatedPrice', 4, 'listUnitPriceElectronic', 2 ), 'rush', false, 'alerts', jsonb_build_array(), 'claims', jsonb_build_array(), 'source', 'User', 'details', jsonb_build_object( 'productIds', jsonb_build_array(), 'isAcknowledged', false ), 'edition', '', 'metadata', jsonb_build_object( 'createdDate', '2026-02-06T11:09:59.181Z', 'updatedDate', '2026-02-06T11:10:48.652Z', 'createdByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691', 'updatedByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691' ), 'eresource', jsonb_build_object( 'trial', false, 'activated', false, 'accessProvider', '19f55f0c-296c-4e77-9d4c-682aa8eb952c', 'createInventory', 'Instance, Holding' ), 'isPackage', false, 'locations', jsonb_build_array( jsonb_build_object( 'quantity', 2, 'locationId', '9d1b77e8-f02e-4b7f-b296-3f2042ddac54', 'quantityElectronic', 2 ) ), 'publisher', 'Praeger Publishers', 'collection', false, 'instanceId', '953e0a81-d91e-59ff-8aee-1ba7e0b49ddd', 'orderFormat', 'Electronic Resource', 'checkinItems', true, 'contributors', jsonb_build_array( jsonb_build_object( 'contributor', 'Yurchenco, Henrietta', 'contributorNameTypeId', '2e48e713-17f3-4c13-a9f8-23845bb210aa' ) ), 'poLineNumber', currPoNumber || '-' || iteration_counter, 'vendorDetail', jsonb_build_object( 'instructions', '', 'vendorAccount', '', 'referenceNumbers', jsonb_build_array() ), 'paymentStatus', 'Pending', 'receiptStatus', 'Pending', 'claimingActive', false, 'reportingCodes', jsonb_build_array(), 'titleOrPackage', 'A. C. Williams.', 'automaticExport', false, 'publicationDate', '1938', 'purchaseOrderId', order_id, 'fundDistribution', jsonb_build_array( jsonb_build_object( 'code', 'FY2026', 'value', 100, 'fundId', '1333f817-6104-45df-944a-682fd152e500', 'distributionType', 'percentage' ) ), 'acquisitionMethod', '796596c4-62b5-4b64-a2ce-524c747afaa2', 'searchLocationIds', jsonb_build_array( '9ffb23a9-0e83-4d8e-a70d-ddf44ab67c84' ), 'donorOrganizationIds', jsonb_build_array(), 'checkinItems', true ) ) RETURNING id INTO polineNumber; iteration_counter := iteration_counter + 1; -- Call the function to generate data for titles table PERFORM public.generate_0062_titles_data(polineNumber, concat(ponumber, '-', line_counter), pieces_per_order); END LOOP; END; $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION public.generate_0062_titles_data( po_line_id TEXT, po_line_number TEXT, pieces_per_order INTEGER ) RETURNS VOID AS $$ DECLARE title_id UUID; BEGIN -- Insert data into titles table INSERT INTO cs00000int_mod_orders_storage.titles (id, jsonb, creation_date, created_by, polineid) VALUES ( public.uuid_generate_v4(), jsonb_build_object( 'id', public.uuid_generate_v4(), 'title', 'A. C. Williams.', 'edition', '', 'metadata', jsonb_build_object( 'createdDate', '2026-02-06T11:09:59.247Z', 'updatedDate', '2026-02-06T11:09:59.247Z', 'createdByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691', 'updatedByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691' ), 'poLineId', po_line_id, 'publisher', '[publisher not identified]', 'acqUnitIds', jsonb_build_array(), 'instanceId', '953e0a81-d91e-59ff-8aee-1ba7e0b49ddd', 'productIds', jsonb_build_array( jsonb_build_object( 'productId', '73121721', 'productIdType', 'c858e4f2-2b6b-4385-842b-60732ee14abb' ) ), 'contributors', jsonb_build_array( jsonb_build_object( 'contributor', 'United States. Congress. House. Committee on Claims', 'contributorNameTypeId', '2e48e713-17f3-4c13-a9f8-23845bb210aa' ) ), 'poLineNumber', po_line_number, 'publishedDate', '1938', 'claimingActive', false, 'isAcknowledged', false ), current_timestamp, -- Assuming creation date is the current timestamp 'created_by_user_id', -- Replace with the actual user ID po_line_id::uuid ) RETURNING id INTO title_id; -- Call the function to generate data for pieces table PERFORM public.generate_0062_pieces_data(title_id, po_line_id, pieces_per_order); END $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION public.generate_0062_pieces_data( title_id UUID, polineNumber TEXT, pieces_per_order INTEGER ) RETURNS VOID AS $$ DECLARE piece_counter INTEGER; BEGIN FOR piece_counter IN 1..pieces_per_order LOOP -- Replace the following line with your actual poLineId INSERT INTO cs00000int_mod_orders_storage.pieces VALUES ( public.uuid_generate_v4(), jsonb_build_object( 'id', public.uuid_generate_v4(), 'format', 'Electronic', 'titleId', title_id, 'metadata', jsonb_build_object( 'createdDate', '2026-02-06T11:43:04.384Z', 'updatedDate', '2026-02-06T11:43:04.384Z', 'createdByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691', 'updatedByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691' ), 'poLineId', polineNumber, 'holdingId', '930d0836-d2a0-5077-a3b9-b2be771ae217', 'copyNumber', piece_counter, 'supplement', true, 'displaySummary', piece_counter, 'receivingStatus', 'Expected', 'displayOnHolding', false, 'discoverySuppress', false, 'statusUpdatedDate', '2026-02-05T11:43:04.385+00:00' ), NULL, NULL, 'eb79cb72-0fb5-4773-a580-b1428fa724e9'::UUID, -- Replace with the actual poLineId title_id ); END LOOP; END $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION public.generate_0062_invoices( invoices_per_organization INTEGER, invoicelines_per_invoice INTEGER, vendor_id TEXT, order_id TEXT ) RETURNS VOID AS $$ DECLARE invoice_id TEXT; newInvoiceNumber INTEGER; BEGIN FOR invoice_counter IN 1..invoices_per_organization LOOP SELECT nextval('cs00000int_mod_invoice_storage.invoice_number') INTO newInvoiceNumber; INSERT INTO cs00000int_mod_invoice_storage.invoices (id, jsonb) VALUES ( public.uuid_generate_v4(), jsonb_build_object( 'id', public.uuid_generate_v4(), 'total', 0.0, 'source', 'User', 'status', 'Approved', 'currency', 'USD', 'metadata', jsonb_build_object( 'createdDate', '2026-02-06T09:07:45.366Z', 'updatedDate', '2026-02-06T09:08:47.954Z', 'createdByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691', 'updatedByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691' ), 'subTotal', 0.0, 'vendorId', vendor_id, 'poNumbers', ARRAY[newInvoiceNumber]::TEXT[], 'acqUnitIds', ARRAY[]::UUID[], 'adjustments', ARRAY[]::JSONB[], 'invoiceDate', '2026-02-27T00:00:00.000+00:00', 'batchGroupId', '2a2cb998-1437-41d1-88ad-01930aaeadd5', 'fiscalYearId', '8f838351-e6db-48e0-a8c2-baf9cf76c324', 'paymentMethod', 'Cash', 'accountingCode', '986532', 'folioInvoiceNo', newInvoiceNumber::TEXT, 'enclosureNeeded', false, 'vendorInvoiceNo', invoice_counter::TEXT, 'adjustmentsTotal', 0.0, 'exportToAccounting', false, 'nextInvoiceLineNumber', 2, 'chkSubscriptionOverlap', true ) ) RETURNING id INTO invoice_id; PERFORM public.generate_0062_invoicelines( invoicelines_per_invoice, invoice_id, newInvoiceNumber, vendor_id, order_id ); END LOOP; END $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION public.generate_0062_invoicelines( invoicelines_per_invoice INTEGER, invoice_id TEXT, newInvoiceNumber INTEGER, vendor_id TEXT, order_id TEXT ) RETURNS VOID AS $$ DECLARE invoiceline_id TEXT; BEGIN FOR invoiceline_counter IN 1..invoicelines_per_invoice LOOP INSERT INTO cs00000int_mod_invoice_storage.invoice_lines (id, jsonb) VALUES ( public.uuid_generate_v4(), jsonb_build_object( 'id', public.uuid_generate_v4(), 'total', 0.0, 'metadata', jsonb_build_object( 'createdDate', '2026-02-06T09:08:47.393Z', 'updatedDate', '2026-02-06T09:08:47.393Z', 'createdByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691', 'updatedByUserId', 'b0dc2f04-d1cf-437a-95d9-64bfd2ee0691' ), 'poLineId', order_id, 'quantity', 2, 'subTotal', 0.0, 'invoiceId', invoice_id, 'adjustments', ARRAY[]::JSONB[], 'description', 'Its awesome if its working', 'accountNumber', 'libraryorders@library.tam', 'accountingCode', '986532', 'adjustmentsTotal', 0.0, 'referenceNumbers', ARRAY[]::JSONB[], 'fundDistributions', jsonb_build_array( jsonb_build_object( 'code', 'FY2026', 'value', 100.0, 'fundId', '1333f817-6104-45df-944a-682fd152e500', 'distributionType', 'percentage' ) ), 'invoiceLineNumber', invoiceline_counter, 'invoiceLineStatus', 'Approved', 'releaseEncumbrance', false ) ) RETURNING id INTO invoiceline_id; -- You can perform additional actions if needed END LOOP; END $$ LANGUAGE plpgsql; -- CREATE sample data -- 1 - amount of organizations to be created -- 2 - amount of orders per organization -- 3 - amount of polines per order -- 4 - amount of pieces per order SELECT public.generate_0062_data_for_edifact_export('FY2026',1000,100,2,2); -- CLEANUP



To create encumbrances linked to the current budget orders should be with open status. To change the status from pending to open select needed data for the jmeter script. Save to use in the PUT request orders/composite-orders/${po_id}. Run needed number of requests to prepare open orders.

Data preparation to Open Orders
SELECT id as po_id, jsonb->>'vendor' as vendor_id, jsonb->>'poNumber' as po_number select count(id) FROM cs00000int_mod_orders_storage.purchase_order where jsonb->>'workflowStatus'='Pending'
BODY DATA
{"id":"${po_id}","approved":true,"notes":[],"poNumber":"${po_number}","orderType":"One-Time","reEncumber":false,"vendor":"${vendor_id}","workflowStatus":"Open","acqUnitIds":[],"needReEncumber":false}

Legacy approach about data preparation instructions can be found at the link: Steps for testing process#Fiscalyearrollover Use this link to get exact number of organizations, orders, POLined, invoices

  • Set max_locks_per_transaction parameter in DB cluster and instance configurations to 1024 (already as default)

  • Additional info for testing (scripts, queries) saved in S3 bucket - Buckets/fse-ptf/FYR/

    • envs_data_gen_scripts - txt files with sql which populate DB with data

    • selctls2 jmeter scripts to change status from pending to open