Re: Node starting error

2020-10-26 Thread kay
Hello, 
Here is my configuration file

NexusCache-config.xml

  

Thank you!!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Node starting error

2020-10-26 Thread kay
Hello, I have a 2 server nodes and I configure only one node Data region
eviction policy and restart.

and I got a the error 


org.apache.ignite.internal.processors.cache.persistence.tree.CorruptedTreeException:
B+Tree is corrupted [pages(groupId, pageId)=[], msg=Runtime failure on
bounds: [lower=null, upper=null]]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.corruptedTreeException(BPlusTree.java:5927)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.find(BPlusTree.java:1054)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.tree.CacheDataTree.find(CacheDataTree.java:164)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.tree.CacheDataTree.find(CacheDataTree.java:63)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.find(BPlusTree.java:1021)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl$CacheDataStoreImpl.cursor(IgniteCacheOffheapManagerImpl.java:2844)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.reservedIterator(IgniteCacheOffheapManagerImpl.java:1141)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.rebalanceIterator(IgniteCacheOffheapManagerImpl.java:1184)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionSupplier.handleDemandMessage(GridDhtPartitionSupplier.java:270)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPreloader.lambda$handleDemandMessage$1(GridDhtPreloader.java:370)
~[ignite-core-2.8.0.jar:2.8.0]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[?:1.8.0_181]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:1.8.0_181]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Caused by:
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTreeRuntimeException:
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTreeRuntimeException:
java.lang.IllegalArgumentException: Invalid object type: 0
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.findLowerUnbounded(BPlusTree.java:1000)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.find(BPlusTree.java:1039)
~[ignite-core-2.8.0.jar:2.8.0]
... 11 more
Caused by:
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTreeRuntimeException:
java.lang.IllegalArgumentException: Invalid object type: 0
at
org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter.doInitFromLink(CacheDataRowAdapter.java:290)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter.initFromLink(CacheDataRowAdapter.java:160)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter.initFromLink(CacheDataRowAdapter.java:131)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.tree.DataRow.(DataRow.java:55)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.tree.CacheDataRowStore.dataRow(CacheDataRowStore.java:130)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.tree.CacheDataTree.getRow(CacheDataTree.java:417)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.tree.CacheDataTree.getRow(CacheDataTree.java:63)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree$ForwardCursor.fillFromBuffer0(BPlusTree.java:5608)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree$AbstractForwardCursor.fillFromBuffer(BPlusTree.java:5376)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree$AbstractForwardCursor.init(BPlusTree.java:5302)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.findLowerUnbounded(BPlusTree.java:989)
~[ignite-core-2.8.0.jar:2.8.0]
at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.find(BPlusTree.java:1039)
~[ignite-core-2.8.0.jar:2.8.0]
... 11 more
Caused by: java.lang.IllegalArgumentException: Invalid object type: 0
at
org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.toKeyCacheObject(CacheObjectBinaryProcessorImpl.java:1167)
~[ignite-core-2.8.0.jar:2.8.0]

Different cache expiry policy each node..

2020-10-13 Thread kay
Hello, I have 4 server nodes.

and each node have a cache with 4minutes Modified expirypolicy..

I restarted 1 node for change expirypolicy to 10minutes..

Is it apply to expiryPolicy for other node?? or I have to start other 3
nodes also??

Thank you so much



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


RE: ClusterGroupEmptyException: Topology projection is empty.

2020-09-10 Thread kay
Hello,

I don't use Visor for cluster monitoring.. then Why that log is showing
up..?


Thank you so much!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ClusterGroupEmptyException: Topology projection is empty.

2020-09-08 Thread kay
Hello

Here is my full log
NexusCache1-1-1.out
 
 

I'm using 2.8.0 version and I don't use any clustergroup configuration.

Thank you!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


ClusterGroupEmptyException: Topology projection is empty.

2020-09-08 Thread kay
Hello! I have a 2 server nodes.
 when I start a first node, sometimes I got 'ClusterGroupEmptyException:
Topology projection is empty.'

What is exactly this Exception mean??
and What should I do to avoid this error? Or is it a okay to ignore??

Thank you so much!




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite Node shutdown..

2020-09-08 Thread kay
Hello, I test if i use max heap size..

I got this error and node was shut down..

rmtAddr's client socket port is allocated by OS and it is randomized.

 
 

[2020.09.08 14:27:04.251] [ERROR] [] Critical system error detected.
Will be handled accordingly to configured handler
[hnd=StopNodeOrHaltFailureHandler [tryStop=false, timeout=0,
super=AbstractFailureHandler [ignoredFailureTypes=UnmodifiableSet
[SYSTEM_WORKER_BLOCKED, SYSTEM_CRITICAL_OPERATION_TIMEOUT]]],
failureCtx=FailureContext [type=CRITICAL_ERROR, err=class
o.a.i.i.mem.IgniteOutOfMemoryException: Out of memory in data region
[name=FW_PSF_REGION, initSize=15.0 MiB, maxSize=100.0 MiB,
persistenceEnabled=false] Try the following:
   ^-- Increase maximum off-heap memory size
(DataRegionConfiguration.maxSize)
   ^-- Enable Ignite persistence
(DataRegionConfiguration.persistenceEnabled)
   ^-- Enable eviction or expiration policies]]
  org.apache.ignite.internal.mem.IgniteOutOfMemoryException: Out of
memory in data region [name=FW_PSF_REGION, initSize=15.0 MiB, maxSize=100.0
MiB, persistenceEnabled=false] Try the following:
   ^-- Increase maximum off-heap memory size
(DataRegionConfiguration.maxSize)
   ^-- Enable Ignite persistence
(DataRegionConfiguration.persistenceEnabled)
   ^-- Enable eviction or expiration policies
  at
org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager.ensureFreeSpaceForInsert(IgniteCacheDatabaseSharedManager.java:1063)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.persistence.RowStore.addRow(RowStore.java:106)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl$CacheDataStoreImpl.createRow(IgniteCacheOffheapManagerImpl.java:1746)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.GridCacheMapEntry$AtomicCacheUpdateClosure.update(GridCacheMapEntry.java:6409)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.GridCacheMapEntry$AtomicCacheUpdateClosure.call(GridCacheMapEntry.java:6160)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.GridCacheMapEntry$AtomicCacheUpdateClosure.call(GridCacheMapEntry.java:5849)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree$Invoke.invokeClosure(BPlusTree.java:3817)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree$Invoke.access$5700(BPlusTree.java:3711)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.invokeDown(BPlusTree.java:1955)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.invoke(BPlusTree.java:1839)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl$CacheDataStoreImpl.invoke0(IgniteCacheOffheapManagerImpl.java:1696)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl$CacheDataStoreImpl.invoke(IgniteCacheOffheapManagerImpl.java:1679)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.invoke(IgniteCacheOffheapManagerImpl.java:441)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.GridCacheMapEntry.innerUpdate(GridCacheMapEntry.java:2314)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateSingle(GridDhtAtomicCache.java:2636)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.update(GridDhtAtomicCache.java:2097)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal0(GridDhtAtomicCache.java:1914)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsyncInternal(GridDhtAtomicCache.java:1714)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicAbstractUpdateFuture.sendSingleRequest(GridNearAtomicAbstractUpdateFuture.java:300)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture.map(GridNearAtomicSingleUpdateFuture.java:486)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicSingleUpdateFuture.mapOnTopology(GridNearAtomicSingleUpdateFuture.java:446)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicAbstractUpdateFuture.map(GridNearAtomicAbstractUpdateFuture.java:249)
[ignite-core-2.8.0.jar:2.8.0]
  at

partition loss policy exception??

2020-09-01 Thread kay
Hello, I have a question about PartitionLossPolicy..

I configure partitionLossPolicy for 'READ_ONLY_SAFE' specific cache and If
some reason that I don't know occur a partition loss.

Then, when I access to loss partition for read using java thin client, What
happend?

Is it throw a exception? If throw a Exception, What is a Exception Name??


I'll waiting for reply.

Thank you so much.








--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [WARN] Failed to read magic header log

2020-09-01 Thread kay
Hello, I'm waiting for reply..

rmtAddr port is always change..

Is it normal or I don't have to care log msg??
these log shows every 3~5 seconds.

Thank u so much.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Cache Expiry policy not working..

2020-08-27 Thread kay
Hi I didn't notice a Cache Name

cache name is NC_INITPGECONTRACT_CACHE

Thank you.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Cache Expiry policy not working..

2020-08-26 Thread kay
Hi, 

I can get data at remain cache data. so that issue you are share is not my
problem.

It not happend every time. sometimes, data is not expired.

Here is my node log when after start, data not expired.
Cache1-2-2.zip
  

this time 17 data count was not expired.
nodeId : 55a72003-066e-4504-bd0e-638ab19c5127
partition Id : 4,5,7,9,12,13,16,20,22,24,27,33,39,42,47,48,49

Please check and analyze the log file to why thoes data were not expired.

I'll wait for reply.
Thank you so much.







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Non-loopback local Ips:172.17.0.1...

2020-08-25 Thread kay
Hello, I have 2 disk and each have 2 nodes so I have 4 nodes.

A few days ago, when I starting node there is these log..

Non-loopback local Ips:172.17.0.1, 'disk local Ip'

what is 172.17.0.1 Ip?? it clustered and started well with rest of the
nodes.

I used SystemView to get local node Ip.

'NODE_ATTRIBUTES' in 'org.apache.ignite.ips'. Result was 172.17.0.1, 'disk
local Ip'.

I wanna get just local Ip that I config.

What is '172.17.0.1' I didn't configured..

I'll wating for reply.
Thank you so much.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Cache Expiry policy not working..

2020-08-25 Thread kay
Hello, There is a get method in my code.

but that method is not for expiry check that method to check if data is
saved well.

I figured out in GirdGain webconsole cache size after 4hours data put(expiry
policy is 4 minutes).



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Cache Expiry policy not working..

2020-08-25 Thread kay
Hello, here is my code for test.


public class CachePutLoopTest {

