Re: Apache Ignite with Caching : How do I sure that cache(s) has all datas?

2018-07-07 Thread Amir Akhmedov
If you want to make sure all your data had been copied into backup nodes then you need to change synchronization mode to FULL_SYNC [1] Thanks, Amir [1] https://apacheignite.readme.io/docs/primary-and-backup-copies#section-synchronous-and-asynchronous-backups On Sat, Jul 7, 2018 at 8:14 AM monste

Re: Apache Ignite with Caching : How do I sure that cache(s) has all datas?

2018-07-08 Thread Amir Akhmedov
Rebalancing is a process when a node joins or leaves (in case backup is turned on) a cluster, data will be rebalanced within a cluster to make a fair distribution. It's applicable only for partitioned caches. But you have replicated cache and it's out of your case. Thanks, Amir On Jul 8, 2018 4:0

Re: @IgniteInstanceResource not working as expected

2018-11-07 Thread Amir Akhmedov
Hi, Can you please show a code snippet? Small reproducer would be even better. Thanks, Amir On Wed, Nov 7, 2018 at 6:20 AM the_palakkaran wrote: > Hi, > > I have a service from which I create a singleton IgniteQueue. I can get > ignite instance using @IgniteInstanceResouce inside my service bu

Re: Ignite not scaling as expected !!! (Thread dump provided)

2018-12-01 Thread Amir Akhmedov
Hi, Can you give more details like Ignite configuration, how many server and client nodes do you have, how are they deployed etc. Thanks, Amir On Sat, Dec 1, 2018 at 10:25 AM the_palakkaran wrote: > Hi, > > I tried scaling ignite with 10, 20, 50, 100, 200, 500 threads for 1M gets. > The resul

Re: Index question.

2018-01-29 Thread Amir Akhmedov
Hi Mikael, 1. This is just a warning informing you that Ignite's object serialization will differ from yours Externalizable implementation. By default Ignite will serialize all fields in object and if you want to customize then you need implement Binarylizable interface or set custom serializer as

Re: No transaction is currently active || Not allowed to create transaction on shared EntityManager - use Spring transactions or EJB CMT instead

2018-01-29 Thread Amir Akhmedov
Please check this > example on github: > https://github.com/ezhuravl/ignite-eclipselink-example > > Evgenii > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > -- Sincerely Yours Amir Akhmedov

Re: Index question.

2018-01-29 Thread Amir Akhmedov
on is why do you need SQL if you are using only key based > search? You can make exactly the same using Java Cache API. > > 2. You can leave Externalizable implementation in the class, it won't hurt. > > 3. Please check bullet #1, if you don't want indexes then you don't need > create them. > > Thanks, > Amir > > > -- Sincerely Yours Amir Akhmedov

Re: No transaction is currently active || Not allowed to create transaction on shared EntityManager - use Spring transactions or EJB CMT instead

2018-01-29 Thread Amir Akhmedov
You need to register a bean as follow Please check the link a sent you earlier it has tests with all required configurations. It can serve as a good example.

Re: Serialization problem when combining Spring boot (hateoas) with Ignite

2018-01-30 Thread Amir Akhmedov
Hi Pim, Can you please provide more details on your issue? 1. What is the issue and what is the expected behavior? 2. Server and client configurations 3. It would be nice to have a small reproducer for better understanding. Thanks, Amir On Tue, Jan 30, 2018 at 2:19 PM, Pim D wrote: > Update: >

Re: Cat Example

2018-02-09 Thread Amir Akhmedov
tring[] args) > > { > > > > Ignite ignite = Ignition.start(); > > CacheConfiguration cfg= new > CacheConfiguration("catCache"); > > > > cfg.setCacheMode(CacheMode.REPLICATED); > > cfg.setSqlEscapeAll(true); > > cfg.setSqlSchema("PUBLIC"); > > cfg.setIndexedTypes(Integer.class,Cat.class); > > try(IgniteCache cache = > ignite.getOrCreateCache(cfg)) > > { > > for (int i = 0; i < 10; ++i) { > > cache.put(i, new Cat(i + 1,"Fluffy")); > > }/* > > SqlFieldsQuery sql = new SqlFieldsQuery("select * from > catCache"); > > try (QueryCursor> cursor = cache.query(sql)) { > > for (List row : cursor) > > System.out.println("cat=" + row.get(0)); > > }*/ > > } > > System.out.print("Got It!"); > > > > }} > > Thanks, > > *Mike Williams* > > > -- Sincerely Yours Amir Akhmedov

Re: Cat Example

2018-02-09 Thread Amir Akhmedov
t; > > > try(IgniteCache cache = > ignite.getOrCreateCache(cfg)) > > { > > try (IgniteDataStreamer stmr = > ignite.dataStreamer("CAT")) { > > for (int i = 0; i < 1_000_000; i++) > >

Re: MultiMap

2018-02-13 Thread Amir Akhmedov
I'm planning to start working on this ticket in couple of days, hopefully will be implemented soon. On Feb 13, 2018 6:06 PM, "Michael André Pearce" wrote: > Hi > > I just filled out the survey from the website and it reminded me of one > short coming of Apache ignite still that we some times hit

Re: Can one application connect to multiple Ignite clusters as client?

2018-03-21 Thread Amir Akhmedov
are using TcpDiscoveryJdbcIpFinder for TcpDiscoverySpi, but > with different datasource (database table and sever different.) > Is this approach possible? > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > -- Sincerely Yours Amir Akhmedov

Re: Get all data of one cache in Ignite without creating a new ignite node

2018-03-22 Thread Amir Akhmedov
Hi Rick, In Ignite cache name is used as a database schema and a cache value type as a table name. So, in your case you should execute select * from "igniteCache".STRING to get your cache data. I would recomend you to run your Ignite instance with -DIGNITE_H2_DEBUG_CONSOLE=true parameter so you c

Re: Ignite @QuerySqlField on interfaces instead of classes

2018-03-22 Thread Amir Akhmedov
Hi, I think the answer to your question is no rather than yes. @QuerySqlField has a field target type and a field in interface is public, static and final. Thanks, Amir

Re: Get all data of one cache in Ignite without creating a new ignite node

2018-03-23 Thread Amir Akhmedov
* Friday, March 23, 2018 1:59 PM > *To:* user@ignite.apache.org > *Subject:* RE: Get all data of one cache in Ignite without creating a new > ignite node > > > > Hi Amir > > > > I use the method recommended by you, and that works well. > > My testing code

Re: TcpDiscoverSpi error connection refused

2018-04-07 Thread Amir Akhmedov
Hi Denis, I had a similar logs before and I can confirm I got them when enabled "debug" level but the log level "severe" was really confusing. On Fri, Apr 6, 2018, 8:52 AM Denis Mekhanikov wrote: > Neeraj, > > You probably enabled debug logging on the following package: > *org.apache.ignite.spi

Re: Expiration policy

2016-09-03 Thread Amir Akhmedov
Hi Anmol, You statements are correct. On Sep 3, 2016 05:02, "Anmol Rattan" wrote: > Hi, > > Wanted to understand difference between expiration policy and eviction. > > 1. Expiration is a time base policy which will remove entry from cache > older than configured time duration. And will it only

Re: Alias names for project fields

2016-10-09 Thread Amir Akhmedov
fields of entity ? > > ex : > > select value as value, count(*) as count from Person where value = ? group > by value > > Thanks > -- Sincerely Yours Amir Akhmedov