Hi,
Is this question the same like the previous one?

About your question this is the default cfg
(config/default-distributed-db-config.json):

{
    "autoDeploy": true,
    "hotAlignment": false,
    "readQuorum": 1,
    "writeQuorum": 2,
    "failureAvailableNodesLessQuorum": false,
    "readYourWrites": true,
    "clusters": {
        "internal": {
        },
        "index": {
        },
        "*": {
            "servers" : [ "<NEW_NODE>" ]
        }
    }
}

As you can see al the clusters ("*") are replicated on each new servers. If
you have the class *Client* that works against 2 clusters *client_usa* and
*client_europe* you can do this:

{
    "autoDeploy": true,
    "hotAlignment": false,
    "readQuorum": 1,
    "writeQuorum": 2,
    "failureAvailableNodesLessQuorum": false,
    "readYourWrites": true,
    "clusters": {
        "internal": {
        },
        "index": {
        },
        "client_usa": {
            "servers" : [ "usa" ]
        }
        "client_europe": {
            "servers" : [ "europe" ]
        }
        "*": {
            "servers" : [ "<NEW_NODE>" ]
        }
    }
}

So all the operation against client_usa will go to the server "usa". Every
time you execute a query against the class Client, a Map/Reduce like query
is executed against both servers.


Lvc@



On 17 July 2014 21:32, galina manashirova <[email protected]>
wrote:

>
> Hi;
>
> 1.       One of requirements in regards of replication is to be able to
> set replication on each data element’s level, whether it is replicated or
> not.
>
> We don’t replicate some data  which are always local  and we need a
> flexible way to turn it on and off at the lowest data level.  Can we do
> it by just configuring Orient Db or it has to be done on Java API level ?
> What would be your recommendation and how would you handle it?
>
>
> Thank you!
>
> -galina
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to