You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Mikael <mi...@telia.com> on 2017/12/05 22:21:02 UTC

Affinity key for specific node

Hi!

I have a singleton service running on a specific node, It access a 
serial port so it must be running on that specific node so I can't use 
affinity key for the service, now I want to create some values in a 
cache that will be used by the service, is there any way I can create 
affinity keys for those values so they will end up in the cache on the 
same node as the service ?


Re: Affinity key for specific node

Posted by Valentin Kulichenko <va...@gmail.com>.
Mikael,

You can also use a replicated cache then. This will give you both: all data
available on service node as well as failover in case of failure (you will
not lose any data as long as there is at least one node available).

-Val

On Tue, Dec 5, 2017 at 11:35 PM, Mikael <mi...@telia.com> wrote:

> Well, I would like to use a partitioned cache so that the data in the
> cache stays intact if that node goes down for a while, but if more nodes go
> down it might be lost anyway so maybe I need to use a local cache and
> persist it instead, was trying to avoid that.
>
>
>
> Den 2017-12-06 kl. 00:00, skrev vkulichenko:
>
>> If it's a single node, I would just create a special local cache for these
>> entries and deploy it on that node. Will this work?
>>
>> -Val
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>>
>

Re: Affinity key for specific node

Posted by Mikael <mi...@telia.com>.
Well, I would like to use a partitioned cache so that the data in the 
cache stays intact if that node goes down for a while, but if more nodes 
go down it might be lost anyway so maybe I need to use a local cache and 
persist it instead, was trying to avoid that.


Den 2017-12-06 kl. 00:00, skrev vkulichenko:
> If it's a single node, I would just create a special local cache for these
> entries and deploy it on that node. Will this work?
>
> -Val
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: Affinity key for specific node

Posted by vkulichenko <va...@gmail.com>.
If it's a single node, I would just create a special local cache for these
entries and deploy it on that node. Will this work?

-Val



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