From 16870d8a714f6fd3afa9b10d88fa740ad5be9872 Mon Sep 17 00:00:00 2001 From: Tor Brede Vekterli Date: Fri, 12 Mar 2021 15:09:21 +0100 Subject: Move ZK/election-related info away from top of CC status page Much less immediately interesting than the actual cluster node information. Move it just above the general event log instead. --- .../clustercontroller/core/status/LegacyIndexPageRequestHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clustercontroller-core/src') diff --git a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/status/LegacyIndexPageRequestHandler.java b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/status/LegacyIndexPageRequestHandler.java index 2813280add2..a64aad3d5be 100644 --- a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/status/LegacyIndexPageRequestHandler.java +++ b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/status/LegacyIndexPageRequestHandler.java @@ -57,8 +57,6 @@ public class LegacyIndexPageRequestHandler implements StatusPageServer.RequestHa content.append(""); //content.append(""); content.append("
UTC time when creating this page:").append(RealTimer.printDateNoMilliSeconds(currentTime, tz)).append("
Fleetcontroller version:" + Vtag.V_TAG_PKG + "
Cluster controller uptime:" + RealTimer.printDuration(currentTime - startedTime) + "
"); - // State of master election - masterElectionHandler.writeHtmlState(content, data.getOptions().stateGatherCount); if (masterElectionHandler.isAmongNthFirst(data.getOptions().stateGatherCount)) { // Table overview of all the nodes cluster.writeHtmlState( @@ -79,6 +77,8 @@ public class LegacyIndexPageRequestHandler implements StatusPageServer.RequestHa // Overview of current config data.getOptions().writeHtmlState(content); } + // State of master election + masterElectionHandler.writeHtmlState(content, data.getOptions().stateGatherCount); // Event log eventLog.writeHtmlState(content, null); response.writeHtmlFooter(content, ""); -- cgit v1.2.3