We have an application based on the project template deployed using the A12 charts. The dataservices init job takes very long to complete after it loaded documents for the search index. Does anybody know what the init does during this time. The log output is:
2025-02-21T11:40:30.572Z INFO 1 --- [ main] c.m.a.d.search.SearchIndexLoader : [376] Documents of model [Position-DM] has been updated in [205] ms
2025-02-21T11:40:30.820Z INFO 1 --- [ main] c.m.a.d.search.SearchIndexLoader : Loading [0] document ids for model [FragmentDM] took [ 219 ms ]
2025-02-21T11:40:45.493Z INFO 1 --- [ main] c.h.i.p.impl.PartitionStateManager : [<INTERNAL_IP>]:5701 [dev] [5.4.0] Initializing cluster partition table arrangement...
2025-02-21T11:40:45.506Z INFO 1 --- [ration.thread-4] c.h.c.i.session.RaftSessionService : [<INTERNAL_IP>]:5701 [dev] [5.4.0] Created new session: 1 in CPGroupId{name='cddUpdate-ComposeBuffet-DM/Buffet-DM/74faa3cf-8efd-4511-892c-3ab3174fef28', seed=0, groupId=68} for SERVER -> [<INTERNAL_IP>]:5701
2025-02-21T11:40:55.268Z INFO 1 --- [ration.thread-5] c.h.c.i.session.RaftSessionService : [<INTERNAL_IP>]:5701 [dev] [5.4.0] Created new session: 1 in CPGroupId{name='cddUpdate-ComposeBuffet-DM/Buffet-DM/c5ff8fd5-40d6-419a-afae-d62b454add55', seed=0, groupId=197} for SERVER -> [<INTERNAL_IP>]:5701
2025-02-21T11:41:04.438Z INFO 1 --- [ration.thread-8] c.h.c.i.session.RaftSessionService : [<INTERNAL_IP>]:5701 [dev] [5.4.0] Created new session: 1 in CPGroupId{name='cddUpdate-ComposeBuffet-DM/Buffet-DM/eea8dcba-7a88-4e2b-80b7-3ae4f1dd14da', seed=0, groupId=152} for SERVER -> [<INTERNAL_IP>]:5701
The log output from RaftSessionService appears nearly exactly every 5 seconds. ComposeBuffet-DM is a CDM. Is it doing something with the CDDs one-by-one? And why does it take 5s per CDD?
EDIT
The init completed with the following log output:
2025-02-21T12:03:34.960Z INFO 1 --- [ration.thread-4] c.h.c.i.session.RaftSessionService : [<INTERNAL_IP>]:5701 [dev] [5.4.0] Created new session: 1 in CPGroupId{name='cddUpdate-ComposeCheckout-DM/Checkout-DM/e38b5958-1714-4c59-b706-bcf26814e136', seed=0, groupId=4} for SERVER -> [<INTERNAL_IP>]:5701
2025-02-21T12:03:39.024Z INFO 1 --- [ration.thread-2] c.h.c.i.session.RaftSessionService : [<INTERNAL_IP>]:5701 [dev] [5.4.0] Created new session: 1 in CPGroupId{name='cddUpdate-ComposeCheckout-DM/Checkout-DM/a7f2011d-4303-476e-a420-e9f0b31975ec', seed=0, groupId=194} for SERVER -> [<INTERNAL_IP>]:5701
2025-02-21T12:03:40.129Z INFO 1 --- [ main] c.m.a.d.search.SearchIndexLoader : Index rebuilt in 1415214 ms
24mins for indexing a database with just a few hundred docs is quite bad ![]()