On 21 November 2016 at 11:40, Martin Schröder <
mar...@oneiros.de> wrote:
>
> we are using prometheus for ca. 40 machines with a retention
> period of two weeks (all other storage settings are defaults)
> and see that our prometheus server creates a huge number of
> files (>1 million) as storage.
Yes. This is deliberate design.
> How do others cope with this?
The only time we had trouble with this at SoundCloud was when we
changed our filesystem default to ext4 with number of inodes on the
low side (to save overhead). So we create partitons for Prometheus
with a higher inode count. The default setting is usually enough
(which was also our benchmark when we made the design decision for
"one file per time series').
There are situations of extreme churn (like deploy a service with many
instances every half hour or something), but in that case, you run
into other problems (e.g. with indexing), too.
--
Björn Rabenstein, Engineer
http://soundcloud.com/brabenstein
SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany
Managing Director: Alexander Ljung | Incorporated in England & Wales
with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
HRB 110657B