[Thanos Store] Open file limit reached. What are our options #4650
Replies: 2 comments 1 reply
-
Is there a way to increase the open files limit in CF? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. It is indeeed not possible to increase the limit. We have done sharding now, but this makes only two weeks of data available. So for older time periods I would have to create a new store with another time period sharded right? This doesn't make it very scalable if you have to create new stores for every two weeks or so of data. Are there any other option that we could consider. Also, what is usualy a time frame for data to be available to query. I'm guessing with this setup it's not usual to have data be available forever? |
Beta Was this translation helpful? Give feedback.
-
Hi,
we are running HA thanos in a cloud foundry environment with each thanos component as a seperate app. On thanos store we had reached the open file limit earlier, and then deployed thanos compactor to reduce the number of files in object storage. This worked for a short while, and now we are hitting the open file limit again. We don't have the option of increasing the maximim open file descriptors since this limit is controlled by cloud foundry settings. The current setting is just over 16k. Below are out configs for thanos store and thanos compactor. Is there anything we misconfigured to hit this limit so fast. Currently there are about 15-20 prometheus instances sending data to thanos receiver and that data is stored in object storage. We have hit this limit within 3 months. Plans are for hundreds of prometheus instances to send their metrics to thanos so hitting the limit so fast with such small number of prometheus sender is problematic. Thanos should be able to handle very large amounts, so possibly there are some things configred wrong on our end. Below are the configs for both thanos store and thanos compactor.
The s3 bucket currently contains about 230GB of data and has around 110000 objects
[EDIT] Adding version info
Thanos store 0.21.1
Thanos compactor 0.22
Thanos store config
bucket_config.yml
Open file limit
Thanos compactor config
Error messages from thanos store
Beta Was this translation helpful? Give feedback.
All reactions