 /**
   * @param args
   */
  public static void main(String[] args) {
   /*
cache의 ip, port 파라미터를 받아서 특정노드에 데이터를 저장  
*/
   System.out.println("┌ Cache Rebalance Put/Get
Start ");
   ClientConfiguration cfg = new
ClientConfiguration().setAddresses(args[0]);
   IgniteClient igniteClient = Ignition.startClient(cfg);
   
   ClientCache testCache = igniteClient.cache(args[1]);
   System.out.println("│ ■ Cache Name : " + testCache.getName());
   System.out.println("│ ■ Cache Put Start");
   
   for(int i = 0; i < Integer.parseInt(args[2]); i++) {
testCache.put(i, i+1);
   }// end for(i)
   
   System.out.println("│ ■ Cache Put End");
   System.out.println("│ ■ Cache Get Start");
   for(int i = 0; i < Integer.parseInt(args[2]); i++) {
System.out.println("│ ■ Data Get : "+testCache.get(i));
   }// end for(i)
   System.out.println("│ ■ Cache Get End");
   System.out.println("└ Cache Rebalance Put/Get End
");
   System.out.println();
   System.out.println();
  

 }// end of main

}// end of CachePutLoopTest.java


and I use GridGainWebConsole for monitoring.
so I figured out remain cache data.


Thank you so much.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Cache Expiry policy not working..

2020-08-19 Thread kay
I use java thin client and here is my java source code.

ClientConfiguration cfg = new
ClientConfiguration.setAddress('igniteIp:clientPort');
IgniteClient igniteClient = Ignition.startClient(cfg);
ClientCache testCache = igniteClient.cache("TEST_CACHE");

for(int i =0; i< 50; i++){
 testCache.put(i, i+1);
}


some data is not expiry.. it remains..
I'll waiting for reply.
Thank you so much




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: IpFinder with domain

2020-08-18 Thread kay
Thank you so much!
I change the L4 port and It worked well.!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: IpFinder with domain

2020-08-18 Thread kay
Hello!

I use java thin client and put 80 port at clientConfiguration.
ex) ClientConfiguration.setAddresses("cache.ignite.com:80");

but I got a Exception.

Caused by: java.lang.IllegalArgumentException: Ignite client port 80 is out
of valid ports range 1024...49151.

Do I have to change port for L4?? like 'cache.ignite.com:49100'?

I think 'cache.ignite.com' is not an Ignite server node(its L4), but thin
client recognizes it for Server Node.
I'll try to change the port but I wanna sure for use L4 possibility..

I'll wating for reply!
Thank you so much!





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Cache Expiry policy not working..

2020-08-14 Thread kay
Hello, I'm using Apache Ignite 2.8.0.

I have 7 nodes and put and get cache data with starting 8th node.

The cache expiry policy is CreatedExpiryPolicy 4 minutes. However, some
cache data stored on the eighth node remains, not expired and there is no
error log.

After this situation, I test several times put data and expired well

Is this a bug with data rebalance / starting node??








--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: IpFinder with domain

2020-08-13 Thread kay
Hello, 

In my case, 'cache.ignite.com' is a L4 and the port is 80.

cache.ignite.com(ex. 41.1.166.123) will be connect Ignite Server.(ex.
42.1.129.123:47500, 42.1.129.123:47501 ...)

Is it possible? or should I define port for connect to Ignite Server.

I will waiting for reply!
Thank u so much!






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


IpFinder with domain

2020-08-13 Thread kay
Hello I have 8nodes, and using java thin client.

I know set Ip:port List at config file 

ex)


  
ip:port
...


I'm curious is it possible to set only url? not using port.
for example) 
cache.ignite.com


I already set that url(L4) but is not response(timeout also)

Our Project using L4 for loadbalancing infront of Ignite Nodes.
If is not available to use L4(with url) do I have to list all nodes?? 

I'm waiting for reply! Thank you so much?







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: [WARN] Failed to read magic header log

2020-07-29 Thread kay
Hello, 

Here is the full log when i start the node.
Cache1-2-2.out
  

I'm using 2.8.0 version and I don't think there is a other applications
connect to this IP/Port.


Thank you so mcuh.





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


ignite cache metrics...

2020-07-29 Thread kay
Hello, I'm curious about cache hit ratio.
How do we calculate the Hit rate of Cache?
Getting data means getting hit rates?


Thank you
 





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


[WARN] Failed to read magic header log

2020-07-28 Thread kay
Hello, I have 4 nodes each server(2, 2) and all cluster

I found 'Failed to read magic header (too few bytes received) [
rmtAddr=remoteIp:x, locAddr=localIp:x]

It logged WARN level.

What is log mean? is it able to fix it??



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite DefaultDataRegion config

2020-07-21 Thread kay
Hello!

What size should I give you for DefaultDataRegion?
Every cache has a specific Region(I'm not going to use defaultDataRegion)

40MB is enough? If will not use defaultDataRegion.

Thank you so much
I will wait for reply!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


DataRegion sysMemPlc, TxLog

2020-07-15 Thread kay
Hello

We found sysMempPlc and Txlog DataRegion. What is each role? 
Do I have to monitoring thoes regions??

Thank you so much



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


DataRegion size with node start

2020-07-06 Thread kay
Hello,

I'm curious about DataRegion with node start.

Does the DataRegion size configure allow space at the beginning of a node or
use space while using it?

Thank you so much!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite Persistent Store with off-heap

2020-07-03 Thread kay
Hello,

I found in log file if i set DataRegion for PersistenceEnabled=true

There are 

off-heap
-- DataRegion_Name region [used=41MB, free=50.95%, comm=15MB]

and 

Ignite Persistence 
-- DataRegion_Name region [used=41MB]

Is it stored equally in disk and off-heap area(41MB)? 
and If i set DataRegion maxSize=100MB , Can I use up to 100MB of disk
storage for node?

Thank you so much :)









--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite node log file setup

2020-07-03 Thread kay
Thank you so much!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite node log file setup

2020-07-01 Thread kay
Hello, I'm waiting for reply :)

How can I set system property to use in ignite config file??
I set and got a error so , attacted log file before..

Thank you so much



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite Configuration file modify

2020-06-30 Thread kay
Hello :)

Because If I add cache by code, the cache disappears when the node is
restarted 
so I want to modify the configuration file directly.

Thank you!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite Configuration file modify

2020-06-30 Thread kay
Hello, 
Is there a way to modify the configuration file after Ignite Node starts?
Should I use FTP directly to create a page to modify configuration file?

I know I can add cache in ignite run time but after restart, There is not
exist cache add in runtime.
So I need to find a way modify configuration file..

Thank you so much





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Apache Ignite with Spring framework

2020-06-16 Thread kay
Hello, 
Does the ignite operate on a spring framework basis? 
Can I register a spring controller in classpath at server remote node and
use it?(using component , like @Controller)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Apache Ignite with Spring framework

2020-06-16 Thread kay
Hello, 
I apologize for sent a lot of e-mails with the same content.
I also show your answer on Stack Overflow.

I just configure start in xml file like this 
 
 
  

and There are caches and dataregions.

 I execute ignite.sh config.xml & 

