Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following resources are used:

...

Previous Lotus testing performance results:

Lotus Snapshot Performance testing


Modules:

Data Import Module (mod-data-import-2.5.0-SNAPSHOT.231)

...

Performance-optimized configuration:

Folio

...

MAX_REQUEST_SIZE = 4000000 (for all modules)

Kafka

...

2

...

Tasks for all

...

DI Modules (except mod-data-import)

2

...

Partition for all DI

...

Kafka topics

Please Notice: an environment should be configured in such a way that for every Kafka topic there are as many partitions as many instances created for a module connected to that topic

Examples:

Code Block
title

...

Delete old topic

...

./kafka-topics.sh --bootstrap-server=<kafka-ip>:9092 --delete --topic perf-eks-folijet.Default.fs09000000.DI_ERROR


Code Block
titlerecreate topic with "--partitions 2 --replication-factor 1"

...

./kafka-topics.sh --bootstrap-server=<kafka-ip>:9092 --create --topic perf-eks-folijet.Default.fs09000000.DI_ERROR --partitions 2 --replication-factor 1

...


Warning

Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.
Created topic perf-eks-folijet.Default.fs09000000.DI_ERROR.


Code Block
titleget topic info

...

./kafka-topics.sh --bootstrap-server=<kafka-ip>:9092 --describe --topic perf-eks-folijet.Default.fs09000000.DI_ERROR


Panel
titleCreated Topic

Topic: perf-eks-folijet.Default.fs09000000.DI_ERROR PartitionCount: 2   ReplicationFactor: 1    Configs: min.insync.replicas=1,message.format.version=2.6-IV0,unclean.leader.election.enable=true
    Topic: perf-eks-folijet.Default.fs09000000.DI_ERROR Partition: 0    Leader: 1   Replicas: 1 Isr: 1
    Topic: perf-eks-folijet.Default.fs09000000.DI_ERROR Partition: 1    Leader: 2   Replicas: 2 Isr: 2 (edited) 

JVM

...

mod-data-import: -XX:MaxRAMPercentage=85.0 -XX:+UseG1GC / cpu: 128m/192m | memory: 1Gi/1Gi

...

mod-inventory-storage: -XX:MaxRAMPercentage=80 -XX:MetaspaceSize=120M -XX:+UseG1GC / DB_MAXPOOLSIZE = 15 / cpu: 512m/512m 1024m | memory: 778Mi1024Mi/846Mi1200Mi

Tests:

envprofile

records

number

time in Morning Glorytime in Lotus

Kafka

partition

number

module

instance

number

CPUdescription

MG Perf Rancher

PTF Create - 2

5000

7 min

8 min

2

2

512/1024

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-

05

06-

27T12

10T07:

58

44:

30

27.

331

576+00:00

2022-

05

06-

27T13

10T07:

05

51:

08

11.

683

140+00:00

MG Perf Rancher

PTF Create - 2

5000

7 min

8 min

2

2

512/1024

NEW

mod-source-record-manager-3.4.0-SNAPSHOT.659+

-Ddi.flow.control.enable=false

2022-06-

10T07

14T10:24:44

:27

.

576

093+00:00

2022-06-

10T07

14T10:

51

31:

11

54.

140

725+00:00

MG Perf Rancher

PTF

Create

Update -

2

1

5000

7

11 min

8 -Ddi.flow.control.enable=false

13 min

2

2

512/1024

NEW

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-06-

14T10

20T06:

24

18:

44

46.

093

748+00:00

2022-06-

14T10

20T06:

31

30:

54

02.

725

991+00:00

MG Perf Rancher

PTF

Update

Create -

1

2

5000

10`000

10

16 min

13

19 min

2

2

512/1024

2022-05-27T13:22:35.123+

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-06-10T07:54:23.720+00:00

2022-

05

06-

27T13

10T08:

32

08:

35

48.

344

484+00:00

MG Perf Rancher

PTF Create - 2

10`000

21

16 min

| 27min


19 min

2

2

512/1024

mod-source-record-manager-3.4.0-SNAPSHOT.659+
-Ddi.flow.control.enable=false

2022-

05

06-

30T09

14T10:

51

36:

13

41.

876

482+00:00

| 2022-05-31T18:13:05.977+00:00

2022-

05

06-

30T10

14T10:

12

53:

33.982+00:00 | 2022-05-31T18:40:58.928

03.556+00:00

MG Perf Rancher

PTF

Create

Update -

2

1

