Hi Vlad

I would propose you looked at this as two questions. The second question is 
easy:

What would be if I do
new OrientGraphFactory("remote:orientdb.node1.com/TestDistributedDatabase",
 username, password).getTx()
?
This way I connect specific node and as I understand can play with data on 
it, but what if I create new vertex, will it be replicate on the 
orientdb.node2.com ?

The rules of this are based on the config of the nodes - if you have a 
write quorum of 2 in a 2 node set up you can guarantee that if the write 
succeeds that it has written to both. Alternatively if you have 
hotAlignment set to true and the 2 nodes 'know' about each other in 
distributed mode - then you know that both nodes will get synchronized 
eventually even if the write quorum is only set to 1. You can also ensure 
that you get read consistency (i.e. both nodes have the same value for a 
vertex) by setting the read qourum to 2.

In regards to the other question on connecting to the cluster ... NO IDEA 
.. would LOVE TO KNOW :)




On Tuesday, September 23, 2014 5:44:09 PM UTC+1, Vladimir Ziankevich wrote:
>
> At first, possibly my question is very stupid, but
>
> Assume I have two OrientDB servers configured in distributed mode. For 
> example there are corresponding URL's:
>
> orientdb.node1.com
> orientdb.node2.com
>
> Also there is TestDistributedDatabase on both nodes.
> And I have DNS configured properly (like described in the topic 
> https://github.com/orientechnologies/orientdb/wiki/Distributed-Configuration#load-balancing
> ).
> Let say mydomain.com.
>
> So what is the way to connect cluster?
>
> Is it correct?
> new OrientGraphFactory("remote:mydomain.com/TestDistributedDatabase", 
> username, password).getTx()
>
>
> What would be if I do 
> new OrientGraphFactory("remote:orientdb.node1.com/TestDistributedDatabase"
> , username, password).getTx()
> ?
> This way I connect specific node and as I understand can play with data on 
> it, but what if I create new vertex, will it be replicate on the 
> orientdb.node2.com ?
>
> Thanks in advance!
>

-- 

--- 
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