What should I configure for registering spring bean??

Thank you so much








--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Apache Ignite with Spring framework

2020-06-16 Thread kay
Hello,

Does the Apache Ignite operate on a spring framework basis? 

Can I register a spring controller in classpath at server remote node and
use it?
(using component scan, like @Controller)

Thank you



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Apache Ignite with Spring framework

2020-06-16 Thread kay
Does the ignite operate on a spring framework basis? 
Can I register a spring controller in classpath at server node and use
it?(using component scan, like @Controller)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Apache Ignite operation

2020-06-16 Thread kay
Hello,

Does the Apache Ignite operate on a spring framework basis? 

Can I register a spring controller in classpath at server remote node and
use it?
(using component scan, like @Controller)

Thank you



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite with Spring Framework

2020-06-16 Thread kay
Hello, 
Does the ignite operate on a spring framework basis? 
Can I register a spring controller in classpath and use it?(using component
, like @Controller)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


IgniteSpringBean start failed

2020-06-16 Thread kay
Hello, I start node using

sh ignite.sh /ERP/Domains/CacheDomain/config/config.xml &  command 

It worked well before I added IgniteSpringBean.

After I add this code,



 
 
 
 
 
 



2020-06-16T16:20:38,429][INFO ][main][G] Node started : [stage="Configure
system pool" (53 ms),stage="Start managers" (187 ms),stage="Configure binary
metadata" (41 ms),stage="Start processors" (623 ms),stage="Init metastore"
(9 ms),stage="Finish recovery" (0 ms),stage="Join topology" (170
ms),stage="Await transition" (14 ms),stage="Await exchange" (379
ms),stage="Total time" (1476 ms)]
 class org.apache.ignite.IgniteException: Failed to find configuration in:
file:/ERP/Domains/CacheDomain/config/config.xml
 at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
 at org.apache.ignite.Ignition.start(Ignition.java:349)
 at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find
configuration in: file:/ERP/Domains/CacheDomain/config/config.xml
 at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
 at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
 at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:710)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:911)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
 at org.apache.ignite.Ignition.start(Ignition.java:346)
 ... 1 more
 Failed to start grid: Failed to find configuration in:
file:/ERP/Domains/CacheDomain/config/config.xml



Node started and failed.

Is there any config set to use IgniteSpringBean??





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite with Spring Framework

2020-06-16 Thread kay
Hello, 
Does the ignite operate on a spring framework basis? 
Can I register a spring controller in classpath at server remote node and
use it?(using component , like @Controller)

Thank you



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


IgniteSpringBean IgniteCheckedException

2020-06-16 Thread kay bae
Hello, I start node using command

' sh ignite.sh ./config/config.xml &  '

It worked well before I added IgniteSpringBean.

After I add this code,



 
 
 
 
 
 



2020-06-16T16:20:38,429][INFO ][main][G] Node started : [stage="Configure
system pool" (53 ms),stage="Start managers" (187 ms),stage="Configure
binary metadata" (41 ms),stage="Start processors" (623 ms),stage="Init
metastore" (9 ms),stage="Finish recovery" (0 ms),stage="Join topology" (170
ms),stage="Await transition" (14 ms),stage="Await exchange" (379
ms),stage="Total time" (1476 ms)]
 class org.apache.ignite.IgniteException: Failed to find configuration in:
file:./config/config.xml
 at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
 at org.apache.ignite.Ignition.start(Ignition.java:349)
 at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find
configuration in: file:./config/config.xml
 at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
 at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
 at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:710)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:911)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
 at org.apache.ignite.Ignition.start(Ignition.java:346)
 ... 1 more
 Failed to start grid: Failed to find configuration in:
file:./config/config.xml



Node started and failed.

Is there any set up to use IgniteSpringBean??

Thank you


IgniteCheckedException

2020-06-16 Thread kay bae
Hello, I start node using command

' sh ignite.sh ./config/config.xml &  '

It worked well before I added IgniteSpringBean.

After I add this code,



 
 
 
 
 
 



2020-06-16T16:20:38,429][INFO ][main][G] Node started : [stage="Configure
system pool" (53 ms),stage="Start managers" (187 ms),stage="Configure
binary metadata" (41 ms),stage="Start processors" (623 ms),stage="Init
metastore" (9 ms),stage="Finish recovery" (0 ms),stage="Join topology" (170
ms),stage="Await transition" (14 ms),stage="Await exchange" (379
ms),stage="Total time" (1476 ms)]
 class org.apache.ignite.IgniteException: Failed to find configuration in:
file:./config/config.xml
 at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
 at org.apache.ignite.Ignition.start(Ignition.java:349)
 at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find
configuration in: file:./config/config.xml
 at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
 at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
 at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:710)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:911)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
 at org.apache.ignite.Ignition.start(Ignition.java:346)
 ... 1 more
 Failed to start grid: Failed to find configuration in:
file:./config/config.xml



Node started and failed.

Is there any set up to use IgniteSpringBean??

Thank you


Ignite operation with Spring Framekwork

2020-06-15 Thread kay bae
Hello,

Does the Apache Ignite operate on a spring framework basis?

Can I register a spring controller in classpath at server remote node and
use it?
(using component scan, like @Controller)

Thank you


Re: Ignite node log file setup

2020-06-10 Thread kay
Hello, 

I excute

 sh ./ignite.sh -J-DgridName=testCache1-1 -v ./config/testCache1-1.xml

and attachted whloe log file.

Thank you testCache1-1.out
  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite node log file setup

2020-06-08 Thread kay
Hello!

I start up 

sh ./ignite.sh -J-DgridName=testGridName -v ./config/config-cache.xml

and in config-cache.xml 


but server start failed.

Is that not proper to set igniteInstanceName?? 

