Re: Looking for information on these methods

2018-08-31 Thread luqmanahmad
wt, you are talking about over here writing the whole security plugin. Looks like the community also need a plugin for security as well. Now it really depends how you want to authenticate the user when a specific operation is performed on a specific cache. I have already started to write the se

Re: Load balancing ignite get requests

2018-08-31 Thread Anirudha Jadhav
Thanks, Dmitry, we seem to have maxed out the performance we can get out of a single ignite node on a DL380 / whats the best option to scale out and make all replicas also serve data over get requests? -Ani On Fri, Aug 31, 2018 at 12:34 PM dkarachentsev wrote: > Hi, > > get() operation from cl

Re: Grid state check before it's completely caught up

2018-08-31 Thread Anirudha Jadhav
thanks! On Fri, Aug 31, 2018 at 12:28 PM dkarachentsev wrote: > Hi, > > You can, for example, set SYNC rebalance mode for your replicated cache > [1]. > In that case all cache operations will be blocked unless rebalance is > finished, and when it's done you'll get a fully replicated cache. > But

Re: Key fields are not part of the value object

2018-08-31 Thread vkulichenko
You're confusing object schema and SQL schema. By adding those field via binary object builder, you amended the former, but not the latter. SQL schema stayed the same, with (a,b) being key fields not presented in value. I would not recommend to do this, as you can end up having weird issues (for ex

Re: How close client connection to server

2018-08-31 Thread F.D.
Hi, yes I tried and I got the same error. On Thu, Aug 30, 2018 at 6:33 PM Ilya Kasnacheev wrote: > Hello! > > Have you tried Ignition::StopAll(false); ? > > Regards, > -- > Ilya Kasnacheev > > > чт, 30 авг. 2018 г. в 13:04, F.D. : > >> Hi Igniters, >> >> when in my c++ client I close the connec

Re: Connection between servers.

2018-08-31 Thread F.D.
Perfect! Thank you F.D. On Fri, Aug 31, 2018 at 12:19 PM dkarachentsev wrote: > Hi, > > Usually it's enough to open ports for communication and discovery, thair > default values: 47500 and 47100. > If you run more than one node per pachine, you'll need to open a port > range: > 47500..47509 and

Re: Key fields are not part of the value object

2018-08-31 Thread DanieleBosetti
Hi, thanks for replying- Actually, even though we can use the SQL facilities to inspect the caches, the intended usage is to have Java clients, and possibly using the jcache api to access the data; so I really need to use cache.get(key). I looked further into this; for this very same cache, if da

Re: Key fields are not part of the value object

2018-08-31 Thread vkulichenko
Why not use SQL API and execute a 'select *', since that's what you're actually looking for? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Key fields are not part of the value object

