ui.management.replicationFactorChange.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @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="replicationFactorChange" type="com.infobip.kafkistry.service.topic.PartitionPropertyChange" -->
<#-- @ftlvariable name="assignmentStatus" type="com.infobip.kafkistry.service.topic.PartitionsAssignmentsStatus" -->
<#-- @ftlvariable name="topicReplicas" type="com.infobip.kafkistry.kafkastate.TopicReplicaInfos" -->
<#include "../commonResources.ftl"/>
Kafkistry: Topic re-assignment
<#include "../commonMenu.ftl">
Topic replication factor change on kafka
You are about to change topic replication factor by assigning new replicas on kafka cluster
Cluster
${clusterInfo.identifier}
Topic
${topicName}
Replication factor before
${replicationFactorChange.currentAssignments?first.replicasAssignments?size}
Replication factor after
${(replicationFactorChange.change.newAssignments?api.get(replicationFactorChange.change.newAssignments?keys[0])?size)!"---"}
<#if replicationFactorChange.dataMigration??>
<#assign dataMigration = replicationFactorChange.dataMigration>
<#include "assignmentChangeStats.ftl">
#if>
<#assign partitionsAssignments = replicationFactorChange.currentAssignments>
<#assign partitionChange = replicationFactorChange>
<#include "../topics/partitionReplicaAssignments.ftl">
<#switch replicationFactorChange.type>
<#case "IMPOSSIBLE">
WARNING: Partition change is not possible, reason: ${replicationFactorChange.impossibleReason}
<#break>
<#case "NOTHING">
NOTE: Partition change is not needed because expected and actual values are the same
<#break>
<#case "CHANGE">
<#assign assignments = replicationFactorChange.change.newAssignments>
<#include "assignmentData.ftl">
<#if replicationFactorChange.change.addedPartitionReplicas?size gt 0>
<#assign firstPartitionId = replicationFactorChange.change.addedPartitionReplicas?keys[0]>
<#assign replicationFactorInc = replicationFactorChange.change.addedPartitionReplicas?api.get(firstPartitionId)>
<#assign maxBrokerIOBytes = replicationFactorChange.dataMigration.maxBrokerIOBytes>
<#include "replicationThrottle.ftl">
<#else>
<#assign firstPartitionId = replicationFactorChange.change.removedPartitionReplicas?keys[0]>
<#assign replicationFactorDec = replicationFactorChange.change.removedPartitionReplicas?api.get(firstPartitionId)>
#if>
<#break>
#switch>
<#include "../common/cancelBtn.ftl">
NOTE: Don't forget to do (Verify re-assignments) after addition of new replicas completes
<#include "../common/serverOpStatus.ftl">
<#include "../common/pageBottom.ftl">