How to change distributed-config.json

74 views
Skip to first unread message

Alexander Sahler

unread,
Nov 28, 2014, 5:29:46 AM11/28/14
to orient-...@googlegroups.com
Hello everybody.

I tried to change distributed-config.json of a certain database (running on version 1.7.9). While two instances are running, I put one instance down and changed the file. After bringing the instance back it synchronized from the running instance and took over the distributed-config.json from it, overwriting the changes I made.

So I tried another approach: Bring both nodes down, change both of distributed-config.json and bring up the instances again. But in this scenario, the distributed-config.json will be overwritten with default-distributed-db-config.json from config directory! Changing this file affects ALL databases that are contained in databases directory.

How to do it right?

Regards, Alexander.

Luca Garulli

unread,
Dec 3, 2014, 1:25:26 PM12/3/14
to orient-database
Hi Alexander,
Unfortunately changing the distributed cfg at run-time is a feature of Enterprise Edition.

The rule of the thumb is:
- get the cfg in cluster
- if it's not present, load the cfg in database directory
- if it's not present, load the cfg in $ORIENTDB_HOME/config/distributed-config.json

Lvc@

--

---
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 orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander Sahler

unread,
Dec 4, 2014, 4:49:28 AM12/4/14
to orient-...@googlegroups.com
Hi Luca.

Should it be possible to change the distribution config offline after bringing all nodes down? 

Regards,
Alexander

--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/6lGCxY101OM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.

philomely yang

unread,
Jul 7, 2015, 2:54:58 PM7/7/15
to orient-...@googlegroups.com
Hi Lvc,
I'm using Eneterprise edition. But I can't change the distributed cfg at runtime neither. could you show me how to do it?
Thank you.

Aaron.
Reply all
Reply to author
Forward
0 new messages