You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by "R. Subhash Babu" <rs...@gmail.com> on 2021/11/22 14:42:54 UTC

Affinity function with thin clients

Hi Igniters,

I am trying to create a cache using a thin client
(ClientCacheConfiguration) and trying to see how I can

1) provide affinity function
2) restrict the number of partitions of the cache

Any possible approach please?

Thanks
Subhash

Re: Affinity function with thin clients

Posted by "R. Subhash Babu" <rs...@gmail.com>.
Thnk you Stephen and Pavel. Seems like I have to go with a thick client for
my use case.

On Mon, Nov 22, 2021, 8:35 PM Pavel Tupitsyn <pt...@apache.org> wrote:

> You can use define one or more cache templates [1] with a custom affinity
> function (or any other setting) on the server side,
> then create caches using the template from the thin client.
>
> [1]
> https://ignite.apache.org/docs/latest/configuring-caches/configuration-overview#cache-templates
>
> On Mon, Nov 22, 2021 at 5:56 PM Stephen Darlington <
> stephen.darlington@gridgain.com> wrote:
>
>> I think you’ll either have to configure that on the server side or in a
>> thick-client.
>>
>> > On 22 Nov 2021, at 14:42, R. Subhash Babu <rs...@gmail.com> wrote:
>> >
>> > Hi Igniters,
>> >
>> > I am trying to create a cache using a thin client
>> (ClientCacheConfiguration) and trying to see how I can
>> >
>> > 1) provide affinity function
>> > 2) restrict the number of partitions of the cache
>> >
>> > Any possible approach please?
>> >
>> > Thanks
>> > Subhash
>>
>>
>>

Re: Affinity function with thin clients

Posted by Pavel Tupitsyn <pt...@apache.org>.
You can use define one or more cache templates [1] with a custom affinity
function (or any other setting) on the server side,
then create caches using the template from the thin client.

[1]
https://ignite.apache.org/docs/latest/configuring-caches/configuration-overview#cache-templates

On Mon, Nov 22, 2021 at 5:56 PM Stephen Darlington <
stephen.darlington@gridgain.com> wrote:

> I think you’ll either have to configure that on the server side or in a
> thick-client.
>
> > On 22 Nov 2021, at 14:42, R. Subhash Babu <rs...@gmail.com> wrote:
> >
> > Hi Igniters,
> >
> > I am trying to create a cache using a thin client
> (ClientCacheConfiguration) and trying to see how I can
> >
> > 1) provide affinity function
> > 2) restrict the number of partitions of the cache
> >
> > Any possible approach please?
> >
> > Thanks
> > Subhash
>
>
>

Re: Affinity function with thin clients

Posted by Stephen Darlington <st...@gridgain.com>.
I think you’ll either have to configure that on the server side or in a thick-client.

> On 22 Nov 2021, at 14:42, R. Subhash Babu <rs...@gmail.com> wrote:
> 
> Hi Igniters,
> 
> I am trying to create a cache using a thin client (ClientCacheConfiguration) and trying to see how I can
> 
> 1) provide affinity function
> 2) restrict the number of partitions of the cache
> 
> Any possible approach please?
> 
> Thanks
> Subhash