Re: How to get the load status of the Ignite cluster

2016-10-13 Thread Vladislav Pyatkov
Hi,

You can look at the code[1] and get computation of all metrics.
The task use public API, but in particular information about thread pools
available through MBeans

*org.apache:clsLdr=764c12b6,group=Thread Pools,name=GridExecutionExecutor*

[1]: https://github.com/apache/ignite/blob/master/modules/
core/src/main/java/org/apache/ignite/internal/IgniteKernal.java#L1005

On Thu, Oct 13, 2016 at 4:24 AM, ght230  wrote:

> From the work log, I can see the Metrics for local node, such as
> "^-- Public thread pool [active=0, idle=512, qSize=0]"
>
> I want to know which API of metrics can I use to get the value of "active",
> "idle" and "qsize".
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/How-to-get-the-load-status-of-the-
> Ignite-cluster-tp8232p8259.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov


Re: How to get the load status of the Ignite cluster

2016-10-12 Thread ght230
>From the work log, I can see the Metrics for local node, such as
"^-- Public thread pool [active=0, idle=512, qSize=0]"

I want to know which API of metrics can I use to get the value of "active",
"idle" and "qsize".



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/How-to-get-the-load-status-of-the-Ignite-cluster-tp8232p8259.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: How to get the load status of the Ignite cluster

2016-10-12 Thread vdpyatkov
Hi,

It is duplicate.
I am given answer in the thread[1].

[1]:
http://apache-ignite-users.70518.x6.nabble.com/How-to-get-the-load-status-of-the-Ignite-cluster-tc8232.html



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/How-to-get-the-load-status-of-the-Ignite-cluster-tp8231p8234.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: How to get the load status of the Ignite cluster

2016-10-12 Thread Vladislav Pyatkov
Hi,

You can use NodeMetric for estimate loading on machine:
o.a.i.cluster.ClusterNode#metrics
See the example[1] in sample project of Ignite or documentation[2].

Additional
You can try to justify loading by configuration tuning:
- Set the property quite small
o.a.i.configuration.CacheConfiguration#setMaxConcurrentAsyncOperations (500
by default)
- Decrease number of threads on public thread pool[3]

[1]:
examples\src\main\java\org\apache\ignite\examples\computegrid\cluster\ClusterGroupExample.java
[2]: http://apacheignite.gridgain.org/docs/cluster#cluster-node-metrics
[3]:
http://apacheignite.gridgain.org/v1.7/docs/performance-tips#configure-thread-pools

On Wed, Oct 12, 2016 at 2:57 PM, ght230  wrote:

> I am running Ignite under below enviroment:
> Message Queue--->Ignite Cache--->Continuous Queries(trigger IgniteCompute).
>
> However, in some cases, the speed of message received from MQ too fast,
> resulting in too much burden on the computing grid, it will affect the
> stability of the cluster.
>
> I want to limit the speed of message reception according to the load status
> of the compute grid.
> How can I get the load status of the Ignite cluster?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/How-to-get-the-load-status-of-the-
> Ignite-cluster-tp8232.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov