ui.clusters.management.throttle.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="commonThrottle" type="com.infobip.kafkistry.kafka.ThrottleRate" -->
<#include "../../commonResources.ftl"/>
Kafkistry: Cluster
<#include "../../commonMenu.ftl">
<#import "../../common/util.ftl" as util>
<#import "../clusterNodesList.ftl" as broker>
<#macro throttleRow brokerId throttle>
<#if brokerId?is_number>
<#assign brokerIdStr = "${brokerId?c}">
<#else>
<#assign brokerIdStr = "${brokerId}">
#if>
<#if brokerId?is_string>
${brokerId}
<#else>
<@broker.clusterNodeId nodeId=brokerId/>
#if>
<#assign statusId = "broker-${brokerIdStr}">
<#include "../../common/serverOpStatus.ftl">
#macro>
<#assign clusterIdentifier = clusterInfo.identifier>
<#include "../../common/backBtn.ftl"> Set cluster throttle rate
Cluster: ${clusterIdentifier}
Broker
Leader rate
Follower rate
Alter dir rate
<@throttleRow brokerId="ALL" throttle=commonThrottle/>
<#list clusterInfo.brokerIds as brokerId>
<@throttleRow brokerId=brokerId throttle=(clusterInfo.perBrokerThrottle?api.get(brokerId))!{}/>
#list>
<#include "../../common/cancelBtn.ftl">
<#include "../../common/pageBottom.ftl">