Hello, My CacheKey it is instance of key (from myCache) in with will calculate partition number where service will be deploy. In other word the service will deploy in a node where the key (matching by equal method) stored.
It does not mean what need to deploy one instance of the service for each entry. On Sun, Jul 24, 2016 at 9:12 PM, M Singh <[email protected]> wrote: > Hi: > > A newbie question - I am reading the documentation it indicates that > > <quote> > You can deploy one instance of this service on the primary node for a > given affinity key. > > IgniteServices svcs = ignite.services(); > svcs.deployKeyAffinitySingleton("myKeySingleton", new MyService(), "myCache", > new MyCacheKey()); > > > </quote> > > Is the MyCacheKey instance in the snippet above a particular value of the > key and if so, does it mean that we need to deploy one instance of the > service for each entry (with it's own cache key) in that partition ? > > Thanks > > Mans > -- Vladislav Pyatkov