10`000

14 min | 16

22 min

19 2022-06-10T07:54:23.720

25 min

2

2

512/1024

NEW

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-06-20T07:07:00.594+00:00

2022-06-

10T08

20T07:

08

28:

48

54.

484

905+00:00

MG Perf Rancher

PTF Create - 2

10`000

50`000

16

59 min

19 min

1h 25min

2

2

512/1024

NEW
-Ddi.flow.control.enable=false

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-06-

14T10

10T08:

36

12:

41

29.

482

178+00:00

,

2022-06-

14T10

10T09:

53

11:

03

34.

556

642+00:00

"

MG Perf RancherPTF Update - 1
10`000
50`000
30
1h 42 min
25 min
2h 17min22512/1024
-Ddi.flow.control.enable=false

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-

05

06-

31T19

20T09:

19

11:

46

41.

296

701+00:00

2022-

05

06-

31T19

20T10:

49

54:

59

29.

65119 min

378+00:00

MG Perf Rancher

PTF Create - 2

100`000

10`00021 min

 2h 20min

2h 24min

(22 errors)

2

2

512/1024

-Ddi.flow.control.enable=true

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-

05

06-

31T20

13T09:

02

30:

06

35.

368

574+00:00

2022-

05

06-

31T20

13T12:

23

26:

19

52.

49025 min

484+00:00

MG Perf RancherPTF Update - 1
10`00031 min
100`0002h 49min

4h 40min

(tests were made for 1 instance number and partition number

22512/1024
-Ddi.flow.control.enable=true

mod-source-record-manager-3.4.0-SNAPSHOT.659+

2022-06-

01T19

21T11:

08

46:

11

43.

563

175+00:00

2022-06-

01T19

21T14:

39

36:

58

05.

8032022-06-03T09:37:51.631+00:00

532+00:00

MG Perf RancherPTF Create - 2
10`00017 min
19 min22512/1024
-Ddi.flow.control.enable=true
-Ddi.flow.control.max.simultaneous.records=100
-Ddi.flow.control.records.threshold=50

2022-06-03T09:20:07.654+00:00

57 errors Inventory/Inventory-storage errors:

io.netty.channel.StacklessClosedChannelException,

io.vertx.core.impl.NoStackTraceThrowable: Connection is not active now, current status: CLOSED

io.vertx.core.impl.NoStackTraceThrowable: Timeout

MG Perf Rancher

PTF Create - 2

30`0001h 6 min45 min

500`000

14h 46min

(60 errors)

15h 37min

(31 errors)

2

2

512/1024

mod-source-record-manager-3.4.0-SNAPSHOT.659+

60 errors

2022-

05

06-

27T13

13T14:

37

27:

12

40.

980

568+00:00

2022-

05

06-

27T14

14T05:

31

14:

52

27.

595

458+00:00

MG
Perf RancherPTF Update - 1
30`000 1h 26min-
BugfestDefault Marc Bib Create50004min
22512/1024

mod-source-record-manager - Xmx = 2G

"startedDate"   : "2022-

05

08-

27T15

15T14:

37

57:

33

13.

580

753+00:00",

"completedDate" : "2022-

05

08-

27T17

15T15:

03

01:

15

29.

702

365+00:00",

MG
Perf RancherPTF Create - 2
50`0002h 37 min1h 25min2022-06-01T19:48:33.977
BugfestDefault Marc Bib Create1000010min
22512/1024

3 errors: io.netty.channel.StacklessClosedChannelException

mod-source-record-manager - Xmx = 2G

"startedDate"   : "2022-08-15T15:03:07.364+00:00",

"completedDate" : "2022-

06

08-

01T22

15T15:

25

13:

59

28.

700

827+00:00"

MG
Perf Rancher
Bugfest
PTF
Create
- 250`00059 min1h 25min2022-06-10T08:12:29.178
SRS MARC Authority50005min
22512/1024

NEW

mod-source-record-manager - Xmx = 2G

"startedDate"    : "2022-08-16T00:15:55.396+00:00",

"completedDate" : "2022-

06

08-

10T09

16T00:

11

20:

34

19.

642

240+00:00",

MG
Perf Rancher
Bugfest
PTF
Create
- 2
100`000 2h 56min2h 24min (22 errors)2022-06-13T09:30:35.574
SRS MARC Authority100008 min
22512/1024

NEW

mod-source-record-manager - Xmx = 2G

"startedDate"       : "2022-08-16T14:52:53.191+00:00",

"completedDate" : "2022-

06

08-

13T12

