Re: CacheJdbcPojoStore with MariaDB

2016-09-08 Thread 윤세연
Hi Alexey,
Thank you very much for your help.

Regards,
SeYeon Yoon

2016-09-08 19:43 GMT+09:00 Alexey Kuznetsov :

> Hi, @seyeony!
>
> In general Ignite need some heap for temp objects when loading entries to
> cache.
> I would recommend to use such very raw approximation: 200 bytes for entry,
> so max_heap = 200 * max_entries_numbers + 512MB (for Ignite system needs).
>
> But to have a clear answer - take a heap dump and find what takes memory.
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com
>


Re: Reassign partitions

2016-09-08 Thread vkulichenko
Hi,

I don't understand. In your example part.2 was moved from Node1 to Node3. So
all the entries will be moved to Node3 and the local store will be update as
well. What is lost?

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Reassign-partitions-tp7461p7620.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Spring application context resource is not injected exception while starting ignite in jdbc driver mode

2016-09-08 Thread vkulichenko
Hi,

How do you start the server node with C#? Please show it's configuration as
well.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Spring-application-context-resource-is-not-injected-exception-while-starting-ignite-in-jdbc-driver-me-tp7272p7619.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: "OFFHEAP_VALUES" MODE (VISOR CONSOLE)

2016-09-08 Thread vkulichenko
Hi,

This is correct behavior. In OFFHEAP_VALUES mode, entries are actually
stored on-heap, but in instead of values they have a pointers to off-heap
memory.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/OFFHEAP-VALUES-MODE-VISOR-CONSOLE-tp7601p7618.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Please warn Oracle Java8 VM has inline optimization error!

2016-09-08 Thread vkulichenko
Hi,

This is interesting. What should I run in your test to reproduce the issue?
Can you create a JIRA ticket for it?

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Please-warn-Oracle-Java8-VM-has-inline-optimization-error-tp7582p7617.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-09-08 Thread vkulichenko
Ravi,

Did you check my link?

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7616.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: how to get all keys and values stored into ignite cache for ignite1.6?

2016-09-08 Thread vkulichenko
IgniteCache is Iterable, so you can just iterate through its contents.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/how-to-get-all-keys-and-values-stored-into-ignite-cache-for-ignite1-6-tp7612p7615.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: understanding Locks usage

2016-09-08 Thread vkulichenko
Sam,

Data access semantics are provided by transactions. You have different
concurrency mode and isolation level to control it. There is no much sense
to use lock for this.

Answering other questions:
1. You have tryLock method timeout. Once again, Ignite lock provides
everything that is available in Java lock (it actually implements the
interface). If the node that locked an entry fails, this entry will be
unlocked right away.
2. Generally transactional cache is around 2 times slower.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/understanding-Locks-usage-tp7489p7614.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Overall desgn question

2016-09-08 Thread vkulichenko
With replicated cache you don't need to collocate. You can try both
approaches - a single cache for documents that have nested collection of
pages, or two separate caches for documents and pages.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Overall-desgn-question-tp7459p7613.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


how to get all keys and values stored into ignite cache for ignite1.6?

2016-09-08 Thread percent620
Hello,

I have request to get all the keys and values from igniteCache for ignite
1.6 version?

Can anyone tell me how to do that? thanks!!!



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/how-to-get-all-keys-and-values-stored-into-ignite-cache-for-ignite1-6-tp7612.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Overall desgn question

2016-09-08 Thread styriver
Thank you for the response. Does this approach make sense if we are going to
be in replicated mode. We will not be using partition mode. 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Overall-desgn-question-tp7459p7611.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Yarn Ignite Container Automatically exit when other yarn application running

2016-09-08 Thread Ivan Veselovsky
Hi, 
mail archive record
http://mail-archives.apache.org/mod_mbox/hadoop-user/201502.mbox/%3cd0f948da.33f4a%25xg...@hortonworks.com%3E
seems to describe similar issue.
The advice there is to see 
https://issues.apache.org/jira/browse/MAPREDUCE-6230 and
https://issues.apache.org/jira/browse/YARN-3103 
Hadoop issues.
"Version" fields of both the above isses suggest that both them existed in
Hadoop 2.6.0 , so that may be the reason. 
I may suggest you to try a distribution with a newer Hadoop version that has
both the isses fixed.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Yarn-Ignite-Container-Automatically-exit-when-other-yarn-application-running-tp7335p7610.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Azure App Service compatible?

2016-09-08 Thread azureappserviceuser
The TcpDiscoverySharedFsIpFinder with localHost 127.0.0.1 did the trick! 
Also works correctly when scaling out (multiple instances).  Thanks Denis!   
(Sorry for long reply delay, was certain I had posted this a while back!)



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Azure-App-Service-compatible-tp4743p7609.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: understanding Locks usage

2016-09-08 Thread Andrey Gura
Sam,

as workaround you can use IgniteQueue in order to implement distributed
exclusive lock. You can find example of such solution in vertx-ignite
project. See IgniteClusterManager class [1], getLockWithTimeout() method
and LockImpl class.

[1]
https://github.com/vert-x3/vertx-ignite/blob/master/src/main/java/io/vertx/spi/cluster/ignite/IgniteClusterManager.java

