Hi , I am loading cache in partition aware mode.I have started four nodes. Out of these four node two nodes are loading only backup partitions and other two nodes are loading only primary partitions.
As per my understanding each node should have backup and primary partition both. But in my cluster distributions of partitions looks like this Node Primary partitions Backup partitions NODE 1 518 0 NODE 2 0 498 NODE 3 506 0 NODE 4 0 503 *Configuration of Cache* CacheConfiguration ipv4AssetGroupDetailCacheCfg = new CacheConfiguration<>( CacheName.IPV4_ASSET_GROUP_DETAIL_CACHE.name()); ipv4AssetGroupDetailCacheCfg.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL); ipv4AssetGroupDetailCacheCfg.setWriteThrough(true); ipv4AssetGroupDetailCacheCfg.setReadThrough(false); ipv4AssetGroupDetailCacheCfg.setRebalanceMode(CacheRebalanceMode.ASYNC); ipv4AssetGroupDetailCacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC); ipv4AssetGroupDetailCacheCfg.setBackups(1); ipv4AssetGroupDetailCacheCfg.setIndexedTypes(DefaultDataAffinityKey.class, IpV4AssetGroupData.class); Factory<IpV4AssetGroupCacheStore> storeFactory = FactoryBuilder.factoryOf(IpV4AssetGroupCacheStore.class); ipv4AssetGroupDetailCacheCfg.setCacheStoreFactory(storeFactory); ipv4AssetGroupDetailCacheCfg.setCacheStoreSessionListenerFactories(cacheStoreSessionListenerFactory()); RendezvousAffinityFunction affinityFunction = new RendezvousAffinityFunction(); affinityFunction.setExcludeNeighbors(false); ipv4AssetGroupDetailCacheCfg.setAffinity(affinityFunction); *Could someone please advice why there is no balanced distribution of primary and backup partitions?* *Thanks,* *Akash*