Re: L2-cache slow/not working as intended

2020-11-12 Thread Ilya Kasnacheev
Hello! Then it should survive restart while keeping cache content. I'm not an expert in Hibernate caching but that I would expect. Regards, -- Ilya Kasnacheev чт, 12 нояб. 2020 г. в 12:58, Bastien Durel : > Le mardi 10 novembre 2020 à 17:39 +0300, Ilya Kasnacheev a écrit : > > Hello! > > > >

Re: L2-cache slow/not working as intended

2020-11-12 Thread Bastien Durel
Le mardi 10 novembre 2020 à 17:39 +0300, Ilya Kasnacheev a écrit : > Hello! > > You can make it semi-persistent by changing the internal Ignite node > type inside Hibernate to client (property clientMode=true) and > starting a few stand-alone nodes (one per each VM?) > > This way, its client

Re: L2-cache slow/not working as intended

2020-11-10 Thread Ilya Kasnacheev
Hello! You can make it semi-persistent by changing the internal Ignite node type inside Hibernate to client (property clientMode=true) and starting a few stand-alone nodes (one per each VM?) This way, its client will just connect to the existing cluster with data already there. You can also

Re: L2-cache slow/not working as intended

2020-11-09 Thread Bastien Durel
Le lundi 09 novembre 2020 à 19:11 +0300, Ilya Kasnacheev a écrit : > Hello! > > Why Hibernate won't use it for reads of that user, I don't know, it's > outside of scope of Ignite. > > Putting 1,000,000 records in 5 minutes sounds reasonable, especially > since L2 population is optimized for

Re: L2-cache slow/not working as intended

2020-11-09 Thread Ilya Kasnacheev
Hello! Why Hibernate won't use it for reads of that user, I don't know, it's outside of scope of Ignite. Putting 1,000,000 records in 5 minutes sounds reasonable, especially since L2 population is optimized for latency, not throughput (as opposed to e.g. CacheLoader). Regards, -- Ilya

Re: L2-cache slow/not working as intended

2020-11-09 Thread Bastien Durel
Le lundi 09 novembre 2020 à 14:09 +0300, Ilya Kasnacheev a écrit : > Hello! > Putting 1 million entries of a single query in L2 cache does not > sound like a reasonable use of L2 cache. Hello. No one will probably read the whole Event database at once with the product, but it was a read-speed

Re: L2-cache slow/not working as intended

2020-11-09 Thread Bastien Durel
Le vendredi 06 novembre 2020 à 11:22 -0800, Evgenii Zhuravlev a écrit : > Hi, > How many nodes do you have? Can you check the same scenario with one > node only? How do you run queries? Is client on the same machine as a > server node? > Hello. I have 2 nodes, running on differents VMs on the

Re: L2-cache slow/not working as intended

2020-11-09 Thread Ilya Kasnacheev
Hello! Putting 1 million entries of a single query in L2 cache does not sound like a reasonable use of L2 cache. Regards, -- Ilya Kasnacheev чт, 5 нояб. 2020 г. в 12:59, Bastien Durel : > Hello, > > I'm using an ignite cluster to back an hibernate-based application. I > configured L2-cache

Re: L2-cache slow/not working as intended

2020-11-06 Thread Evgenii Zhuravlev
Hi, How many nodes do you have? Can you check the same scenario with one node only? How do you run queries? Is client on the same machine as a server node? I would recommend enabling DEBUG logs for org.apache.ignite.cache.hibernate package. DEBUG logs can show all get and put operations for

L2-cache slow/not working as intended

2020-11-05 Thread Bastien Durel
Hello, I'm using an ignite cluster to back an hibernate-based application. I configured L2-cache as explained in https://ignite.apache.org/docs/latest/extensions-and-integrations/hibernate-l2-cache (config below) I've ran a test reading a 1M-elements cache with a consumer counting elements.