You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by yucigou <yu...@gmail.com> on 2016/12/06 14:29:16 UTC

Is it possible to create a near cache without any copy on servers nodes?

According to the documentation
http://apacheignite.gridgain.org/docs/near-caches, a Near cache can be
created on a client node, so as to front a partitioned cache on server
nodes.

Now what I would like to achive is to just create a near cache on the client
node, without any copy or any partitioned cache at all on server nodes. In
other words, the server nodes don't need to cache anything for whatever is
cached in the near cache at the client node.

Wonder if Ignite supports this way of caching?

If not, can near caches work with caches in Local Mode (instead of a
partitioned cache)?

Thank you,
Yuci



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-it-possible-to-create-a-near-cache-without-any-copy-on-servers-nodes-tp9415.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Is it possible to create a near cache without any copy on servers nodes?

Posted by Andrey Mashenkov <am...@gridgain.com>.
Hi Yuci,

Yes, you are right.

On Tue, Dec 6, 2016 at 7:30 PM, yucigou <yu...@gmail.com> wrote:

> Hi Alexey,
>
> Thank you. So my understanding of client nodes was wrong.
>
> The correct understanding should be: if I start a node as client node, and
> a
> cache created by the client node is set to Local Mode, then the server
> nodes
> would never see the local cache of the client node.
>
> Is it right?
>
> Thank you,
> Yuci
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Is-it-possible-to-create-a-near-
> cache-without-any-copy-on-servers-nodes-tp9415p9422.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Is it possible to create a near cache without any copy on servers nodes?

Posted by yucigou <yu...@gmail.com>.
Hi Alexey,

Thank you. So my understanding of client nodes was wrong.

The correct understanding should be: if I start a node as client node, and a
cache created by the client node is set to Local Mode, then the server nodes
would never see the local cache of the client node.

Is it right?

Thank you,
Yuci



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-it-possible-to-create-a-near-cache-without-any-copy-on-servers-nodes-tp9415p9422.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Is it possible to create a near cache without any copy on servers nodes?

Posted by Alexey Kuznetsov <ak...@gridgain.com>.
Yuci,

As far as I know client node also could start *fully functional* LOCAL
cache.

On Tue, Dec 6, 2016 at 10:36 PM, yucigou <yu...@gmail.com> wrote:

> Hi Andrew,
>
> I have looked at Local Mode cache.
>
> But the thing is that Local Mode cache is located on server nodes.
>
> Suppose I have two server nodes, node A and B, and one client node, node C.
>
> Node C has a near cache, and server node A and B are of Local Mode cache.
>
> And then client node C puts an entry in the cache of server node A, and
> also
> its own near cache.
>
> After a certain period of time, the entry is evicted from node C's near
> cache, while still being kept in node A.
>
> Now client node C would like to access the entry. Would Ignite always know
> that it should go to node A to look for the entry? If Ignite happens to go
> to node B, node B would know nothing about the entry, as the cache is set
> in
> Local Mode.
>
> (But if Ignite knows exactly that it should go to node A to retrieve that
> entry, then that would be perfect!)
>
> Thank you,
> Yuci
>
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Is-it-possible-to-create-a-near-
> cache-without-any-copy-on-servers-nodes-tp9415p9419.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Re: Is it possible to create a near cache without any copy on servers nodes?

Posted by yucigou <yu...@gmail.com>.
Hi Andrew,

I have looked at Local Mode cache. 

But the thing is that Local Mode cache is located on server nodes.

Suppose I have two server nodes, node A and B, and one client node, node C.

Node C has a near cache, and server node A and B are of Local Mode cache.

And then client node C puts an entry in the cache of server node A, and also
its own near cache.

After a certain period of time, the entry is evicted from node C's near
cache, while still being kept in node A.

Now client node C would like to access the entry. Would Ignite always know
that it should go to node A to look for the entry? If Ignite happens to go
to node B, node B would know nothing about the entry, as the cache is set in
Local Mode.

(But if Ignite knows exactly that it should go to node A to retrieve that
entry, then that would be perfect!)

Thank you,
Yuci 





--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-it-possible-to-create-a-near-cache-without-any-copy-on-servers-nodes-tp9415p9419.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Is it possible to create a near cache without any copy on servers nodes?

Posted by Andrey Mashenkov <an...@gmail.com>.
Hi,
 It seems you are looking for LocalCache. See [1] for details

[1] http://apacheignite.gridgain.org/docs/cache-modes#local-mode

On Tue, Dec 6, 2016 at 5:29 PM, yucigou <yu...@gmail.com> wrote:

> According to the documentation
> http://apacheignite.gridgain.org/docs/near-caches, a Near cache can be
> created on a client node, so as to front a partitioned cache on server
> nodes.
>
> Now what I would like to achive is to just create a near cache on the
> client
> node, without any copy or any partitioned cache at all on server nodes. In
> other words, the server nodes don't need to cache anything for whatever is
> cached in the near cache at the client node.
>
> Wonder if Ignite supports this way of caching?
>
> If not, can near caches work with caches in Local Mode (instead of a
> partitioned cache)?
>
> Thank you,
> Yuci
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Is-it-possible-to-create-a-near-
> cache-without-any-copy-on-servers-nodes-tp9415.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
С уважением,
Машенков Андрей Владимирович
Тел. +7-921-932-61-82

Best regards,
Andrey V. Mashenkov
Cerr: +7-921-932-61-82