4 ms·
Scalability isn't a well-defined term, and Prometheus isn't a database. :shrug:
by preseinger 4y ago
Scalability isn't a well-defined term, and Prometheus isn't a database. :shrug:
- dijit 4y agoWrong on both counts Sorry for being rude, but this level of ignorance is extremely frustrating.
- preseinger 4y agoIgnorance? I'm a core Prometheus contributor and a 20+ year distsys veteran. Prometheus is not a database, and scalability is not well-defined. These are not controversial statements.
- dijit 4y agoIt is extremely unbecoming to lie about who you are on this forum. Scalability is defined differently depending on context; in this context (a monitoring/time series solution) it is defined as being able to hold a dataset larger than a single machine that scales horizontally. Downsampling the data or transforming it does not meet that criteria, since that’s no longer the original data. The way Prometheus “scales” today is a bolt-on passthrough with federation. It’s not designed for it at all, and means that your query will use other nodes as data sources until it runs out of ram evaluating the query. Or not. The most common method of “scaling” Prometheus is making a tree; you can do that with anything (so it is not inherent to the technology, thus not a defining characteristic, if everything can be defined the same way then nothing can be- the term ceases to have meaning: https://valyala.medium.com/measuring-vertical-scalability-for-time-series-databases-in-google-cloud-92550d78d8ae https://valyala.medium.com/measuring-vertical-scalability-fo...) I’ll tell you how influx scales: your data is horizontally sharded across nodes, queries are conducted cross shards. That’s what scalability of the database layer is. Not fetching data from other nodes and putting it together yourself. Rehydrating from many datasets is not the storage system scaling: the collector layer doing the hydration is the thing that is scaling. If you sold me a solution that used Prometheus underneath but was distributed across all nodes, perhaps we could talk. But scalability is not a nebulous concept. You should refer to your own docs if you think Prometheus isn’t a database, it certainly contains one: https://prometheus.io/docs/prometheus/latest/storage/ https://prometheus.io/docs/prometheus/latest/storage/ I should add (and extremely frustratedly): if you’re not lying and you’re a core Prometheus maintainer, you should know this. I’m deeply embarrassed to be telling you this.
- preseinger 4y ago> in this context (a monitoring/time series solution) it is defined as being able to hold a dataset larger than a single machine that scales horizontally. This just isn't true :shrug: Horizontal scaling is one of many strategies.
- foota 4y agoI think the disconnect is that promethus helps a user to shard things, but it's not automatic. Other time series databases and monitoring solutions automatically distribute and query across servers. It's like postgres vs newswl (aka foundationdb, spanner, etc.,). While Prometheus supports sharding queries when a user sets it up, my understanding is that this has to be done manually, which is definitely less convenient. This is better than a hypothetical system that doesn't allow this at all, but still not the same as something that handles scaling magically.
- hiptobecubic 4y agoPrometheus supports sharding queries the way a screwdriver supports turning multiple screws at once. You can design a system yourself that includes the screwdriver, which will turn all the screws, but there's nothing inherent to the screwdriver that helps you with this. If "scalability" just means "you can use it to design something new from scratch that scales" then the term is pretty meaningless.