log is here 
class org.apache.ignite.IgniteException: Failed to start manager:
GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
 at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
 at org.apache.ignite.Ignition.start(Ignition.java:349)
 at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
manager: GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.communication.GridIoManager]
 at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1965)
 at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1173)
 at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2038)
 at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1703)
 at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1117)
 at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1035)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:921)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
 at org.apache.ignite.Ignition.start(Ignition.java:346)
 ... 1 more
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
SPI: TcpCommunicationSpi [connectGate=null,
connPlc=org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$FirstConnectionPolicy@6622fc65,
chConnPlc=org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$4@299321e2,
enableForcibleNodeKill=false, enableTroubleshootingLog=false,
locAddr=42.1.188.128, locHost=intdev01/42.1.188.128, locPort=48722,
locPortRange=1, shmemPort=-1, directBuf=true, directSndBuf=false,
idleConnTimeout=60, connTimeout=5000, maxConnTimeout=60,
reconCnt=10, sockSndBuf=32768, sockRcvBuf=32768, msgQueueLimit=0,
slowClientQueueLimit=0, nioSrvr=GridNioServer [selectorSpins=0,
filterChain=FilterChain[filters=[GridNioCodecFilter
[parser=org.apache.ignite.internal.util.nio.GridDirectParser@2f17e30d,
directMode=true], GridConnectionBytesVerifyFilter], closed=false,
directBuf=true, tcpNoDelay=true, sockSndBuf=32768, sockRcvBuf=32768,
writeTimeout=2000, idleTimeout=60, skipWrite=false, skipRead=false,
locAddr=intdev01/42.1.188.128:48722, order=LITTLE_ENDIAN, sndQueueLimit=0,
directMode=true,
mreg=org.apache.ignite.internal.processors.metric.MetricRegistry@71cf1b07,
rcvdBytesCntMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@a9be6fa5,
sentBytesCntMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@489b09ce,
outboundMessagesQueueSizeMetric=org.apache.ignite.internal.processors.metric.impl.LongAdderMetric@69a257d1,
sslFilter=null, msgQueueLsnr=null, readerMoveCnt=0, writerMoveCnt=0,
readWriteSelectorsAssign=false], shmemSrv=null, usePairedConnections=false,
connectionsPerNode=1, tcpNoDelay=true, filterReachableAddresses=false,
ackSndThreshold=32, unackedMsgsBufSize=0, sockWriteTimeout=2000,
boundTcpPort=48722, boundTcpShmemPort=-1, selectorsCnt=8, selectorSpins=0,
addrRslvr=null,
ctxInitLatch=java.util.concurrent.CountDownLatch@181e731e[Count = 1],
stopping=false,
metricsLsnr=org.apache.ignite.spi.communication.tcp.TcpCommunicationMetricsListener@19648c40]
 at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:300)
 at
org.apache.ignite.internal.managers.communication.GridIoManager.start(GridIoManager.java:435)
 at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1960)
 ... 11 more
 Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to
register SPI MBean: null
 at
org.apache.ignite.spi.IgniteSpiAdapter.registerMBean(IgniteSpiAdapter.java:421)
 at
org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.spiStart(TcpCommunicationSpi.java:2397)
 at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
 ... 13 more
 Caused by: javax.management.MalformedObjectNameException: Invalid character
':' in value part of property
 at javax.management.ObjectName.construct(ObjectName.java:618)
 at javax.management.ObjectName.(ObjectName.java:1382)
 at
org.apache.ignite.internal.util.IgniteUtils.makeMBeanName(IgniteUtils.java:4719)
 at
org.apache.ignite.internal.util.IgniteUtils.registerMBean(IgniteUtils.java:4788)
 at

Re: Ignite node log file setup

2020-06-07 Thread kay
Hello, Thank you for reply.

I know that I can put the 'cache-node-01' into the filename.

But I wanna use only 1 log4j2.xml.

If I use  http://apache-ignite-users.70518.x6.nabble.com/


Ignite node log file setup

2020-06-05 Thread kay
Hello, I set up log4j2.xml and I found a create log file with sys:nodeId.

I configured grid name like 

cache-node-01, cache-node-02 using xml confiuration(property
name="igniteInstanceName" value="cache-node-01")

Is there any way to setup log file with grid name.

for example) ignite-cache-node-01.log

Thank you so much





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite SystemViews DataRegion

2020-06-04 Thread kay
Hello, I'd like to see Data Region list in my ignite server node.
I found CACHE, NODE_ATTRIBUTES but I didn't find about Data Region..
Is there any Table or View for Data Region information??

I'll waiting for reply.
Thank you.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite memory memory-architecture with cache partitioned mode

2020-06-03 Thread kay
Thank you so much!
It is very helpful!! :)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite memory memory-architecture with cache partitioned mode

2020-06-02 Thread kay
Hello, I read this page,

https://apacheignite.readme.io/docs/memory-architecture.

and I would like to know what is going to be happen if there are 3 remote
server nodes(A,B,C)
, and cache mode is partitioned and backups 1.

If I wanna get '1' cache data and my application is connected with node A
using thin client but '1' data is allocated in node B(primary), C(backup). 

In these case, I want to know Ignite operating principle for data get.

All node have a index page all data?? 
I want to know..

I look forward to reply.
Thank you so much.




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


ignite node heap size

2020-06-02 Thread kay
Hello, I have 4 nodes for server node and I'd like to allocate 4G each node.
but I don't know how to calculate heap size set for each node of percentage.

what percentage is proper for node (JVM -Xmx) if I use only off-heap cache.

Is there any best practice for heap size for node?? or reference link??


I'll wait for reply.
Thank you so much .




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


partition loss policy

2020-05-28 Thread kay
Hello, I got a question about partition loss policy for cache.

I'm not sure what is partition loss and why this policy need.

If there are 4 nodes and backups=1, 2 nodes are crashed and die.
Then, There are only 2 nodes. 
Maybe *some data *are lost<--( is this partition loss??.)  If there saved
crashed node. 

If some data are lost and I use java thin client to get data(lost one).
it will be null data return..

so I don't think there is no neccessary partition loss policy for my case..
is it right?? Am I understand exactly??



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: websession clustering with eviction mode

2020-05-28 Thread kay
Thank you for reply!

yes, I already set expire policy for web session cache.
but I wanna config session count limits.

Then, should I use on-heap cache??
I'm asking for sure..





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


websession clustering with eviction mode

2020-05-27 Thread kay
Hello, I read Websession clustering page here.

https://apacheignite-mix.readme.io/docs/web-session-clustering

and I found this cache config for Eviction Policy.




 



   


...



But I confusted because I understood cache Eviction policy for only on-heap
area.
Is it right? If I wanna config cache for session limit, I should use on-heap
area?

Thank you so much, I'll wait for reply.





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ClientCacheConfiguration with java thin client

2020-05-26 Thread kay
Thank you so much for reply.

I used xml config file for cache Expirypolicy at server node
like 












it is thick client define?
what is exactly think client mean?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


ClientCacheConfiguration with java thin client

2020-05-25 Thread kay
Hello, I got ClientCacheConfiguration in my application with java thin client
like

ClientCache cache = igniteClient.cache("CACHE_NAME");
ClientCacheConfiguration test = cache.getConfiguration();


There is ExpiryPolicy in 'CACHE_NAME'.
but I got null for test.getExpiryPolicy()

I found expiryPlc=null variable at ClientCacheConfiguration Object.
Is it bug?? or something that I have to add ??



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite SystemViews with java thin client

2020-05-25 Thread kay
Thank you so much, I'll see



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite SystemViews with java thin client

2020-05-25 Thread kay
Hello, I have 4 remote nodes and I use java thin client for put/get data.

I should get Node, Data Region, Cache information(Name, Size, Cache Mode
Data Eviction Mode and so on..)
 cause have to make Ignite admin pages.
I figured out JMX beans and System Views.
But I don't know how to use JmxSystemViewExporterSpi?? and New metrics
subsystem?? in my application.
Is there any way to get Node, Data Region Cache information by those things
with java thin client??
if it is, please share a url.

Thank you so much







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite Node Metrics using JMX

2020-05-20 Thread kay
Thankyou.
I found ClusterLocalNodeMetricsMXBeanImpl bean and attributes.
Is it node information? or os processor? 
ex. currentCpuLoad, CurrentGcCpuload, CurrentThreadCount??

and if i want to get onheap/offheap used size , 
ClusterLocalNodeMetricsMXBeanImpl - HeapMemoryUsed -> a
DataRegionMetrics - offHeapUsedSize -> b

b is offHeapMemoryUsed, onHeap memory used calculation is a-b is it correct?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite Node Metrics using JMX

2020-05-19 Thread kay
Hello, I have 4 remote node for server mode.

I'd like to monitoring that nodes using JMX.
I want to get CPU, THREAD, HEAP, OFFHEAP, GC and so on..

Can I get thoes things( CPU, THREAD, Heap, offheap, gc) each node??

I figured out there are MXBean(CacheMetrics, CacheGroup, DataRegion,
DataStorage)
but I don't know what attribute should I going to use like
(PhysicalMemorySize, TotalAllocatedSize)

Please help me..
Thank you  




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: IOException in log and reference for dataRegion configure

2020-05-14 Thread kay
Hello again :)

I read  memory configuration section.

https://apacheignite.readme.io/docs/memory-configuration

and I don't know exactly what 'setSystemRegionInitialSize',
'setSystemRegionMaxSize' do? 
is it limit the global data storage of node? 
I didn't configure those things and configured only dataRegionSize. 
but it is working well.

some one tell me about 'setSystemRegionInitialSize',
'setSystemRegionMaxSize' infomation more

Thank you

 




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: IOException in log and reference for dataRegion configure

2020-05-13 Thread kay
Thank you for reply.
I'll see that informations!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: ignite node ports

2020-05-13 Thread kay
oh.. I see thank you so much

For REST port(8080) is open, you said i have to enable it.
but i didn't understand exactly. how can i enable it? 
you mean server machine(disk) port enable to use?

If i some application already use port(8080) so i set change port number
using IGNITE_JETTY_PORT property, is it going to be not fails to start??



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


ignite node ports

2020-05-12 Thread kay
Hello, I started ignite node and checked log file.

I found TCP ports in logs

>>> Local ports : TCP:8080 TCP:11213 TCP:47102 TCP:49100 TCP:49200

I set 49100, 49200 port at configuration file for ignite node and client
connector port.
but I don't know the others port exactly.

I found a summary at log.

[Node 1]
TCP binary : 8080
Jetty REST  : 11213
Communication spi : 47102

[Node 2]
TCP binary : 8081
Jetty REST  : 11214
Communication spi : 47103

Could you guys tell me where each port is used??

Is it necessary ports? 
Do I need 5 ports each time add a new node all of different port?
if it is true, how can i set TCP binary port(8080) & Jetty REST(11213) at
configuration file ??






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


IOException in log and reference for dataRegion configure

2020-05-12 Thread kay
Hello, I have 2 kind of questions.

[1] Is there a reference for set Data Region & Cache configuration??
  I don't know exactly how to configure data so, I looking for
reference or best practice of cache region set up.
Is it normal case divide data region by domain/business purpose area??


[2] I have 3 nodes at remote server and I use java thin client in
application.
I found these error in log file.
how can i fix it? or is it not problem? 

[2020-05-13T10:03:24,034][ERROR][grid-nio-worker-client-listener-3-#53][ClientListenerProcessor]
Failed to process selector key [ses=GridSelectorNioSessionImpl
[worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0
lim=8192 cap=8192], super=AbstractNioClientWorker [idx=3, bytesRcvd=0,
bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker
[name=grid-nio-worker-client-listener-3, igniteInstanceName=null,
finished=false, heartbeatTs=1589331801209, hashCode=1310344598,
interrupted=false, runner=grid-nio-worker-client-listener-3-#53]]],
writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null,
closeSocket=true, outboundMessagesQueueSizeMetric=null,
super=GridNioSessionImpl [locAddr=/41.2.127.801:12807,
rmtAddr=/42.1.12.100:90801, createTime=1589329323382, closeTime=0,
bytesSent=22, bytesRcvd=12, bytesSent0=0, bytesRcvd0=0,
sndSchedTime=1589329323392, lastSndTime=1589329323392,
lastRcvTime=1589329323392, readsPaused=false,
filterChain=FilterChain[filters=[GridNioAsyncNotifyFilter,
GridNioCodecFilter [parser=ClientListenerBufferedParser, directMode=false]],
accepted=true, markedForClose=false]]]
 java.io.IOException: 연결 시간 초과 (like Timeout)
 at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:1.8.0_131]
  at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
~[?:1.8.0_131]
  at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_131]
  at sun.nio.ch.IOUtil.read(IOUtil.java:197) ~[?:1.8.0_131]
  at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
~[?:1.8.0_131]
  at
org.apache.ignite.internal.util.nio.GridNioServer$ByteBufferNioClientWorker.processRead(GridNioServer.java:1162)
~[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2449)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2216)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1857)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
[ignite-core-2.8.0.jar:2.8.0]
  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
  
  
[2020-05-13T10:04:57,566][ERROR][grid-nio-worker-client-listener-2-#52][ClientListenerProcessor]
Failed to process selector key [ses=GridSelectorNioSessionImpl
[worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0
lim=8192 cap=8192], super=AbstractNioClientWorker [idx=2, bytesRcvd=0,
bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker
[name=grid-nio-worker-client-listener-2, igniteInstanceName=null,
finished=false, heartbeatTs=1589331895354, hashCode=1761702860,
interrupted=false, runner=grid-nio-worker-client-listener-2-#52]]],
writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null,
closeSocket=true, outboundMessagesQueueSizeMetric=null,
super=GridNioSessionImpl locAddr=/41.2.127.801:12807,
rmtAddr=/42.1.12.100:90801, createTime=1589331817280, closeTime=0,
bytesSent=22, bytesRcvd=12, bytesSent0=0, bytesRcvd0=0,
sndSchedTime=1589331817300, lastSndTime=1589331817300,
lastRcvTime=1589331817290, readsPaused=false,
filterChain=FilterChain[filters=[GridNioAsyncNotifyFilter,
GridNioCodecFilter [parser=ClientListenerBufferedParser, directMode=false]],
accepted=true, markedForClose=false]]]


 java.io.IOException: 연결이 상대편에 의해 끊어짐(
 at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:1.8.0_131]
  at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
~[?:1.8.0_131]
  at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_131]
  at sun.nio.ch.IOUtil.read(IOUtil.java:197) ~[?:1.8.0_131]
  at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
~[?:1.8.0_131]
  at
org.apache.ignite.internal.util.nio.GridNioServer$ByteBufferNioClientWorker.processRead(GridNioServer.java:1162)
~[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2449)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2216)
[ignite-core-2.8.0.jar:2.8.0]
  at
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1857)
[ignite-core-2.8.0.jar:2.8.0]
  at

Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-05-12 Thread kay
Thank you so much!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-05-06 Thread kay
Hello, Thank you so much!.

I have 1 more question.

I use IgniteClient API in my application.(singleton)
when i start my application I regist IgniteClient bean using SpringFramework
and declare ClientConfiguration  address like  

ClientConfiguration cfg = new
ClientConfiguration().setAddresses("34.1.21.122:12800",
"34.1.21.122:12800");

 Is there any way to add new ClientConfiguration address without my
application restart??
I'm considering using L4 between my application and ignite server node.. but
also L4 should be restart.

Is it possible to auto scale out java client thin level??






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-05-05 Thread kay
Hello, I'm waiting for reply :)

I use java thin clien.

1. Can I use java thin client with 'Affinity Collocation'?
2. Is there any information about 'partition awareness' ? like, example
link.
3. Ignite thin client on startup select's random server to connect available
address.
This selection(connect to server node) is not going to be change before
server node is shut down?? or my application restart?
I mean if I have only one Ignite thin client Object( like singleton ) in my
application.
Is it only use one server node?


Thank you so much



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-04-27 Thread kay
Hi, Could you share about "partition awareness" detail information? 
like, example link.

And  you said Ignite thin client on startup select's random server to
connect available address.
This selection(connect to server node) is not going to be change before
server node is shut down?? or my application restart? 

I mean if I have only one Ignite thin client Object( like singleton ) in my
application. 
Is it only use one server node?

I use java thin client now 



Thank you



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: TcpDiscoverySharedFsIpFinder with different machine..

2020-04-27 Thread kay
yes, i mean same disk.

oh.. I see. Thank you so much for help



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: TcpDiscoverySharedFsIpFinder with different machine..

2020-04-27 Thread kay
yes, I  wrote a path and it worked at same machine(it means same IP).
My question is how can i set *different machine*(different IP,).

For example)
I have 4 node 

--> machine 1 IP list
41.1.122.122:12200-> a
41.1.122.122:12202-> b


- machine 2 IP list
41.1.122.123:12200-> c
41.1.122.123:12202-> d


(a,b) cluster is working 
(c,d) cluster is also working.

