Re: Is there any way to get cache and node status programatically?

2021-04-19 Thread Ilya Kazakov
There is no explicit read-only state on cache level. But cache can be in a read-only state according to Partition Loss Policy [1]. I mean if there are loss partitions and READ_ONLY SAFE policy is set in this case the cache could be in read-only mode. To check are there loss parts: !cache.lostParti

Re: Is there any way to get cache and node status programatically?

2021-04-16 Thread facundo.maldonado
Fair enough, with cluster().nodes() I get the online nodes and matching them with cluster().currentBaselineTopology() should give me those that are offline (from baseline). ignite.cluster().state() gives us the state of the cluster. The cluster could be ACTIVE but the cache is in ReadOnlyState. T

Re: Is there any way to get cache and node status programatically?

2021-04-16 Thread Ilya Kazakov
Hello. You can get all nodes online nodes: ignite.cluster().nodes() To check cluster state you can use this code: ignite.cluster().state() -- Ilya пт, 16 апр. 2021 г. в 01:39, facundo.maldonado : > Is there any API or recommended way to get if a node is Online or Offline > program

Is there any way to get cache and node status programatically?

2021-04-15 Thread facundo.maldonado
Is there any API or recommended way to get if a node is Online or Offline programmatically the same way control script does? Also, once a cache is moved to read-only state, I can't find a way to get that status? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/