Re: Cannot connect to web console

2019-02-12 Thread the_palakkaran
Yes I am running on the same node for sure. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Cannot connect to web console

2019-02-05 Thread the_palakkaran
Hi, I have copied ignite-http-rest to libs folder and set default.properties as: tokens=NlY3 server-uri=https://console.gridgain.com node-uri=http://127.0.0.1:8080 The url http://localhost:8080/ignite?cmd=version returns success, so the rest api works correctly. But I get this error and

RE: Infinispan vs Ignite?

2018-12-10 Thread the_palakkaran
Andrey,. I am trying to set up a distributed datagrid for my application. With Ignite, I can create a cluster of cache nodes for this purpose. This can alao be achieved on infinispan I believe. So what really makes ignite better than infinsipan was my concern. -- Sent from:

Infinispan vs Ignite?

2018-12-10 Thread the_palakkaran
Hi, Haven't seen much discussions on this topic. Can some one tell me if ignite has got significant performance advantage over infinispan in distributed cache management? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

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

2018-12-02 Thread the_palakkaran
Hi Amir, I have two server nodes and 1 client node. I have two caches, one that holds entire accounts from DB and another counter cache that is used for counter operations. The server nodes are deployed on two different nodes and clustered together. A client that is also on one of the machines of

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

2018-12-01 Thread the_palakkaran
Hi, I tried scaling ignite with 10, 20, 50, 100, 200, 500 threads for 1M gets. The results were not as expected. For example, my application took 19 ms per record for 20 threads which also took 49 ms per record for 50 threads. Analyzing thread dump, I could see the below trace in numbers almost

Able to access one cache not able to access another from cluster

2018-11-27 Thread the_palakkaran
Hi, I have two caches. I am able to write and put into both caches from a client. Then when I try to check the size of the caches, I am able to access one Cache from Cluster but not able to access the other. Can someone please clarify what is happening? Details given below: *1. Not able to

Re: Use case difference between CacheLoader, CacheWriter and CacheStore?

2018-11-27 Thread the_palakkaran
Thanks. Should I be using CacheStore or CacheStoreAdapter for my implementations? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Use case difference between CacheLoader, CacheWriter and CacheStore?

2018-11-27 Thread the_palakkaran
Hi, What is the difference in use case between CacheLoader, CacheWriter and CacheStore ? CacheStore contains implementations for methods in the other two, so why should I use them is what makes me confused. When loading a record using cache store, the query was getting executed in all the nodes,

Re: Values lost when cache is in partitioned mode in cluster

2018-11-26 Thread the_palakkaran
Hi, An update : when I set writeSynchronizationMode as FULL_SYNC, this is working now. [Seems like a work around, hoping to get a correct solution] Earlier cache store was getting executed even though I had never invoked its load method explicitly. Also one time, I got this message in the log:

Re: Values lost when cache is in partitioned mode in cluster

2018-11-26 Thread the_palakkaran
I do flush the data in the streamer. Reproducer attached along. reproducer.zip -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Values lost when cache is in partitioned mode in cluster

2018-11-26 Thread the_palakkaran
Hi, I have two nodes. A cache which has an Object as Key and a list of Objects as values is configured in partitioned mode. On a single node every value in the list is loaded correctly. While started in a cluster of two nodes, even though the data is queried and put into the cache correctly,

@IgniteInstanceResource not working as expected

2018-11-07 Thread the_palakkaran
Hi, I have a service from which I create a singleton IgniteQueue. I can get ignite instance using @IgniteInstanceResouce inside my service but cannot get it inside my singleton queue implementation. for queue creation. Why is this so? -- Sent from:

Is there a provision to apply predicate on values in cache?

2018-10-23 Thread the_palakkaran
Hi, My cache is like : key vs list of models. (key, ArrayList) I know that we have ScanQuery to apply filter conditions on keys. Is there a provision to apply this on values against a particular key at ignite server node? Otherwise I will have to pull these list of values to my client side and

Is it possible to avoid redeployment of an Ignite service n a cluster even if the node bound to it gets down?

2018-10-18 Thread the_palakkaran
Hi, I have a cache loading service in an ignite cluster. Since cache loading is expected to be a one time activity, is it possible to avoid a redeployment if the node bound to it gets down? If it gets deployed again, it will load cache again, which is not expected. PS: I have a work around to

Ignite Service Grid - how to have control over service execution in cluster?

2018-10-17 Thread the_palakkaran
Hi, Suppose I have three server nodes and using ignite in standalone manner. I have configured a service for loading my data into cache in all nodes, but expects only one of them to actually deploy the service as a cluster singleton. 1. How do I tell my service to execute its execute method only

