meaning of backup options.

classic Classic list List threaded Threaded
4 messages Options
tomk tomk
Reply | Threaded
Open this post in threaded view
|

meaning of backup options.

Hi,  
What does it mean following options:
                   
                   

?
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: meaning of backup options.

Did you forget to paste something here? What options are you asking about?

-Val
tomk tomk
Reply | Threaded
Open this post in threaded view
|

Re: meaning of backup options.

Yes, I did mean:
<property name="readFromBackup" value="true"/>
<property name="copyOnRead" value="true"/>


2016-05-25 13:52 GMT+02:00 vkulichenko <[hidden email]>:
Did you forget to paste something here? What options are you asking about?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/meaning-of-backup-options-tp5134p5180.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: meaning of backup options.

'readFromBackup' defines if it's allowed to read the local value from the backup. I.e. if you're executing get(K) on the server node, this node is backup for the K and readFromBackup is false, Ignite will send the request to primary node and get the value from there. By default the value is true, so is the entry is available locally, no network trips are required.

'copyOnRead' defines whether the copy of the value is created before it's returned from the cache. Of course, this makes sense only if the value is read locally (e.g., if in case of get() on primary or backup node, in case of invoke(), etc.). Setting this to false can improve performance, because you avoid additional deserialization step, but it's not safe to mutate the value that you read in this case, so usually it's used only for immutable objects.

-Val