• DJH
    2018-12-14
    请教一个问题:对于多POD的应用(如多副本的deployment),假设配置了根据CPU使用率进行自动水平伸缩(HPA),那么HPA执行水平伸缩的依据是各个POD中CPU使用率平均值还是最高值?另外HPA探测到多少次CPU高于设置值才会开始伸缩?CPU使用率探测的频率又是多久一次呢?
    
     3
  • William
    2018-12-24
    请问能否实现跨node的水平扩展?
    
     2
  • 虎虎❤️
    2018-12-16
    HPA 通过 HorizontalPodAutoscaler 配置要访问的 Custom Metrics, 来决定如何scale。
    Custom Metric APIServer 的实现其实是一个Prometheus 的Adaptor,会去Prometheus中读取某个Pod/Servicce的具体指标值。比如,http request的请求率。
    Prometheus 通过 ServiceMonitor object 配置需要监控的pod和endpoints,来确定监控哪些pod的metrics。
    应用需要实现/metrics, 来响应Prometheus的数据采集请求。

    留给自己的思考,Pod 的 metrics endpoint 如何对应到http_requests 这个指标的?
    展开
    
     2
  • manatee
    2019-12-18
    请问下老师,扩容好理解就是加容器,那缩容的话如何实现呢,怎么保证在删除容器的时候容器上的请求不受影响呢
    
     1
  • 剑走偏锋
    2019-01-04
    就为了做自定义业务指标的监控,我们也做了水晶桥(Crystal Bridge)项目开源在github上了。思路是自采通过annotations公开的promethus指标,然后推往prometheus GW,最后再由上层prometheus来采集。

    今天这种让HPA通过自定义指标来完成扩容/缩容操作的技术设计的确很棒,学习了,感谢。
    
     1
  • 单朋荣
    2019-10-22
    Warning FailedGetObjectMetric 1m (x13 over 7m) horizontal-pod-autoscaler unable to get metric http_requests: Service on default sample-metrics-app/unable to fetch metrics from custom metrics API: the server could not find the metric http_requests for services
      Warning FailedComputeMetricsReplicas 1m (x13 over 7m) horizontal-pod-autoscaler failed to get object metric value: unable to get metric http_requests: Service on default sample-metrics-app/unable to fetch metrics from custom metrics API: the server could not find the metric http_requests for services
    遇到一个问题,求解决思路。。
    展开
    
    
  • yzw
    2019-08-06
    老师,对于没有证书的kubernetes集群,修改prometheus的什么参数可以保证访问采用的是不安全方式呢?我的kubernetes集群是v1.11.2,prometheus是kube-prometheus:v0.1.0,谢谢解答
    
    
  • suke
    2019-06-20
    老师 我在自己的集群上实验了一下http_requests的监控,servicemonitor和相关的hpa,以及相关的权限绑定都部署了,pod里也实现了 /meteics 接口 ,但是hpa的在线配置里提示service on xx xxxx/object metrics are not yet supported,请问您大概知道我因为什么才导致的这个问题么,网上也没查到相关的解释
    
    
  • stan
    2018-12-20
    请张老师帮忙解惑,对于多实例应用,采集 service暴露的指标才是正确的做法,这句怎么理解?采集每个pod对应的指标不好吗,service后面对应的api无法确认来自哪个pod吧?数据可能忽大忽小,如果采集到一个刚刚hpa的pod指标,数据可能更小,这样应该没有采集每个pod,然后平均值来的更精确吧?类似对于cpu 的hpa,就是采集的每个pod的指标然后做平均值
    
    
  • DJH
    2018-12-14
    还有个问题请教一下,PVC属性里的读写属性ReadWriteMany指的是多个pod之间可以同时读写?同一个pod的多个容器之间算同时读写吗?
    
    
  • A-
    2018-12-14
    请教一个问题,如何才能保证pod原地重启。不论是升级还是断电。
     1
    
我们在线,来聊聊吧