Search code examples
ignite

Apache Ignite Data Region behaviour


I am implementing the Data Region in apache ignite cluster with 4 nodes and each node having 20GB RAM. I have some doubts with data region configuration.

  1. Does DataRegionConfiguration maxMemory configured based upon all nodes memory?(Means, If we configure the 10GB in maxMemory then will it create the single data region for all the nodes and remaining memory will be 4*20-10 = 70GB)
  2. can we bind the node based upon data region configuration?(Means, Cache which is associated with particular region should be stored the cache data on particular node instead of partitioned on all the nodes)

Solution

    1. DataRegionConfiguration is local for each node. If you set max size to 10Gb, it means 10Gb for single node. If you start two nodes with same config, you get 20Gb total size.

    2. You can configure any data region for one or more nodes, in other words have separate configuration for each node. Then you can setup node filter that will define set of nodes that could store your cache. To configure it from XML, you can use AttributeNodeFilter and set your attributes for proper nodes in IgniteConfiguration. This way you can setup data regions for required nodes and settle caches on that nodes using node filter + node attributes.