ui.management.bulkReBalanceTopics.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="clusterIdentifier" type="java.lang.String" -->
<#-- @ftlvariable name="clusterInfo" type="com.infobip.kafkistry.kafka.ClusterInfo" -->
<#-- @ftlvariable name="stats" type="com.infobip.kafkistry.service.topic.BulkReAssignmentSuggestion.SuggestionStats" -->
<#-- @ftlvariable name="topicsReBalanceSuggestions" type="java.util.Map" -->
<#-- @ftlvariable name="topicsReBalanceStatuses" type="java.util.Map" -->
<#-- @ftlvariable name="totalDataMigration" type="com.infobip.kafkistry.service.topic.DataMigration" -->
<#-- @ftlvariable name="clusterTopicsReplicas" type="com.infobip.kafkistry.kafkastate.TopicReplicaInfos" -->
<#-- @ftlvariable name="selectionLimitedBy" type="java.util.List" -->
<#include "../commonResources.ftl"/>
Kafkistry: Topic re-assignment
<#include "../commonMenu.ftl">
<#import "../common/util.ftl" as util>
<#import "../common/documentation.ftl" as doc>
<#import "../common/infoIcon.ftl" as info>
<#include "../common/backBtn.ftl"> Topic bulk re-balance on kafka
<#assign bulkReBalanceDoc = true>
<#include "doc/bulkTopicReBalanceDoc.ftl">
You are about to re-assign multiple topic partition replica to achieve balance
Cluster: ${clusterIdentifier}
Selection pipeline:
ALL
${stats.counts.all}
→
FILTERED
${stats.counts.filtered}
→
QUALIFIED
${stats.counts.qualified}
→
CANDIDATES
${stats.counts.candidates}
→
SELECTED
${stats.counts.selected}
<#if selectionLimitedBy?size == 0>
Selection of topic was not limited by any constraints
<#else>
Selection of topics was limited by:
<#list selectionLimitedBy as causeType>
${causeType}
#list>
#if>
<#macro filterStageDisplay filterStages>
<#-- @ftlvariable name="filterStages" type="java.util.List" -->
#
Topic
Outcome
Explanation
<#list filterStages as filterStage>
${filterStage?index + 1})
${filterStage.topic}
<#if filterStage.passed>
PASSED
<#else>
DROPPED
#if>
<#list filterStage.explanations as explanation>
${explanation}
<#if explanation?has_next>/#if>
#list>
#list>
<#if filterStages?size == 0>
(no topics)
#if>
#macro>
Filter stage
<@filterStageDisplay filterStages=stats.filter/>
Qualify stage
<@filterStageDisplay filterStages=stats.qualify/>
Candidates stage
<@filterStageDisplay filterStages=stats.candidate/>
Constraints stage
<@filterStageDisplay filterStages=stats.constraints/>
<#list topicsReBalanceSuggestions as topicName, reBalanceSuggestion>
<#assign assignmentStatus = topicsReBalanceStatuses[topicName]>
<#assign topicReplicas = clusterTopicsReplicas[topicName]>
#list>
<#if topicsReBalanceSuggestions?size gt 0>
<#assign dataMigration = totalDataMigration>
Total data migration
<#include "assignmentDataMigration.ftl">
<#assign maxBrokerIOBytes = totalDataMigration.maxBrokerIOBytes>
<#include "replicationThrottle.ftl">
<#else>
No topics to re-balance
#if>
<#include "../common/cancelBtn.ftl">
<#include "../common/serverOpStatus.ftl">
<#include "../common/pageBottom.ftl">