mirror of https://gitee.com/bigwinds/arangodb
The overview is now partly active and working. Routes for DBS and sharoders are broxorn
This commit is contained in:
parent
6169e326a4
commit
461e07a66b
|
@ -52,15 +52,11 @@
|
|||
"_cluster_kickstarter_plans"
|
||||
)),
|
||||
getStarter = function() {
|
||||
require("console").log("load conf");
|
||||
var config = plans.loadConfig(),
|
||||
k;
|
||||
require("console").log("loaded conf");
|
||||
if (!config) {
|
||||
require("console").log("No conf found");
|
||||
return;
|
||||
}
|
||||
require("console").log("Conf found");
|
||||
k = new cluster.Kickstarter(config.plan);
|
||||
k.runInfo = config.runInfo;
|
||||
return k;
|
||||
|
@ -132,7 +128,7 @@
|
|||
});
|
||||
|
||||
controller.get("/healthcheck", function(req, res) {
|
||||
res.json(getStarter().isHealthy());
|
||||
res.json(!getStarter().isHealthy().error);
|
||||
});
|
||||
|
||||
controller.get("/shutdown", function(req, res) {
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
|
||||
getNewRoute: function(last) {
|
||||
if (last === "statistics") {
|
||||
return this.cluterPlan.getCoordinator()
|
||||
return this.clusterPlan.getCoordinator()
|
||||
+ "/_admin/"
|
||||
+ last;
|
||||
}
|
||||
return this.cluterPlan.getCoordinator()
|
||||
return this.clusterPlan.getCoordinator()
|
||||
+ "/_admin/aardvark/cluster/"
|
||||
+ last;
|
||||
},
|
||||
|
@ -33,9 +33,11 @@
|
|||
|
||||
registerForUpdate: function(o) {
|
||||
this.toUpdate.push(o);
|
||||
o.updateUrl();
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
this.toUpdate = [];
|
||||
this.clusterPlan = new window.ClusterPlan();
|
||||
this.clusterPlan.fetch({
|
||||
async: false
|
||||
|
|
|
@ -73,14 +73,6 @@
|
|||
});
|
||||
this.cols = new window.ClusterCollections();
|
||||
this.shards = new window.ClusterShards();
|
||||
this.startUpdating();
|
||||
|
||||
var typeModel = new window.ClusterType();
|
||||
typeModel.fetch({
|
||||
async: false
|
||||
});
|
||||
this.type = typeModel.get("type");
|
||||
|
||||
this.startUpdating();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue