1
0
Fork 0

The overview is now partly active and working. Routes for DBS and sharoders are broxorn

This commit is contained in:
Michael Hackstein 2014-02-27 16:01:38 +01:00
parent 6169e326a4
commit 461e07a66b
3 changed files with 5 additions and 15 deletions

View File

@ -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) {

View File

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

View File

@ -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();
},