i want to cluster all 4 nodes(a,b,c,d) and is there any way to use
TcpDiscoverySharedFsIpFinder configuration? 








--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


TcpDiscoverySharedFsIpFinder with different machine..

2020-04-27 Thread kay
Hello,

 I'd like to start 4 node at each different machine.
Is is possible for use TcpDiscoverySharedFsIpFinder for node clustering??

I figured out it was working with in same machine.
but I'm wondering about different machine 'TcpDiscoverySharedFsIpFinder' .

if it is possible how can i set the path?? or is it not possible?? 
Please help me.
Thank you



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


ignite webSession clustering about session timeout

2020-04-13 Thread kay
Hello,  I'd like to use ignite websession cluster ..
but, I'm wondering about ignite session timeout algorithm.
I figured out every websession data make with expiry policy in source code.
Is it only dependency of ignite cache expiry policy??

What happen if I made a class implements HttpSessionListener interface?
Is it going to be method working sessionDestroyed, sessionCreated??
Please help me..

Thank you.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Unable to perform handshake within timeout..

2020-04-06 Thread kay
I have two nodes at remote server..
I found a log  

[WARN] [grid-timeout-worker-#39][ClientListenerNioListener] Unable to
perform handshake within timeout

Why this logs appear??
and How can i fix it??



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-04-06 Thread kay
Ah.. Thank you so much!!
I will not use Apache for loadbalancer..



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: remote ignite server and L4(for loadbalacing) with java thin client

2020-04-05 Thread kay
Hi,

I'm using Apache Webserver for loadbalancer.

I got this access log at binding port.




- myIp(xx.xx.xx.xxx) [06/Apr/2020:09:00:50 +0900] 13000 "-" 408 - 12 0 - -




I think it was a timeout.

Here is my httpd.conf set.





 BalancerMember "http://IP:PORT; loadfactor=1 hcpasses=3  hcfails=3 
hcmethod=GET  hcinterval=5
 BalancerMember "http://IP:PORT; loadfactor=1 hcpasses=3  hcfails=3 
hcmethod=GET  hcinterval=5 
 ProxySet  lbmethod=byrequests
 


 ProxyRequestsOff
ProxyPreserveHost   On

  ProxyPass   "/"  "balancer://cache-cluster/"
 ProxyPassReverse"/"  "balancer://cache-cluster/"
 







and this is a stacktrace for connection 

Exception in thread "main"
org.apache.ignite.client.ClientConnectionException: Ignite cluster is
unavailable [sock=Socket[addr=intdev01/IP,port=13000,localport=50216]]
  at
org.apache.ignite.internal.client.thin.TcpClientChannel.handleIOError(TcpClientChannel.java:499)
  at
org.apache.ignite.internal.client.thin.TcpClientChannel.handleIOError(TcpClientChannel.java:491)
  at
org.apache.ignite.internal.client.thin.TcpClientChannel.access$100(TcpClientChannel.java:92)
  at
org.apache.ignite.internal.client.thin.TcpClientChannel$ByteCountingDataInput.read(TcpClientChannel.java:542)
  at
org.apache.ignite.internal.client.thin.TcpClientChannel$ByteCountingDataInput.readInt(TcpClientChannel.java:572)
  at
org.apache.ignite.internal.client.thin.TcpClientChannel.handshakeRes(TcpClientChannel.java:428)
  at
org.apache.ignite.internal.client.thin.TcpClientChannel.handshake(TcpClientChannel.java:401)
  at
org.apache.ignite.internal.client.thin.TcpClientChannel.(TcpClientChannel.java:153)
  at
org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.getOrCreateChannel(ReliableChannel.java:450)
  at
org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.getOrCreateChannel(ReliableChannel.java:439)
  at
org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.access$100(ReliableChannel.java:395)
  at
org.apache.ignite.internal.client.thin.ReliableChannel.(ReliableChannel.java:120)
  at
org.apache.ignite.internal.client.thin.TcpIgniteClient.(TcpIgniteClient.java:99)
  at
org.apache.ignite.internal.client.thin.TcpIgniteClient.(TcpIgniteClient.java:81)
  at
org.apache.ignite.internal.client.thin.TcpIgniteClient.start(TcpIgniteClient.java:208)
  at org.apache.ignite.Ignition.startClient(Ignition.java:581)
 at sfmi.framework.nexus.app.Application.main(Application.java:51)







Is is right to use loadbalancer to access Ignite server??




Thank you




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


remote ignite server and L4(for loadbalacing) with java thin client

2020-04-03 Thread kay
Hello, 
I have two nodes in each remote server and using java thin client for
put/get/remove caching at my application.
I'd like to put L4 or webserver between application server and Ignite Server
for loadbalancing.

there are informations of ports for my description and if IP is all same.

1) node1 
  - client connect port 12000
  - server port 12001

2) node2
  - client connect port 12002
  - server port 12003

3) L4(Webserver)
  - port number : 13000

I used before in my source
ClientConfiguration cfg = new ClientConfiguration().setAddresses(IP:12000,
IP:12002);

I already chage like this 

ClientConfiguration cfg = new ClientConfiguration().setAddresses(IP:13000);

but it was got a ClientConnectionException: Ignite cluster is unavailable
[sock=Socket[addr[. and so on...

is it possible to use like this?? or Is there another way??? 

Thank you








  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite Web Session Clustering with standalone node

2020-04-03 Thread kay
Thank you so much



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite Web Session Clustering with standalone node

2020-04-01 Thread kay
I'd like use web session clustering in my application.

I checked a page
https://apacheignite-mix.readme.io/docs/web-session-clustering and There is
no way to set standalone ignite nodes.. only like this ...



   IgniteConfigurationFilePath
   config/default-config.xml 

how to set server ip:port at web.xml file?? or is there another way to
connect to ignite server??

Thank you



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/