@@ -887,7 +887,7 @@ func printInfoNodes(infoResponse *schema.InfoResponse) {
887
887
numAPIInstances := len (infoResponse .NodeInfos )
888
888
889
889
var totalReplicas int
890
- var doesClusterHaveGPUs , doesClusterHaveInfs bool
890
+ var doesClusterHaveGPUs , doesClusterHaveInfs , doesClusterHaveAsyncAPIs bool
891
891
for _ , nodeInfo := range infoResponse .NodeInfos {
892
892
totalReplicas += nodeInfo .NumReplicas
893
893
if nodeInfo .ComputeUserCapacity .GPU > 0 {
@@ -896,6 +896,9 @@ func printInfoNodes(infoResponse *schema.InfoResponse) {
896
896
if nodeInfo .ComputeUserCapacity .Inf > 0 {
897
897
doesClusterHaveInfs = true
898
898
}
899
+ if nodeInfo .NumAsyncGatewayReplicas > 0 {
900
+ doesClusterHaveAsyncAPIs = true
901
+ }
899
902
}
900
903
901
904
var pendingReplicasStr string
@@ -913,6 +916,7 @@ func printInfoNodes(infoResponse *schema.InfoResponse) {
913
916
{Title : "instance type" },
914
917
{Title : "lifecycle" },
915
918
{Title : "replicas" },
919
+ {Title : "async gateway replicas" , Hidden : ! doesClusterHaveAsyncAPIs },
916
920
{Title : "CPU (requested / total allocatable)" },
917
921
{Title : "memory (requested / total allocatable)" },
918
922
{Title : "GPU (requested / total allocatable)" , Hidden : ! doesClusterHaveGPUs },
@@ -930,7 +934,7 @@ func printInfoNodes(infoResponse *schema.InfoResponse) {
930
934
memStr := nodeInfo .ComputeUserRequested .Mem .String () + " / " + nodeInfo .ComputeUserCapacity .Mem .String ()
931
935
gpuStr := s .Int64 (nodeInfo .ComputeUserRequested .GPU ) + " / " + s .Int64 (nodeInfo .ComputeUserCapacity .GPU )
932
936
infStr := s .Int64 (nodeInfo .ComputeUserRequested .Inf ) + " / " + s .Int64 (nodeInfo .ComputeUserCapacity .Inf )
933
- rows = append (rows , []interface {}{nodeInfo .InstanceType , lifecycle , nodeInfo .NumReplicas , cpuStr , memStr , gpuStr , infStr })
937
+ rows = append (rows , []interface {}{nodeInfo .InstanceType , lifecycle , nodeInfo .NumReplicas , nodeInfo . NumAsyncGatewayReplicas , cpuStr , memStr , gpuStr , infStr })
934
938
}
935
939
936
940
t := table.Table {
0 commit comments