Re: Data region's pages fill factor

2017-11-05 Thread Ilya Lantukh
Hi Andrey,

Looks like the tooltip is wrong and should be fixed.
Your interpretation of FreeListImpl.fillFactor() is correct - the former
value is used space, the latter one is total allocated. So, your pages are
99% full.

On Sun, Nov 5, 2017 at 4:08 AM, Andrey Kornev 
wrote:

> Oops! Hit "Send" a bit too soon.
>
> On the other hand, FreeListImpl.fillFactor() (used by the MBean under the
> hood to compute the PageFillFactor value) returns a tuple where loadSize
> == 409825856 and totalSize == 413892608. If my interpretation of these
> values is correct, shouldn't PageFillFactor be described as "the percentage
> of used space", or in other words, how full the pages are?
>
> Or, is it something else?
>
> Thanks
> Andrey
> --
> *From:* Andrey Kornev 
> *Sent:* Saturday, November 4, 2017 5:55 PM
> *To:* user@ignite.apache.org
> *Subject:* Data region's pages fill factor
>
> Hello,
>
> I'm a bit confused about the meaning of PagesFillFactor MBean attribute.
> According to the documentation (as well as a tooltip in the JMX MBean
> Browser -- here's a snapshot https://snag.gy/57FVw8.jpg), the attribute
> indicates "the percentage of space that is still free and can be filled
> in". I'm consistently getting  0.99... Does it mean that my pages are 99%
> empty?
>
>
>


-- 
Best regards,
Ilya


Re: getAverageGetTime/getAveragePutTime APIs of CacheMetrics always return 0

2017-11-05 Thread Biren
Thank you Pavel!!. I have not enabled statistics. Do you know what would be
performance impact on enabling it?

-Biren



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


RE: Node failed to startup due to deadlock

2017-11-05 Thread naresh.goty
Hi Alexey,

We are still seeing the deadlocks for the scenario i have specified earlier.
We tried the below two changes, but still seeing the deadlocks. Can you
please provide some pointers about the issue based on the logs and
threaddumps attached.

1) As Rajeev mentioned, we tried offloading event handling to application
threads.
2) Applied the patch fix
(https://issues.apache.org/jira/browse/IGNITE-6380#), but still the same
issue.


Node1.log
  
Node2.log
  

Node1_AfterNode2_Turndown.tdump

  

Node1_AfterNode2_StartedAgain.tdump

  

Node2_AfteStartedAgain.tdump

  


Regards,
Naresh





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


Re: Ignite with Spark on Yarn

2017-11-05 Thread roshan joe
I still couldn't get it working on Yarn with spark-submit. Looking at the
logs, the initial reading of default-config.xml succeeds and the ignite
node is started OK, but is failing when it starts the Task. Please see
below.

NB: I tried spark-submit from Spark Master node as well as the Spark client
nodes but seeing the same error in both the cases.  Is there a way to get
this working on yarn with spark-submit?


17/11/06 06:06:26 main INFO XmlBeanDefinitionReader: Loading XML bean
definitions from URL
[file:/home/ec2-user/apache-ignite-fabric-2.1.0-bin/config/default-config.xml]

17/11/06 06:06:26 main INFO GenericApplicationContext: Refreshing
org.springframework.context.support.GenericApplicationContext@77b27b57:
startup date [Mon Nov 06 06:06:26 UTC 2017]; root of context hierarchy

[06:06:26]__  

[06:06:26]   /  _/ ___/ |/ /  _/_  __/ __/

[06:06:26]  _/ // (7 7// /  / / / _/

[06:06:26] /___/\___/_/|_/___/ /_/ /___/

[06:06:26]

[06:06:26] ver. 2.1.0#20170720-sha1:a6ca5c8a

[06:06:26] 2017 Copyright(C) Apache Software Foundation

[06:06:26]

[06:06:26] Ignite documentation: http://ignite.apache.org

[06:06:26]

[06:06:26] Quiet mode.

[06:06:26]   ^-- Logging to file '/home/ec2-user/
apache-ignite-fabric-2.1.0-bin/work/log/ignite-bd37708a.0.log'

[06:06:26]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}

[06:06:26]

[06:06:26] OS: Linux 4.9.43-17.38.amzn1.x86_64 amd64

[06:06:26] VM information: Java(TM) SE Runtime Environment 1.8.0_60-b27
Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.60-b23

