ui.management.reAssignmentMetadata.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="clusterInfo" type="com.infobip.kafkistry.kafka.ClusterInfo" -->
<#-- @ftlvariable name="topicName" type="java.lang.String" -->
<#-- @ftlvariable name="assignmentStatus" type="com.infobip.kafkistry.service.topic.PartitionsAssignmentsStatus" -->
<#-- @ftlvariable name="reBalanceSuggestion" type="com.infobip.kafkistry.service.topic.ReBalanceSuggestion" -->
<#-- @ftlvariable name="topicReplicas" type="com.infobip.kafkistry.kafkastate.TopicReplicaInfos" -->
Cluster
${clusterInfo.identifier}
Topic
${topicName}
<#assign dataMigration = reBalanceSuggestion.dataMigration>
<#include "assignmentChangeStats.ftl">
<#assign oldDisbalance = reBalanceSuggestion.oldDisbalance>
<#assign newDisbalance = reBalanceSuggestion.newDisbalance>
Replicas disbalance
Old: ${oldDisbalance.replicasDisbalance} (${oldDisbalance.replicasDisbalancePercent?string["0.##"]}% of
all replicas)
New: ${newDisbalance.replicasDisbalance} (${newDisbalance.replicasDisbalancePercent?string["0.##"]}% of
all replicas)
Leaders disbalance
Old: ${oldDisbalance.leadersDisbalance} (${oldDisbalance.leadersDisbalancePercent?string["0.##"]}% of
all partitions)
New: ${newDisbalance.leadersDisbalance} (${newDisbalance.leadersDisbalancePercent?string["0.##"]}% of
all partitions)
Racks disbalance
Old sum: ${oldDisbalance.partitionsPerRackDisbalance.totalDisbalance},
New sum: ${newDisbalance.partitionsPerRackDisbalance.totalDisbalance}
<#include "../topics/partitionReplicaAssignments.ftl">
<#assign assignments = reBalanceSuggestion.assignmentsChange.newAssignments>
<#include "assignmentData.ftl">