2018-08-31 Thread DanieleBosetti
Hi, I declared a test table with four fields, two of these are key fields. When querying the cache using the Java api, the "value" BinaryObject does not contain the key values, whereas using SQL all fields are shown. That is, after running: create table test (a int, b int, c int, d int, primary k

Re: What happens during network failure?

2018-08-31 Thread luqmanahmad
-- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Unable to create an index

2018-08-31 Thread Ilya Kasnacheev
Hello! What Ignite version do you use? Do you observe this problem every time (testing, cluster restarts)? Regards, -- Ilya Kasnacheev вт, 28 авг. 2018 г. в 23:44, bobjoe : > Index query: > > CREATE INDEX IF NOT EXISTS DA_Something_Idx > on > > DeviceAvailability(somethingUuid,blahId,blah2Id,

Re: ICacheEntryProcessor throws BinaryObjectException when WRITE_SYNCHRONIZATION_MODE=FULL_ASYNC

2018-08-31 Thread Ilya Kasnacheev
Hello! Can you please share a full reproducer project (using Github for example)? This way people who don't have strong .Net skills can still participate in solution. Regards, -- Ilya Kasnacheev вт, 28 авг. 2018 г. в 21:50, crenique : > Hi, We are testing WRITE_SYNCHRONIZATION_MODE=FULL_ASYNC

Re: ignite cluster management

2018-08-31 Thread Ilya Kasnacheev
Hello! 1. Note that you will have problem writing to caches when topology changes. Why not just query ignite.cluster(), expose node traits as node.attributes()? 2. Having 100 servers should not be a problem. It is recommended to have long-lived clients in this case, as opposed to creating and tak

Re: ignte cluster hang with GridCachePartitionExchangeManager

2018-08-31 Thread Ilya Kasnacheev
Hello! I'm fairly confident that you should not attempt to do any cache operations from discovery threads, e.g. from event listeners. When topology changes you can't expect any cache operations to be performed before partition map exchange is done. Regards, -- Ilya Kasnacheev ср, 29 авг. 2018

Re: What happens during network failure?

2018-08-31 Thread Lokesh Sharma
Luqman, I understand what you mean now. I need to use a SegmentationResolver which is implemented in your plugin which will generate EVT_NODE_SEGMENTED and in turn restart the nodes which are in invalid segments. Many thanks for writing the plugin :D On Fri, Aug 31, 2018 at 6:17 PM Lokesh Sharma

Re: TcpDiscoverySpi.setAuthenticator

2018-08-31 Thread Ilya Kasnacheev
Hello! I don't see why you won't be able the aforementioned in Spring XML configuration. Please refer to Spring documentation. Regards, -- Ilya Kasnacheev чт, 30 авг. 2018 г. в 10:35, wt : > I am using a config file and not setting config in code. How can i register > setDiscoverySpi with my

Re: ClassNotFoundException when remotely calling cache.withKeepBinary().get(key)

2018-08-31 Thread Ilya Kasnacheev
Hello! I can see that you are using external Cache object inside your call() method, which may not handle this flag correctly. You should get local injected Ignite, and get cache from it. My take: public static class TestPeerClassLoading implements IgniteCallable> { @IgniteInstanceResource

Re: Ignite Service Grid

2018-08-31 Thread luqmanahmad
James, this can be resolved by either putting all the classes which are required by your Service in the lib folder of ignite or enable peer class loading. See [1] for peer class loading [1] peer-class-loading -- Sent fr

Re: how to convert org.apache.ignite.lang.IgniteBiTuple to IgniteConfiguration

2018-08-31 Thread Ilya Kasnacheev
Hello! for (IgniteConfiguration cfg : IgnitionEx.loadConfigurations("server.xml").get1()) { // your code here } Regards, -- Ilya Kasnacheev чт, 30 авг. 2018 г. в 12:45, wt : > need to be able to read in the config file and then apply an authenticator > to > it before starting ignite. I h

Re: Ignite Service Grid

2018-08-31 Thread Ilya Kasnacheev
Hello! > Caused by: java.lang.ClassNotFoundException: com.domain.ignite.NodeFilter What's up with this class? Is it available on service node? On other nodes? Is version the same? Regards, -- Ilya Kasnacheev чт, 30 авг. 2018 г. в 21:18, James Dodson : > If it helps, here are parts of the st

Re: ignite.compute(grp).affinityRun()...

2018-08-31 Thread Ilya Kasnacheev
Hello! I recommend moving this discussion to developer list. Still, > I would like ignite.compute(grp).affinityRunAsync() on a cache created with readFromBackup to pay attention to the constraint that I placed. affinityRun is often used to write to cache as well! I think this is too narrow as a

Re: Load balancing ignite get requests

2018-08-31 Thread luqmanahmad
Anirudha, also see [1] for built-in load balancing which could be useful [1] AdaptiveLoadProbe -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: How to set node Id?

2018-08-31 Thread eugene miretsky
Thanks Denis, The version is 2.5 and we are indeed using persistence. Full config attached. Another weird thing that happened is that after restarting the node a few time it starts properly and joins the cluster. However, when I try to create a SQL table (from spark) using template "ga_template"

Re: What happens during network failure?

2018-08-31 Thread Lokesh Sharma
Luqman, if I subscribe to EVT_NODE_FAILED, how do I figure out which node to restart? For example in case of 2 nodes separating from each other, both would receive that event. On Thu, Aug 30, 2018 at 4:30 AM luqmanahmad wrote: > Lokesh, looking at the javadocs of [1] you can subscribe for > EVT_

Re: What is the precise definition of classes eligible for P2P-classloading?

2018-08-31 Thread DanieleBosetti
Hi Dmirty, thanks for replying. I just realized that the p2p-classloading will behave differently, if I create a remote filter using these two alternatives: qry.setRemoteFilterFactory( new MyRemoteFilterFactory() ); qry.setRemoteFilterFactory(FactoryBuilder.factoryOf( MyEntryEventFilte

Re: How check if the grid is stopped

2018-08-31 Thread Paolo Di Tommaso
Thanks for clarifying that. Cheers, Paolo On Wed, Aug 29, 2018 at 9:12 PM Alex Plehanov wrote: > Method ignite.cluster().active() shows whether or not a cluster was > activated. > To check started/stopped state you can use method > Ignition.state(igniteInstanceName). > > ср, 29 авг. 2018 г. в

RE: Example for server client configuration in ignite

2018-08-31 Thread Sriveena Mattaparthi
Hi Evgenii, In the document mentioned on Result Set Lazy Load, if result set is too big to fit in the available memory, then it can lead to prolonged GC pauses and even OutOfMemoryError. 1. Is it referring to the on heap memory of the client application or the off heap memory? 2.

Looking for information on these methods

2018-08-31 Thread wt
okay i have a white list plugin class that is now working - ThankYou Ilya (GridGain) I can now control nodes joining the cluster be it clients or servers. My next task is to manage user requests to specific caches and what they can do on those. I already have the GridSecurityProcessor class as

Re: Load balancing ignite get requests

2018-08-31 Thread dkarachentsev
Hi, get() operation from client always go to the primary node. If you run compute task on other nodes, where each will do get() request for that key, it will read local value. REPLICATED has many other optimizations, for example for SQL queries. Thanks! -Dmitry -- Sent from: http://apache-igni

Re: Grid state check before it's completely caught up

2018-08-31 Thread dkarachentsev
Hi, You can, for example, set SYNC rebalance mode for your replicated cache [1]. In that case all cache operations will be blocked unless rebalance is finished, and when it's done you'll get a fully replicated cache. But this will block cache on each topology change. [1] https://ignite.apache.or

Re: Connection between servers.

2018-08-31 Thread dkarachentsev
Hi, Usually it's enough to open ports for communication and discovery, thair default values: 47500 and 47100. If you run more than one node per pachine, you'll need to open a port range: 47500..47509 and 47100...47109. You always can configure other values [1, 2] [1] https://ignite.apache.org/re

Re: What is the precise definition of classes eligible for P2P-classloading?

2018-08-31 Thread dkarachentsev
Hi, There are no such limitations on peer class loading, but it was designed and works for compute jobs, remote filters or queries only. All unknown classes from tasks or queries will be deployed in cluster with dependencies according to deployment mode [1]. Actually with job Ignite sends deployme

Re: Simulate Read Only Caches

2018-08-31 Thread steve.hostettler
Precisely my intention :) Will switch to the developer list to ask for some guidance. Thanks -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

What is the precise definition of classes eligible for P2P-classloading?

2018-08-31 Thread DanieleBosetti
Hi, I have enabled p2p classloading, and this works well when submitting compute code, eg. IgniteCallable-s. On the other hand, it seems that p2p-classloading does NOT import data classes, is that right? (So, I think I will put data classes on the servers.) Regarding classes that are indeed p2p-c

Looking for information on these methods

2018-08-31 Thread wt
okay i have a white list plugin class that is now working - ThankYou Ilya (GridGain) I can now control nodes joining the cluster be it clients or servers. My next task is to manage user requests to specific caches and what they can do on those. I already have the GridSecurityProcessor class as par

Re: ignite.net config (applying spring and .net config)

2018-08-31 Thread wt
Its working - Thanks a million Ilya Regards Wayne -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/