16T15:

26

00:

52

12.

484

723+00:00"

MG
Perf Rancher
Bugfest
PTF
Create
- 2
500`00014h 46min (60 errors)15h 37min (31 errors)2022-06-13T14:27:40.568
SRS MARC Authority5000034min
22512/1024

NEW

60 errors

mod-source-record-manager - Xmx = 2G

"startedDate"      : "2022-08-16T15:01:15.360+00:00",

"completedDate" : "2022-

06

08-

14T05

16T15:

14

35:

27

37.

458

028+00:00

60 errors (500K - PTF Create - 2):

io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: Connection was closed: POST /holdings-storage/holdings
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: Connection was closed: POST /instance-storage/instances
io.vertx.core.impl.NoStackTraceThrowable: {"errors":[{"message":"must not be null","type":"1","code":"javax.validation.constraints.NotNull.message","parameters":[{"key":"contributors[0].name","value":"null"}]}]}
io.vertx.core.impl.NoStackTraceThrowable: {"errors":[{"message":"must not be null","type":"1","code":"javax.validation.constraints.NotNull.message","parameters":[{"key":"contributors[2].name","value":"null"}]}]}
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: finishConnect(..) failed: Connection refused: mod-inventory-storage.folijet.svc.cluster.local/172.20.250.48:80: POST /holdings-storage/holdings
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: finishConnect(..) failed: Connection refused: mod-inventory-storage.folijet.svc.cluster.local/172.20.250.48:80: POST /instance-storage/instances
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: readAddress(..) failed: Connection reset by peer: POST /holdings-storage/holdings
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: readAddress(..) failed: Connection reset by peer: POST /instance-storage/instances

...

",


Results before flow control fix: MODSOURMAN-811

envprofile

records

number

timetime in Lotus

Kafka

partition

number

module

instance

number

CPUdescription
MG Perf RancherPTF Create - 2
50007 min8 min22512/1024

mod-source-record-manager-3.4.0-SNAPSHOT.621

2022-05-27T12:58:30.331+00:00

2022-05-27T13:05:08.683+00:00

MG Perf Rancher

PTF Update - 1

5000

10 min

13 min

2

2

512/1024

2022-05-27T13:22:35.123+00:00

2022-05-27T13:32:35.344+00:00

MG Perf Rancher

PTF Create - 2

10`000

21 min | 27min

19 min

2

2

512/1024

-Ddi.flow.control.enable=false

2022-05-30T09:51:13.876+00:00 | 2022-05-31T18:13:05.977+00:00

2022-05-30T10:12:33.982+00:00 | 2022-05-31T18:40:58.928+00:00

MG Perf Rancher

PTF Update - 1

10`000

30 min

25 min

2

2

512/1024

-Ddi.flow.control.enable=false

2022-05-31T19:19:46.296+00:00

2022-05-31T19:49:59.651+00:00

MG Perf Rancher

PTF Create - 2

10`000

21 min

19 min

2

2

512/1024

-Ddi.flow.control.enable=true

2022-05-31T20:02:06.368+00:00

2022-05-31T20:23:19.490+00:00

MG Perf Rancher

PTF Update - 1

10`000

31 min

25 min

2

2

512/1024

-Ddi.flow.control.enable=true

2022-06-01T19:08:11.563+00:00

2022-06-01T19:39:58.803+00:00

MG Perf Rancher

PTF Create - 2

10`000

17 min

19 min

2

2

512/1024

-Ddi.flow.control.enable=true
-Ddi.flow.control.max.simultaneous.records=100
-Ddi.flow.control.records.threshold=50

2022-06-03T09:20:07.654+00:00

2022-06-03T09:37:51.631+00:00

MG Perf Rancher

PTF Create - 2

30`000

1h 6 min

45 min

2

2

512/1024

2022-05-27T13:37:12.980+00:00

2022-05-27T14:31:52.595+00:00

MG Perf Rancher

PTF Update - 1

30`000

 1h 26min

-

2

2

512/1024

2022-05-27T15:37:33.580+00:00

2022-05-27T17:03:15.702+00:00

MG Perf Rancher

PTF Create - 2

