All those extra clusters in v2.2

70 views
Skip to first unread message

Hugo

unread,
Jul 2, 2016, 7:20:47 AM7/2/16
to OrientDB
Hello,

I have a script that creates a DB, creates all the clusters, classes and properties, and finally does an initial dump of basic data into the DB. This has been working until v2.1, but on v2.2 I am getting a lot of extra clusters that are impacting my initial dump, as it has a lot of links and linksets.

e.g.
CLUSTERS (collections)
+----+---------+----+---------+-----------------+-----+
|#   |NAME     |  ID|CLASS    |CONFLICT-STRATEGY|COUNT|
+----+---------+----+---------+-----------------+-----+
|0   |default  |   3|         |                 |    0|
|1   |e        |  21|E        |                 |    0|
|2   |e_1      |  22|E        |                 |    0|
|3   |e_10     |  31|E        |                 |    0|
|4   |e_11     |  32|E        |                 |    0|
|5   |e_2      |  23|E        |                 |    0|
|6   |e_3      |  24|E        |                 |    0|
|7   |e_4      |  25|E        |                 |    0|
|8   |e_5      |  26|E        |                 |    0|
|9   |e_6      |  27|E        |                 |    0|
|10  |e_7      |  28|E        |                 |    0|
|11  |e_8      |  29|E        |                 |    0|
|12  |e_9      |  30|E        |                 |    0|
|13  |index    |   1|         |                 |    0|
|14  |internal |   0|         |                 |    3|
|15  |manindex |   2|         |                 |    0|
|16  |ofunction|   6|OFunction|                 |    0|
|17  |orole    |   4|ORole    |                 |    3|
|18  |oschedule|   8|OSchedule|                 |    0|
|19  |osequence|   7|OSequence|                 |    0|
|20  |ouser    |   5|OUser    |                 |    3|
|21  |v        |   9|V        |                 |    0|
|22  |v_1      |  10|V        |                 |    0|
|23  |v_10     |  19|V        |                 |    0|
|24  |v_11     |  20|V        |                 |    0|
|25  |v_2      |  11|V        |                 |    0|
|26  |v_3      |  12|V        |                 |    0|
|27  |v_4      |  13|V        |                 |    0|
|28  |v_5      |  14|V        |                 |    0|
|29  |v_6      |  15|V        |                 |    0|
|30  |v_7      |  16|V        |                 |    0|
|31  |v_8      |  17|V        |                 |    0|
|32  |v_9      |  18|V        |                 |    0|
+----+---------+----+---------+-----------------+-----+
|    |TOTAL    |    |         |                 |    9|
+----+---------+----+---------+-----------------+-----+

Before, when I created a new DB, I only had 9 clusters, but now I have 32, I've been reading about the default minimumCluster configuration but I don't know if it's related to that.

What are those clusters used for? can I delete them? Is there any way that I can create the DB without them? I am not using graph, only document type. 

Regards,
Hugo.

Luigi Dell'Aquila

unread,
Jul 2, 2016, 8:19:00 AM7/2/16
to orient-...@googlegroups.com
Hi Hugo,

In v 2.2 OrientDB creates, for each class, as many clusters as the number of cores available on your machine. This gives advantages when doing multi-thread operations.
If you want, you can return to the previous behavior setting minimumClusters=1 (see http://orientdb.com/docs/last/Database-Management.html)

Thanks

Luigi




--

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

Luca Garulli

unread,
Jul 2, 2016, 6:10:15 PM7/2/16
to OrientDB

Best Regards,

Luca Garulli
Founder & CEO

Hugo

unread,
Jul 6, 2016, 4:28:28 PM7/6/16
to OrientDB
Hi,

Is there a way to set that a server level? to set it before creating the DB?

Regards,
Hugo.

Luca Garulli

unread,
Jul 6, 2016, 11:53:45 PM7/6/16
to OrientDB
Sure,

Add this in orientdb-server-config.xml under the properties section:

<properties>
<entry name="class.minimumClusters" value="1"/>

Best Regards,

Luca Garulli
Founder & CEO


scott molinari

unread,
Jul 7, 2016, 12:11:29 AM7/7/16
to OrientDB
Will a database created with "class.minimumClusters=1" work later with a server that doesn't have this setting?

Scott

Luca Garulli

unread,
Jul 7, 2016, 9:02:08 AM7/7/16
to OrientDB
Absolutely, because the setting is saved in the database.

Best Regards,

Luca Garulli
Founder & CEO


On 6 July 2016 at 23:11, 'scott molinari' via OrientDB <orient-...@googlegroups.com> wrote:
Will a database created with "class.minimumClusters=1" work later with a server that doesn't have this setting?

Scott

--

scott molinari

unread,
Jul 8, 2016, 12:57:31 AM7/8/16
to OrientDB
So a database set to use only one cluster per class will always use one cluster per class, no matter how the server is set?

That would mean, turning off the multiple cluster feature also means removing any performance advantage for the future, like when the database gets larger?

Is there no shard(cluster) rebalancing mechanism available in ODB?

Scott
Reply all
Reply to author
Forward
0 new messages