Failed to process selector key error

2018-10-17 Thread the_palakkaran
Hi, While loading data using streamer, I have the below exception. Why do i get this error? >From another thread, there was a hint that it causes due to network lags. Even if this error occurs, data loading gets complete without any problem.

Re: Ignite Service Grid - Anomalous behavior

2018-10-16 Thread the_palakkaran
Does it mean all data will be loaded on all servers and then it will partition amongst them ? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What happens if Server node in a client-server gets down?

2018-10-16 Thread the_palakkaran
1. How does client re-connect to another server if I have mentioned only the address of leader aka oldest node in its configuration? 2. Suppose I have mentioned all server addresses in my client's configuration. What if I I need to add a new server node? Then I will need to restart the client

Ignite Service Grid - Anomalous behavior

2018-10-16 Thread the_palakkaran
I have a cluster of three nodes. I have a cache loader service that I deploy from my client node which actually invokes a cache store implementation's loadCache method. The problem is that the service gets executed on all nodes means every node loads the same data. I tried restricting max no of

What happens if Server node in a client-server gets down?

2018-10-16 Thread the_palakkaran
Hi, I have a cluster of three nodes and a client that is connected to one of the node in the cluster. If this node gets down, then the client will throw exception that cannot connect to the node. Is there a way to dynamically attach my client to the leader node, means if the leader is down, the

How to configure service deployment as cluster node singleton in Ignite Configuration file?

2018-10-16 Thread the_palakkaran
Hi, I have a service that needs to be deployed in a cluster of three nodes. But I want only one node to run it. How can I restrict it? I have tried setting 1)maxPerNodeCount=1 and totalCount=1 2)totalCount=1 Still on all nodes the service is getting run. Also, what is the equivalent

Re: Configuration does not guarantee strict consistency betweenCacheStore and Ignite data storage upon restarts.

2018-10-09 Thread the_palakkaran
How do I tell Ignite to include a node in the baseline topology? Isn't it the hosts that I set to TCPIpFinder? Also, is it possible to dynamically add a new node to the cluster? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: Configuration does not guarantee strict consistency betweenCacheStore and Ignite data storage upon restarts.

2018-10-09 Thread the_palakkaran
Did not fully understand what it says, but does it like even if values in my DB is changed, it wont automatically get updated into the ignite cache? Or is the concept something else? I just have a read through enabled cache. I also had the below error before it, just noticed. Is it related to the

Configuration does not guarantee strict consistency between CacheStore and Ignite data storage upon restarts.

2018-10-09 Thread the_palakkaran
Hi, Why do I get the below error while starting up ignite clustered? Both Ignite native persistence and CacheStore are configured for cache 'cacheStoresExampleCache'. This configuration does not guarantee strict consistency between CacheStore and Ignite data storage upon restarts. Consult

How to schedule and ignite service to run every 5 seconds?

