You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Andrey Mashenkov <an...@gmail.com> on 2017/04/04 06:42:09 UTC

Re: Apache ignite persistant store implementation

Hi Sweta,

You should to start server node to Ignite could keep cache data in memory.

On Tue, Apr 4, 2017 at 8:43 AM, sweta Das <sw...@gmail.com> wrote:

> Hi
> I have few clarifications on the read and write through implementation of
> ignite cache.
> I have a mysql database with a simple table (1 int key and 2 columns of
> String).
> I know that I have to start a ignite client node with cache store
> configuration. But do I also need to start the server node passing the jdbc
> driver connection details in the spring xml file?
>
>
>


-- 
Best regards,
Andrey V. Mashenkov

Re: Apache ignite persistant store implementation

Posted by Andrey Mashenkov <an...@gmail.com>.
NearCache is designed to store small portion of frequently used data [1] of
non-local partitions.

[1] https://apacheignite.readme.io/docs/near-caches

On Wed, Apr 5, 2017 at 2:19 PM, ALEKSEY KUZNETSOV <al...@gmail.com>
wrote:

> What meaning did u put into "is frontend to" ?
>
> вт, 4 апр. 2017 г. в 13:52, Andrey Mashenkov <an...@gmail.com>:
>
>> Client can have only LOCAL cache and NearCache that is frontend to
>> partitioned, see [1]. Moreover, client node requires live server node in
>> topology.
>>
>> However, you can try to force "server" mode on client node (via
>> *TcpDiscoverySpi.setForceServerMode(true)*) to start it without any
>> servers and use LOCAL cache with read-through.
>>
>> [1] https://apacheignite.readme.io/docs/clients-vs-
>> servers#creating-distributed-caches
>>
>> On Tue, Apr 4, 2017 at 10:56 AM, ALEKSEY KUZNETSOV <
>> alkuznetsov.sb@gmail.com> wrote:
>>
>> client node doesnt store cache entries, at all ?
>>
>> вт, 4 апр. 2017 г. в 9:42, Andrey Mashenkov <an...@gmail.com>:
>>
>> Hi Sweta,
>>
>> You should to start server node to Ignite could keep cache data in
>> memory.
>>
>> On Tue, Apr 4, 2017 at 8:43 AM, sweta Das <sw...@gmail.com> wrote:
>>
>> Hi
>> I have few clarifications on the read and write through implementation of
>> ignite cache.
>> I have a mysql database with a simple table (1 int key and 2 columns of
>> String).
>> I know that I have to start a ignite client node with cache store
>> configuration. But do I also need to start the server node passing the jdbc
>> driver connection details in the spring xml file?
>>
>>
>>
>>
>>
>> --
>> Best regards,
>> Andrey V. Mashenkov
>>
>> --
>>
>> *Best Regards,*
>>
>> *Kuznetsov Aleksey*
>>
>>
>>
>>
>> --
>> Best regards,
>> Andrey V. Mashenkov
>>
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>



-- 
Best regards,
Andrey V. Mashenkov

Re: Apache ignite persistant store implementation

Posted by ALEKSEY KUZNETSOV <al...@gmail.com>.
What meaning did u put into "is frontend to" ?

вт, 4 апр. 2017 г. в 13:52, Andrey Mashenkov <an...@gmail.com>:

> Client can have only LOCAL cache and NearCache that is frontend to
> partitioned, see [1]. Moreover, client node requires live server node in
> topology.
>
> However, you can try to force "server" mode on client node (via
> *TcpDiscoverySpi.setForceServerMode(true)*) to start it without any
> servers and use LOCAL cache with read-through.
>
> [1]
> https://apacheignite.readme.io/docs/clients-vs-servers#creating-distributed-caches
>
> On Tue, Apr 4, 2017 at 10:56 AM, ALEKSEY KUZNETSOV <
> alkuznetsov.sb@gmail.com> wrote:
>
> client node doesnt store cache entries, at all ?
>
> вт, 4 апр. 2017 г. в 9:42, Andrey Mashenkov <an...@gmail.com>:
>
> Hi Sweta,
>
> You should to start server node to Ignite could keep cache data in memory.
>
> On Tue, Apr 4, 2017 at 8:43 AM, sweta Das <sw...@gmail.com> wrote:
>
> Hi
> I have few clarifications on the read and write through implementation of
> ignite cache.
> I have a mysql database with a simple table (1 int key and 2 columns of
> String).
> I know that I have to start a ignite client node with cache store
> configuration. But do I also need to start the server node passing the jdbc
> driver connection details in the spring xml file?
>
>
>
>
>
> --
> Best regards,
> Andrey V. Mashenkov
>
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>
>
>
>
> --
> Best regards,
> Andrey V. Mashenkov
>
-- 

*Best Regards,*

*Kuznetsov Aleksey*

Re: Apache ignite persistant store implementation

Posted by Andrey Mashenkov <an...@gmail.com>.
Client can have only LOCAL cache and NearCache that is frontend to
partitioned, see [1]. Moreover, client node requires live server node in
topology.

However, you can try to force "server" mode on client node (via
*TcpDiscoverySpi.setForceServerMode(true)*) to start it without any servers
and use LOCAL cache with read-through.

[1]
https://apacheignite.readme.io/docs/clients-vs-servers#creating-distributed-caches

On Tue, Apr 4, 2017 at 10:56 AM, ALEKSEY KUZNETSOV <alkuznetsov.sb@gmail.com
> wrote:

> client node doesnt store cache entries, at all ?
>
> вт, 4 апр. 2017 г. в 9:42, Andrey Mashenkov <an...@gmail.com>:
>
>> Hi Sweta,
>>
>> You should to start server node to Ignite could keep cache data in
>> memory.
>>
>> On Tue, Apr 4, 2017 at 8:43 AM, sweta Das <sw...@gmail.com> wrote:
>>
>> Hi
>> I have few clarifications on the read and write through implementation of
>> ignite cache.
>> I have a mysql database with a simple table (1 int key and 2 columns of
>> String).
>> I know that I have to start a ignite client node with cache store
>> configuration. But do I also need to start the server node passing the jdbc
>> driver connection details in the spring xml file?
>>
>>
>>
>>
>>
>> --
>> Best regards,
>> Andrey V. Mashenkov
>>
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>



-- 
Best regards,
Andrey V. Mashenkov

Re: Apache ignite persistant store implementation

Posted by ALEKSEY KUZNETSOV <al...@gmail.com>.
client node doesnt store cache entries, at all ?

вт, 4 апр. 2017 г. в 9:42, Andrey Mashenkov <an...@gmail.com>:

> Hi Sweta,
>
> You should to start server node to Ignite could keep cache data in memory.
>
> On Tue, Apr 4, 2017 at 8:43 AM, sweta Das <sw...@gmail.com> wrote:
>
> Hi
> I have few clarifications on the read and write through implementation of
> ignite cache.
> I have a mysql database with a simple table (1 int key and 2 columns of
> String).
> I know that I have to start a ignite client node with cache store
> configuration. But do I also need to start the server node passing the jdbc
> driver connection details in the spring xml file?
>
>
>
>
>
> --
> Best regards,
> Andrey V. Mashenkov
>
-- 

*Best Regards,*

*Kuznetsov Aleksey*