自动缩放谷歌云kubernetes

自动缩放谷歌云kubernetes,kubernetes,google-cloud-platform,openfaas,Kubernetes,Google Cloud Platform,Openfaas,我们有一个应用程序在谷歌云Kubernetes集群下运行,在我的测试场景中运行良好。我们为这些吊舱设置了自动缩放功能——我们可能永远不需要设置为0,但我们希望它可以放大到(目前)20个吊舱,然后再缩小,很明显。我们正在使用faas cli进行部署。首先,尝试: faas-cli deploy --replace --update=false -f ./process-listing-image.yml \ --gateway=https://openfaas.ihouseprd.com

我们有一个应用程序在谷歌云Kubernetes集群下运行,在我的测试场景中运行良好。我们为这些吊舱设置了自动缩放功能——我们可能永远不需要设置为0,但我们希望它可以放大到(目前)20个吊舱,然后再缩小,很明显。我们正在使用faas cli进行部署。首先,尝试:

faas-cli deploy --replace --update=false -f ./process-listing-image.yml \
    --gateway=https://openfaas.ihouseprd.com \
    --label "com.openfaas.scale.min=1" \
    --label "com.openfaas.scale.max=20" \
    --label "com.openfaas.scale.factor=5"
但那给了我们一个吊舱,而且从未移动过。建议使用:

faas-cli deploy --replace --update=false -f ./process-listing-image.yml \
    --gateway=https://openfaas.ihouseprd.com \
    --label "com.openfaas.scale.min=0" \
    --label "com.openfaas.scale.max=20" \
    --label "com.openfaas.scale.factor=5"
但那只给了我们一个豆荚。我最近试过:

faas-cli deploy --replace --update=false -f ./process-listing-image.yml \
    --gateway=https://openfaas.ihouseprd.com \
    --label "com.openfaas.scale.min=5" \
    --label "com.openfaas.scale.max=20" \
    --label "com.openfaas.scale.factor=5"
它产生了5个豆荚,但它还没有超过这个数量,尽管有数千个请求等待。查看云控制台的“部署详细信息”屏幕,我看到了五个pod,但无法判断这五个pod是否都正常工作


你知道为什么这些东西不能扩展吗?

你好,我正在复制你的问题,你能告诉我你运行的kubernetes是什么版本吗?是GKE还是您在计算引擎中使用kubeadm手动部署的?另外,分享pod部署资源需求,以及您如何运行负载测试?您好,当我试图重现您的问题时,您能告诉我您正在运行kubernetes的哪个版本吗?是GKE还是您在计算引擎中使用kubeadm手动部署的?另外,共享pod部署资源需求,以及如何运行负载测试?