On Thu, Sep 8, 2016 at 1:49 AM, javastuff@gmail.com <
javastuff@gmail.com> wrote:

> With Key Vs Entry lock, I am talking about lock granularity.
> Key lock is kind of synchronous block or method which have processing logic
> unrelated to the key or cached data being processed but a different shared
> resource. Kind of distributed mutex. but note that it does not need all
> other feature from a distributed cache access semantic.
> Entry lock is a distributed cache lock with all data access semantics. It
> can be seen as row level lock for a DB system.
> It is good to have, but not necessary. Entry lock can achieve what key lock
> need to do.
>
> Few last question on Locks -
> 1. Is there a way to have time-to-live for a lock? what happens
> thread/system got killed before unlocking?
> 2. Locks works only with TRANSACTIONAL mode, is there approx benchmark
> which
> can be shared for FETCH/PUT/FECTCHALL/PUTALL comparing TRANSACTIONAL vs
> ATOMIC?
>
> For key lock scenario above, I can have a separate cache just for locks
> (Transnational) and separate cache for data (Atomic), but want to decide is
> that really needed.
>
> Thanks,
> -Sam
>
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/understanding-Locks-usage-tp7489p7596.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com


Re: CacheJdbcPojoStore with MariaDB

2016-09-08 Thread Alexey Kuznetsov
Hi, @seyeony!

In general Ignite need some heap for temp objects when loading entries to
cache.
I would recommend to use such very raw approximation: 200 bytes for entry,
so max_heap = 200 * max_entries_numbers + 512MB (for Ignite system needs).

But to have a clear answer - take a heap dump and find what takes memory.

-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com


How to optimize Ignite when running on a virtual machine

2016-09-08 Thread Level D
Hi all,


I have read the article about jvm and system tuning 
(https://apacheignite.readme.io/docs/jvm-and-system-tuning#section-detailed-garbage-collection-stats).
 


I found it mainly focus on physical machines. 


But I use virtual machines. Is there any optimization for the virtual machine? 


Regards,‍
Zhou.

Re: CacheJdbcPojoStore with MariaDB

2016-09-08 Thread seyeony
Hi Alexey,

I gave more heap and I was able to load the whole dataset in cache.
I have another questions.
Eventhough I used OFFHEAP_TIERED in the configuration, why do I need more
heap?
Should I find the right heap size by trial and error or is there any
calculation method?
Should I give same heap size for both node and clients?
Or which of node btw server and client mode does need more heap size?

- sy




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/CacheJdbcPojoStore-with-MariaDB-tp7538p7604.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Cache Problems

2016-09-08 Thread Level D
Hi val,


Thank you again for your kind reply. 



http://www.springframework.org/schema/beans; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xmlns:p="http://www.springframework.org/schema/p; 
xmlns:util="http://www.springframework.org/schema/util;
xmlns:context="http://www.springframework.org/schema/context;
xsi:schemaLocation="http://www.springframework.org/schema/beans 
   
classpath:/org/springframework/beans/factory/xml/spring-beans-4.0.xsd
   http://www.springframework.org/schema/context
   
http://www.springframework.org/schema/context/spring-context.xsd
   http://www.springframework.org/schema/util 
   
http://www.springframework.org/schema/util/spring-util.xsd;>




































java.lang.String

java.lang.Long
















com.ffcs.oss.ignite.rlam.domain.RelatedPreAlarmKey

com.ffcs.oss.ignite.rlam.domain.RelatedPreAlarm















com.ffcs.oss.ignite.rlam.domain.RelatedPreAlarmOrgKey

com.ffcs.oss.ignite.rlam.domain.RelatedPreAlarmOrg















com.ffcs.oss.ignite.rlam.domain.RelatedPreNewAlarmKey

com.ffcs.oss.ignite.rlam.domain.RelatedPreNewAlarm















Re: Please warn Oracle Java8 VM has inline optimization error!

2016-09-08 Thread wbyeh
https://youtu.be/dQxGd_yiQ4A


I think I solved this Java 8 optimization by '-XX:-TieredCompilation'  
or change the code above not to use autobox during method call.

It's quite .


e.g.

Double w =4; 
Double p =4; 
  askrec.setWin(w); 
  askrec.setPlace(p); 


public void setPlace(Double p) { 
assert p > 0 : "place <=0 " + p; 
this.place = p; 
} 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Please-warn-Oracle-Java8-VM-has-inline-optimization-error-tp7582p7602.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


"OFFHEAP_VALUES" MODE (VISOR CONSOLE)

2016-09-08 Thread Ignitebie
Hi,

We have configured few caches in "OFFHEAP_VALUES" mode and trying to see how
entries are being deployed (ON/OFF) using visor. Our observation it that for
"OFFHEAP_TIERED", visor show entries in off heap metrics on visor console.
However, for OFFHEAP_VALUES, visor show count 0 for off heap and all count
is reflected against on heap column Header (   Entries (Heap / Off heap)).

Is it because key is still on heap and it counts entries not (values). What
is the way to know whether values are really of heap now  in OFFHEAP_VALUES.





--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/OFFHEAP-VALUES-MODE-VISOR-CONSOLE-tp7601.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-09-08 Thread Ravi Puri
hello, 
can u provide with other method to load data into cache or nay other way ?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7600.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.