50`000

2h 37 min

1h 25min

2

2

512/1024

3 errors: io.netty.channel.StacklessClosedChannelException

2022-06-01T19:48:33.977+00:00

2022-06-01T22:25:59.700+00:00


60 errors (500K - PTF Create - 2):

Almost all errors with mod-inventory storage related to not having enough memory for instances (memory: 778Mi/846Mi).  Instances of mod-inventory-storage were restarted 2 times.

Image Added


io.vertx.core.impl.NoStackTraceThrowable: {"errors":[{"message":"must not be null","type":"1","code":"javax.validation.constraints.NotNull.message","parameters":[{"key":"contributors[0].name","value":"null"}]}]}
io.vertx.core.impl.NoStackTraceThrowable: {"errors":[{"message":"must not be null","type":"1","code":"javax.validation.constraints.NotNull.message","parameters":[{"key":"contributors[2].name","value":"null"}]}]}

io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: Connection was closed: POST /holdings-storage/holdings
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: Connection was closed: POST /instance-storage/instances
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: finishConnect(..) failed: Connection refused: mod-inventory-storage.folijet.svc.cluster.local/172.20.250.48:80: POST /holdings-storage/holdings
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: finishConnect(..) failed: Connection refused: mod-inventory-storage.folijet.svc.cluster.local/172.20.250.48:80: POST /instance-storage/instances
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: readAddress(..) failed: Connection reset by peer: POST /holdings-storage/holdings
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: readAddress(..) failed: Connection reset by peer: POST /instance-storage/instances
io.vertx.core.impl.NoStackTraceThrowable: proxyClient failure: mod-inventory-storage-23.1.0-SNAPSHOT.692 http://mod-inventory-storage: readAddress(..) failed: Connection reset by peer: POST /item-storage/items

Performance testing of update item scenario after removal of index (MODDATAIMP-697):

In the scope of FOLIO-3388 "item_status_name_idx_gin" index for the Item status field was removed from mod-inventory-storage. However, this index potentially can be used for matching by Item status during Item update.

Job profile structure to update item and matching item by status field:

  • Job profile
  • Match profile (902$a to Item HRID)
    • For matches: sub match profile (Static match of "Available" to Item Loan and Availability Status)
      • For matches: action profile (action = update; Folio record type = Item)
        • Mapping profile (Folio record type = Item)

Test results:


records numbertimedescription
Testing with index50006 | 40 | 6 | 6

Testing without index50006 | 11 | 6 | 6


Analysis of the query for matching item by status field:

Example of the CQL query built while processing the sub-match profile for matching by status: 

status.name == "Available" AND id == "4ae2603d-1f71-457f-b69a-3eed820d6cfb"

This CQL query is translated by mod-inventory-storage to the following SQL:

Code Block
languagesql
SELECT id, jsonb, creation_date, created_by, holdingsrecordid, permanentloantypeid, temporaryloantypeid, materialtypeid, permanentlocationid, temporarylocationid, effectivelocationid
FROM fs09000000_mod_inventory_storage.item
WHERE (
	CASE WHEN length(lower(f_unaccent('Available'))) <= 600 
		 THEN left(lower(f_unaccent(item.jsonb->'status'->>'name')),600) LIKE lower(f_unaccent('Available')) 
		 ELSE left(lower(f_unaccent(item.jsonb->'status'->>'name')),600) LIKE left(lower(f_unaccent('Available')),600) AND lower(f_unaccent(item.jsonb->'status'->>'name')) LIKE lower(f_unaccent('Available')) 
	END	
) AND lower(f_unaccent(item.jsonb->'status'->>'name')) LIKE lower(f_unaccent('Available')) END) AND (id='4ae2603d-1f71-457f-b69a-3eed820d6cfb')
LIMIT 2 OFFSET 0


For the particular case when matching by item status is used as sub match profile no indexes of the Item status field are used. Instead, a more efficient algorithm is applied to perform data lookup using the index for the id field.

Code Block
languagesql
titlequery plan
collapsetrue
"Limit  (cost=0.56..8.84 rows=1 width=1156) (actual time=0.038..0.040 rows=1 loops=1)"
"  ->  Index Scan using item_pkey on item  (cost=0.56..8.84 rows=1 width=1156) (actual time=0.038..0.039 rows=1 loops=1)"
"        Index Cond: (id = '4ae2603d-1f71-457f-b69a-3eed820d6cfb'::uuid)"
"        Filter: ("left"(lower(f_unaccent(((jsonb -> 'status'::text) ->> 'name'::text))), 600) ~~ 'available'::text)"
"Planning Time: 0.195 ms"
"Execution Time: 0.053 ms"

During the testing item update scenario it was observed that the "item_status_name_idx_gin" index deletion does not impact the performance of matching Item by status. According to the results of analysis, this index is not used for matching Item by status field during data import.