[06:06:27] Configured plugins:

[06:06:27]   ^-- None

[06:06:27]

[06:06:27] Message queue limit is set to 0 which may lead to potential
OOMEs when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due
to message queues growth on sender and receiver sides.

[06:06:27] Security status [authentication=off, tls/ssl=off]

[06:06:27] REST protocols do not start on client node. To start the
protocols on client node set '-DIGNITE_REST_START_ON_CLIENT=true' system
property.

[06:06:28] Performance suggestions for grid  (fix if possible)

[06:06:28] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true

[06:06:28]   ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM
options)

[06:06:28]   ^-- Set max direct memory size if getting 'OOME: Direct buffer
memory' (add '-XX:MaxDirectMemorySize=[g|G|m|M|k|K]' to JVM options)

[06:06:28]   ^-- Disable processing of calls to System.gc() (add
'-XX:+DisableExplicitGC' to JVM options)

[06:06:28] Refer to this page for more performance suggestions:
https://apacheignite.readme.io/docs/jvm-and-system-tuning

[06:06:28]

[06:06:28] To start Console Management & Monitoring run
ignitevisorcmd.{sh|bat}

[06:06:28]

*[06:06:28] Ignite node started OK (id=bd37708a)*

*[06:06:28] Topology snapshot [ver=112, servers=4, clients=2, CPUs=40,
heap=13.0GB]*

*17/11/06 06:06:29 dispatcher-event-loop-4 INFO TaskSetManager: Starting
task 1.0 in stage 0.0 (TID 1, ip-รง-162.us-west-2.compute.internal, executor
1, partition 1, PROCESS_LOCAL, 6495 bytes)*

*17/11/06 06:06:29 task-result-getter-0 WARN TaskSetManager: Lost task 0.0
in stage 0.0 (TID 0, ip-10-xx-xx-162.us-west-2.compute.internal, executor
1): class org.apache.ignite.IgniteCheckedException: Failed to instantiate
Spring XML application context
[springUrl=file:/home/ec2-user/apache-ignite-fabric-2.1.0-bin/config/default-config.xml,
err=IOException parsing XML document from URL
[file:/home/ec2-user/apache-ignite-fabric-2.1.0-bin/config/default-config.xml];
nested exception is java.io.FileNotFoundException:
/home/ec2-user/apache-ignite-fabric-2.1.0-bin/config/default-config.xml
(Permission denied)]*





On Fri, Nov 3, 2017 at 5:21 PM, roshan joe  wrote:

> Thanks Alexey. I believe I have tried all the 4 methods you suggested
> below without any success.
>
> 1. Specified the absolute path of the default-config.xml using the
> file:/// as well as hdfs:///
>
> 2. passed the config file as file parameter to spark-submit as
> --files=file:///...//apache-ignite-fabric-2.1.0-
> bin/config/default-config.xml
>
> 3. exported IGNITE_HOME=///apache-ignite-fabric-2.1.0-bin/ in all
> the spark nodes and passed "config/default-config.xml" as relative path
>
> 4. created the config file under "src/resources/" but no luck.
>
> Please see the complete logs.
>
> Also, I have the default-config.xml file at the default location on all
> spark nodes. Do I need to pass it in the code then? If I do not pass it, ""it
> cannot find any IPs from multicast or IPFinder. "
>
>
> Thank you.
>
>
>
> On Fri, Nov 3, 2017 at 6:52 AM, Alexey Kukushkin <
> kukushkinale...@gmail.com> wrote:
>
>> Hi,
>>
>> The problem is Ignite cannot find your configuration file.
>>
>> Ignite tries these 3 steps to find configuration file:
>>
>>1. Try to resolve it as a URI
>>2. If previous step fails, try to resolve it as $IGNITE_HOME + >path you specified>
>>

Re: Ignite 2.3.0 hangs in startup

2017-11-05 Thread ezhuravlev
Hi,

As I see in this error message:

 Failed to resolve default logging config file:
config/java.util.logging.properties Console logging handler is not
configured. 

You don't have java.util.logging.properties config file for SLF4j. I've
checked 2.3.0 binaries and this file exists in folder config. You need to
add it to your project.

Also, please check the documentation for configuring SLF4j logger, maybe you
missed something: 

https://apacheignite.readme.io/docs/logging#section-slf4j

Evgenii



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