#sre - December 2019

December 2019
Steve Boardwell
Steve Boardwellalmost 7 years ago
Hey @Erik Osterman (Cloud Posse) here is a slightly biased, coming from the core developer 😉 of Victoria Metrics, comparison with Thanos.

“Comparing Thanos to VictoriaMetrics cluster” by Aliaksandr Valialkin https://link.medium.com/ltvYvhvrj2
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
This is great! Thanks for sharing @Steve Boardwell!
erik
erikalmost 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
IMO this is the downside. Why be in the business of managing EBS disks.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
I like the simpler architecture of VictoriaMetrics, but the big appeal for me regarding Thanos was the S3 backend. Basically, "set it and forget it"
Chris Fowles
Chris Fowlesalmost 7 years ago
yeh S3 for storage is a much lower ops burden and much more straight forward to lifecycle - the last thing i want my ops tooling to do is unduly increase the burden of operations
Chris Fowles
Chris Fowlesalmost 7 years ago
i'd be interested to see cortex in that comparison
Steve Boardwell
Steve Boardwellalmost 7 years ago
Great points - I hadn't considered the overhead involved in managing the EBS disks. Cortex looks interesting as well, thanks Chris.
Nelson Jeppesen
Nelson Jeppesenalmost 7 years ago
Anyone aware of a tool that can take kubernetes action based on prometheus alerts/metrics?
Nelson Jeppesen
Nelson Jeppesenalmost 7 years ago
I'd like to kill a pod when it stops processing, which is tracked by a prometheus metric
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Depending on what you want to achieve this can do that: https://github.com/weaveworks/flagger
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Or use something like https://github.com/stefanprodan/k8s-prom-hpa to scale replicas to zero
Nelson Jeppesen
Nelson Jeppesenalmost 7 years ago(edited)
Thank you Erik. I don't think HPA autoscaler will help, because I don't want to scale to zero, I just want the pods replaced/restarted. I'll take a look at flagger, but I'm not sure if I can use it to kill/restart the pod
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
@Nelson Jeppesen it sounds like it maybe be better describe the problem you’re trying to solve than the technical implementation of a solution
Nelson Jeppesen
Nelson Jeppesenalmost 7 years ago(edited)
Ok thats a very good point. I have some logstash pods. Between 2 and 20 days, the pod will stop processing logs (writing to elasticsearch). We alert on this and kill the pods manualy. As of yet, we've not be able to figure out why this happens as we see no errors
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
For example, “we have a problem with our application where the services stop responding processing customer orders. The health checks are all okay, but if we look at prometheus we see it is no longer doing anything. If we restart the service, everything is fine. So I want to implement something that restarts our service based on metrics in Prometheus”