使用 EAP 操作器时,您可以使用 pod 横向自动扩展 HPA 根据从属于该 EAP 应用的容器集收集的指标来自动增加或减少 EAP 应用规模。
oc get hpa -w
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
eap-helloworld WildFlyServer/eap-helloworld 217%/50% 1 10 1 4s
eap-helloworld WildFlyServer/eap-helloworld 217%/50% 1 10 4 17s
eap-helloworld WildFlyServer/eap-helloworld 133%/50% 1 10 8 32s
eap-helloworld WildFlyServer/eap-helloworld 133%/50% 1 10 10 47s
eap-helloworld WildFlyServer/eap-helloworld 139%/50% 1 10 10 62s
eap-helloworld WildFlyServer/eap-helloworld 180%/50% 1 10 10 92s
eap-helloworld WildFlyServer/eap-helloworld 133%/50% 1 10 10 2m2s
oc get hpa -w
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
eap-helloworld WildFlyServer/eap-helloworld 217%/50% 1 10 1 4s
eap-helloworld WildFlyServer/eap-helloworld 217%/50% 1 10 4 17s
eap-helloworld WildFlyServer/eap-helloworld 133%/50% 1 10 8 32s
eap-helloworld WildFlyServer/eap-helloworld 133%/50% 1 10 10 47s
eap-helloworld WildFlyServer/eap-helloworld 139%/50% 1 10 10 62s
eap-helloworld WildFlyServer/eap-helloworld 180%/50% 1 10 10 92s
eap-helloworld WildFlyServer/eap-helloworld 133%/50% 1 10 10 2m2s
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow