Ajay, Did you come across this section of the page memory documentations? https://apacheignite.readme.io/docs/page-memory#memory-policies
Even more, after reading the section till the end you will find a reference to an example: https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/MemoryPoliciesExample.java Let us know if anything is still unclear. — Denis > On May 13, 2017, at 10:09 AM, Ivan Rakov <ivan.glu...@gmail.com> wrote: > > Hi Ajay, > > 1) You can specify list of memory policies in memory configuration: > > >> MemoryConfiguration memCfg = new MemoryConfiguration(); >> >> MemoryPolicyConfiguration plcCfg = new MemoryPolicyConfiguration(); >> >> plcCfg.setInitialSize(100 * 1000 * 1000); >> plcCfg.setMaxSize(200 * 1000 * 1000); >> plcCfg.setName("myPolicy"); >> >> memCfg.setMemoryPolicies(plcCfg); > 2) Default memory policy can't be disabled. However, you can set your custom > memory policy as default: >> >> memCfg.setDefaultMemoryPolicyName("myPolicy"); > 3) Please clarify, what kind of compression do you mean? > > Best Regards, > Ivan Rakov > > On 13.05.2017 18:13, Ajay wrote: >> Hi, >> >> Please explain points >> >> 1)How to add custom memory policy? >> 2)Can disable default memory policy? >> 3)Is ignite supports any compression? >> >> Thanks >> >> >> >> -- >> View this message in context: >> http://apache-ignite-users.70518.x6.nabble.com/Ignite2-0-memory-policy-tp12756.html >> >> <http://apache-ignite-users.70518.x6.nabble.com/Ignite2-0-memory-policy-tp12756.html> >> Sent from the Apache Ignite Users mailing list archive at Nabble.com. >