Hazelcast partition count setting

70 views
Skip to first unread message

Priyanka Sethi

unread,
Mar 21, 2021, 12:57:33 PM3/21/21
to Hazelcast
Is it possible to set partition count per IMap/MapStore? I have multiple IMaps that I load eagerly some having very few records like less than 100 while others having more than 50000 records. With 271 default partition size, for maps which have few records more number of database queries are made - which is suboptimal.

Jaromir Hamala

unread,
Mar 22, 2021, 6:32:30 AM3/22/21
to Hazelcast
Hello Priyanka,

this is not possible. Partition count is global per cluster.
Depending on our use-case Data Affinity could help you. It does not allow to re-define partition count, but you can use it to influence data distribution:  https://docs.hazelcast.com/imdg/4.1.2/performance/data-affinity.html

Cheers,
Jaromir
Reply all
Reply to author
Forward
0 new messages