2018-10-07 Thread the_palakkaran
The default scheduling happens every 1 minute. Is it possible to override it and make it every 5 seconds? SchedulerFuture schedulerFuture = ignite.scheduler().scheduleLocal( new Callable() { private int invocations = 0;

Is it possible to schedule an ignite service?

2018-10-07 Thread the_palakkaran
Hi, Is it possible to schedule an ignite service that is deployed on multiple nodes to run at periodic intervals? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Cache.get() while read through enabled throws closed result set exception

2018-10-07 Thread the_palakkaran
Hi, I have read through enabled. I clear a key from cache inside an ignite service and invoke cache.get() so as to get the latest value from db (it will execute load() method in cachestore adapter). When this is happening, I try to execute cache.get() from another service which gives me the above

Is there a way for ignite cache to know data update in DB and refresh ?

2018-10-04 Thread the_palakkaran
Hi, Is there a way in ignite to know if the original value in DB has been updated so as to refresh it in cache that has persistence enabled? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

How to check if key exists in DataStreamer buffer so that it can be flushed?

2018-08-28 Thread the_palakkaran
Hi, I have a data streamer to load data into a cache. While loading I might need to update value of a particular key in cache, so I need to check if it is already there in the streamer buffer. If so, either I need to update value against that key in the buffer or I need to flush the data in the

Re: H2 performs better than ignite !!?

2018-08-09 Thread the_palakkaran
Yes, I am running on a single node. Still ignite being in-memory, I expected it to perform better than H2. Is there anything I can do to make it faster? Like right now I have a single data region, does having multiple data regions give me better performance? Something like that? -- Sent from:

H2 performs better than ignite !!?

2018-08-09 Thread the_palakkaran
Hi, When I tried running few db lookup scenarios in H2 and ignite, I got better performance for H2. All were basic db operations like =, <=, >=. These were the figures for 2million records(2 lookups for one record) H2 : 3 minutes Ignite (cache gets based on keys) : 3.4 minutes Ignite

Re: Quick questions on Evictions

2018-06-20 Thread the_palakkaran
So to conclude, if I have enabled on heap storage for cache(using cache.setOnHeapEnabled(true), then : 1. Still data will be stored off heap, but will be loaded to heap. To escape out of memory error, I have to set eviction policies. 2. Off heap entries will be written to disk based on data page

Re: Quick questions on Evictions

2018-06-19 Thread the_palakkaran
So how do I limit cache size if ignite native persistence is enabled using dataRegionCfg.setPersistenceEnabled(true)? I don't want it to keep a lot of data in memory and others may be kept on disk. That is the requirement. Also, I do have on heap cache enabled. But I read in many threads that

Re: Quick questions on Evictions

2018-06-18 Thread the_palakkaran
Hi, DataPageEvictionMode is deprecated now, right? What should I do to evict my off heap entries? Also, can I limit off heap memory usage? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Cache Configuration for a data region

2018-06-18 Thread the_palakkaran
Do I need to configure something else for off heap eviction? I have on heap enabled and set eviction policy(LRU). Max size of 1MB also provided. I have 1.5million data, so obviously it some entries loaded in the start should be evicted. Still when I try to get those entries, I get performance

Re: Cache Configuration for a data region

2018-06-18 Thread the_palakkaran
Thanks, every thing other than native vs durable is now clear for me. I guess durable memory is pure RAM based and native persistence is combination of both RAM and disk. How to manipulate durable memory? Can I configure it? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Cache Configuration for a data region

2018-06-18 Thread the_palakkaran
Hi, 1. I have set setOnheapCacheEnabled(true) for every cache. This means they will go into java heap right? 2. Is it possible for me to take control of this durable memory? What should essentially be kept there? How to do that? I don't clearly understand the difference between durable memory

Cache Configuration for a data region

2018-06-18 Thread the_palakkaran
Hi, I have multiple on heap caches attached to a data region of maximum 1GB size durable memory. I have 512MB heap memory specified also. Is it possible for me to set the size of this cache to take maximum of 100MB and store the remaining in durable memory? Otherwise, won't it be using the

Local peek from client on a server node in a cluster

2018-06-13 Thread the_palakkaran
Hi, Is it possible to local peek on a server node using a client node, so that I can know what entries are there in the cache in partitions that are present on that node? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Local peek from client

2018-06-13 Thread the_palakkaran
Hi, Is it possible to local peek on a server node using a client node, so that I can know what entries are there in the cache in partitions that are present on that node? Also will entries of a cache be in multiple partitions on the same node? Or can a partition have entries of different cache ?

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-13 Thread the_palakkaran
Thanks for the detailed reply, now everything makes more sense to me. 1.Do I have a control over number of partitions ignite makes? I think this is done using affinity.setPartitions(5) right? 2. Can I tell ignite to have a single partition of my cache in each node? [5 nodes => 5 partitions]

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread the_palakkaran
Hi Val, My requirement is something like this: 5 nodes, 5 customers. I will keep data of 1 on each node. Whenever a file in the range 1-1 is coming in, I will process it in node 1, so that the read time is minimal (rather than looking for data on all nodes). I hope you got my

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread the_palakkaran
The requirement is an actual scenario, mate. I would have explained it if it was not a public forum. Also this is now a personal interest of mine, you have a great product, buddy. What are those "partitioning" mechanisms? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread the_palakkaran
Thanks a ton man !! One last doubt. Will this overridden partition method be invoked everytime a new node is added to the cluster? (Since there can be a new partition created at that time). Similarly, when one node in the cluster is down, hence one partition is gone, then also will this be

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread the_palakkaran
Thanks a ton again. Still few more doubts : //It's much better if you in AffinityFunction.partition() method will calculate node according to your key. If you have key 1-1 it should go to partitions that belong to a single node. But at the same time method assignPartitions() should assign

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread the_palakkaran
Actually my requirement is something like the below: I have customers with customer numbers from 1 to 5, I have 5 nodes. I need my first 1 in node1, next 1 in node2 and so on. So I guess I cannot do that here. Again about the below: //AffinityFunction does two things: maps

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread the_palakkaran
Thanks. I still have few doubts: 1. If I have a customer id, customer number, customer name fields in CustomerKey, but only customer number is unique, I should annotate only customer number with @@AffinityKeyMapped. Is that so? 2. If so, ignite internally decides which node a key with the

How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread the_palakkaran
Hi, How can I use Affinity Function to map a set of keys (may be an id range) to a particular node? What I need is that all the time this node will be responsible for loading/handling these set of keys. Also if there is a node failure, this should be distributed to other nodes. -- Sent

Ignite Backup doubts

2018-06-08 Thread the_palakkaran
Hi, I have 3 nodes. I have my caches on heap enabled. Also I have persistence enabled. I have configured 2 backups for each cache. As I understand, I can use RendezvousAffinityFunction to exclude neighbors, so that backup of a cache in Node-1 on a Machine-1 will be stored in a machine other

Re: Ignite clustering doubts

2018-06-07 Thread the_palakkaran
Why do I want to map keys to partition ids? Can you tell me more, please? By keys, it means the keys used for the cache right? If so, particular keys will always go to some node, is that so? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite clustering doubts

2018-06-07 Thread the_palakkaran
Wow ! Thanks a ton. If there was an upvote thing here,I would have surely broke it. Can you tell me what is the need of AffinityFunction then? Also can I control this Rendezvous Hashing? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Ignite clustering doubts

2018-06-07 Thread the_palakkaran
Hi, The below is my scenario: I have a CustomerCache. I have externalizable keys and models. Customers ids range from 1 to 4. I have 4 nodes. I have few doubts on clustering in ignite: 1. How can I restrict 1 records on each node? 2. How does ignite distribute records between each

Re: Does equals method have relevance in Custom Key Class

2018-06-06 Thread the_palakkaran
But you cannot use simple datatypes all the time in a real scenario, right? I mean when you need to get results based on multiple fields/columns [unless I form a key or something based on them] As per different discussions here in the forum and from some demo stubs, I understand performance of

Re: Does equals method have relevance in Custom Key Class

2018-06-06 Thread the_palakkaran
Hi Andrew, Thanks for the reply. I have two more doubts: 1. So rather than a Custom key, you are suggesting to use simple types like Integer, Long, etc, right? Why is this so? 2. What does indices with proper inline size mean ? Also, more indices does not necessarily give better performance

How Ignite performs cache.get() operation when hashCode is overridden ?

2018-06-06 Thread the_palakkaran
See the image attached. I have put keys into the cache using the equals method as follows: @Override public boolean equals(Object obj) { HierarchyMasterKey hierarchyMasterKey = (HierarchyMasterKey) obj; return

Re: Does equals method have relevance in Custom Key Class

2018-06-04 Thread the_palakkaran
The SQL queries are not getting me performance that I want. So I was trying for alternative methods to handle the same using get. Like getting the data using cache.get() and filtering them with the sql operations that I actually wanted to do. Suppose I have an equals method which will have two

Doubts regarding using externalizable in model classes

2018-06-04 Thread the_palakkaran
I have 3 doubts, 1. My model classes are externalizable. Still they can be queried using SQLFieldsQuery at server node without any problem right? 2. Externalizable items cannot be queried from a client node in remote, right? Is there a way to make it happen at client ? 3. Are there any other

Re: While using Externalizable, possible to do SQLFieldsQuery, but not cache.get()

2018-06-04 Thread the_palakkaran
Sorry, the problem was that I had a wrong hash code implementation. Now when I implemented it correctly, this works fine. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: How to use Binarylizable interface or Externalizable on my custom Key?

2018-06-04 Thread the_palakkaran
I figured out the solution for this. Just implement Externalizable and you can override equals and hashcode method. //Key is unique for each cache entry. So, it is impossible to get entry by a part of key.// I understand that, I was checking for a way to do that. Thanks a lot for the

While using Externalizable, possible to do SQLFieldsQuery, but not cache.get()

2018-06-04 Thread the_palakkaran
Hi, I have both my Key and Model classes implementing Externalizable. I am able to put data into it correctly and also to do SQLFieldsQuery on it successfully. But when I use the same cache object to get value by passing a Key, it always returns null. Why does this happen? -- Sent from:

Re: How to use Binarylizable interface or Externalizable on my custom Key?

2018-06-04 Thread the_palakkaran
Hi Andrew, I need to somehow override the equals and hashcode method in my key class. ie; I have a CustomerKey and CustomerModel configured in a customerCache. I need to get results from the cache based on the key class that I am passing to the cache for query. like when I pass a key class to

How to use Binarylizable interface or Externalizable on my custom Key?

2018-06-04 Thread the_palakkaran
Hi, I understand that by default, ignite does not allow override hash code and equals method. I need it to handle my scenarios, so i came across Binarylizable interface. How to do this? Not so clear from documentation. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Does equals method have relevance in Custom Key Class

2018-06-01 Thread the_palakkaran
Hi, Does overriding equals method in my CustomKey class has any relevance in cache.put and cache.get ? When I checked, they were not getting executed while put and get. Also I understand that ignite does not want us to override of equals method in Binary Objects. Is there any way to override

Re: QueryCursor.getAll() performance is very very low !!!

2018-06-01 Thread the_palakkaran
Hi Ilya, I was missing the index=true annotation in my server deployed jars. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: IGNITE performance very very very less !!!

2018-05-29 Thread the_palakkaran
Hi Andrew, I have found what is causing problem here and moved it into a more specific thread: http://apache-ignite-users.70518.x6.nabble.com/QueryCursor-getAll-performance-is-very-very-low-td21691.html -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: IGNITE performance very very very less !!!

2018-05-29 Thread the_palakkaran
Hi Andrew, I had analyzed this further and found out that actually ther cursor getAll is making it slow. I have pointed this out in the thread below: http://apache-ignite-users.70518.x6.nabble.com/QueryCursor-getAll-performance-is-very-very-low-td21691.html -- Sent from:

QueryCursor.getAll() performance is very very low !!!

2018-05-29 Thread the_palakkaran
Hi, I have 200 caches loaded into a single data region. Among that I have a customerCache which has 300K records. It has many indexed fields, including customer number. When I query using *SQLFieldsQuery *on this particular cache (where condition has just customer number = ?), it takes

IGNITE performance very very very less !!!

2018-05-29 Thread the_palakkaran
Hi, I have 200 caches loaded into a single data region. Among that I have a customerCache which has 300K records. It has many indexed fields, including customer number. When I query using *SQLFieldsQuery *on this particular cache (where condition has just customer number = ?), it takes around

Join Query on two different caches

2018-05-23 Thread the_palakkaran
Hi, Suppose I have two IgniteCaches customerCache and addressCache, which contains data from Customer table and Account table respectively. Is it possible to execute a sql field JOIN query as below? select * from Customer,Address where custNo = adCustNo; (where Customer and Address are the model

Re: LIKE operator in Apache ignite SQL

2018-05-23 Thread the_palakkaran
Yes, it is working. Thanks, Ilya -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: LIKE operator in Apache ignite SQL

2018-05-23 Thread the_palakkaran
@ilya So does this mean an SQL field query executed on a cache as "select custNo from Customer where custId like '%SAM%'" will work and return values ? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

LIKE operator in Apache ignite SQL

2018-05-23 Thread the_palakkaran
Hi, will like operator work in Apache ignite in the same way as in Oracle? I saw somewhere it should be uses as key=%value%. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: SEVERE error while starting ignite in embedded mode

2018-05-23 Thread the_palakkaran
Sorry, I thought both were different issues. I have deleted the other topic. And yes, it was a problem with my custom class loader and when I set my class loader from my thread context to the ignite configuration and this worked fine. -- Sent from:

RE: Dependencies required to use ignite in embedded mode?

2018-05-22 Thread the_palakkaran
@Stanislav *This is my configuration: * IgniteConfiguration igniteConfig = new IgniteConfiguration(); DataStorageConfiguration dataStorageCfg = new DataStorageConfiguration(); DataRegionConfiguration dataRegionCfg = new DataRegionConfiguration();

Dependencies required to use ignite in embedded mode?

2018-05-22 Thread the_palakkaran
Hi, Can someone help me with the dependencies needed for starting ignite in embedded mode ? (Oracle DB). I miss something so that my ignition does not start and hence cache is not getting loaded, but no error thrown from Ignite. Please help. -- Sent from:

SEVERE error while starting ignite in embedded mode

2018-05-22 Thread the_palakkaran
Hi, When I am trying to start ignite in embedded mode, the below error is thrown. Can anyone help me understand what is wrong here? May 22, 2018 12:57:08 PM org.apache.ignite.logger.java.JavaLogger error SEVERE: Got exception while starting (will rollback startup routine). class

Re: IS NULL on Numeric Query SQL Fields

2018-05-08 Thread the_palakkaran
Thanks for the reply Pavel. Actually I don't want to keep 0 in my java model. I just want some other way around so that I can execute an is null query on a numeric field and get rows returned if it was originally null in the DB. I think I need to keep it as Wrapper type and do getObject() and

IS NULL on Numeric Query SQL Fields

2018-05-07 Thread the_palakkaran
Hi, int uniqueId; int actNo; String actId; String somethingElse; Now when I load values to the cache, if actNo is null in DB, then it will be *loaded as 0* (zero being initial value) So if I execute the below query as SQLFieldsQuery on cache, no rows would be returned: select somethingElse from