mirror of https://gitee.com/bigwinds/arangodb
Revert "Temporarily go back to unresilient system collections."
This reverts commit bf2642c7bf
.
This commit is contained in:
parent
6b35369e93
commit
a73c617da2
|
@ -53,7 +53,7 @@ var getReadableName = function(name) {
|
|||
var getStorage = function() {
|
||||
var c = db._collection("_apps");
|
||||
if (c === null) {
|
||||
c = db._create("_apps", {isSystem: true, replicationFactor: 1,
|
||||
c = db._create("_apps", {isSystem: true, replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"});
|
||||
c.ensureIndex({ type: "hash", fields: [ "mount" ], unique: true });
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ function createStatisticsCollection (name) {
|
|||
|
||||
try {
|
||||
r = db._create(name, { isSystem: true, waitForSync: false,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs" });
|
||||
}
|
||||
catch (err) {
|
||||
|
|
|
@ -518,7 +518,7 @@
|
|||
return createSystemCollection("_graphs", {
|
||||
waitForSync : false,
|
||||
journalSize: 1024 * 1024,
|
||||
replicationFactor: 1
|
||||
replicationFactor: 2
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -542,7 +542,7 @@
|
|||
waitForSync : false,
|
||||
shardKeys: [ "user" ],
|
||||
journalSize: 4 * 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
}
|
||||
|
@ -704,7 +704,7 @@
|
|||
return createSystemCollection("_sessions", {
|
||||
waitForSync: false,
|
||||
journalSize: 4 * 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
}
|
||||
|
@ -797,7 +797,7 @@
|
|||
task: function () {
|
||||
return createSystemCollection("_modules", {
|
||||
journalSize: 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
}
|
||||
|
@ -821,7 +821,7 @@
|
|||
// needs to be big enough for assets
|
||||
return createSystemCollection("_routing", {
|
||||
journalSize: 8 * 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
}
|
||||
|
@ -994,7 +994,7 @@
|
|||
task: function () {
|
||||
return createSystemCollection("_aqlfunctions", {
|
||||
journalSize: 2 * 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
}
|
||||
|
@ -1112,7 +1112,7 @@
|
|||
var result = createSystemCollection(name, {
|
||||
waitForSync: false,
|
||||
journalSize: 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
|
||||
|
@ -1178,7 +1178,7 @@
|
|||
task: function () {
|
||||
return createSystemCollection("_queues", {
|
||||
journalSize: 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
}
|
||||
|
@ -1201,7 +1201,7 @@
|
|||
task: function () {
|
||||
return createSystemCollection("_jobs", {
|
||||
journalSize: 4 * 1024 * 1024,
|
||||
replicationFactor: 1,
|
||||
replicationFactor: 2,
|
||||
distributeShardsLike: "_graphs"
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue