I have a small InfluxDB database running inside my K3S cluster.
As Storage Class I use Longhorn.
I know it's not optimal to run a database in Kubernetes, but this is only for some metric logging for Telegraf.
The problem is that in the pod the mounted volume is 200 MB big, but in Longhorn it's 2.5 GB big as actual size. The volume is only 1 day old. At this speed, my disk storage will be full soon.
Why is this? And is this something I can fix?
Longhorn Volume a lot bigger than mounted drive
1.3k Views Asked by Geert At
1
There are 1 best solutions below
Related Questions in INFLUXDB
- Creating and "Relating" variables with eachother, with tags from influxdb measurement on Grafana 10
- Is it possible to connect to the opensource self hosted InfluxDB OSS v2 to Apache Superset?
- database "telegraf" creation failed: 401 Unauthorized
- Influx write api catch exceptions
- Why does the InfluxDBClient.getBucketsApi().findBuckets() API method always return an empty list of buckets?
- Performance of loading Time and influxdb
- Observing Error in plugin: metric parse error: while executing the telegraf
- Influxdb data source in grafana shows "datasource is working. 0 measurements found"
- Send multiple timestamp fields in influxdb
- Influxdb - iteration through influxdb.resultset.ResultSet with tag field slow
- When I query with Flux in Grafana with InfluxDB, all columns except the time column are merged into a single column
- Custom timestamp from Influxdb-client Python to InfluxDBv2 not working
- InfluxDB v2 Setup C#
- TOML loading config error with my pattern
- Influxdb not sorting by time (cannot group float and string types together)
Related Questions in K3S
- k3s HA cluster and secrets encryption
- k3s change requested UDP port assignment
- How to Dynamically Deploy Kubernetes Pods Based on Node's Real-Time GPS Location?
- k3s Ingress not work in local server but works well on cloud services
- K3s and LoadBalancer service
- -bash: syntax error near unexpected token `newline' during K3S upgrade
- K3S Pod stuck in pending: "node(s) had volume node affinity conflict"
- Kubernetes Ingress Configuration. Influxdb webinterface only shows white screen
- kubernetes (k3s) ServiceAccount and Node Client: HTTP Error
- image attestation using Kyverno not working
- AWS EC2 routing traffic from an instance in a private subnet through an instance within a public subnet
- Why is ansible kubernetes not finding kube config while kubectl does
- Creating a k3s cluster with hostname instead of ip address
- How to use and S3 bucket for a website on K3S
- Start "Rocky Linux" container with systemd in the Jenkins K3s cluster
Related Questions in LONGHORN
- Longhorn node draining
- Longhorn RWX PVC Stuck Terminating
- longhorn-v1.3.1 RWX volume is significantly slower than RWO volume
- how to add annotations to kubernetes node using patch_file
- Prometheus + Longhorn = wrong volume size
- (Rancher) Longhorn too many refreshes / connections on dashboard
- Longhorn Volume a lot bigger than mounted drive
- Kubernetes way or Operator to clone PV between namespaces
- Longhorn using more than 50% of storage as reserved space
- Microk8s fails to AUTOMATICALLY mount pod on Longhorn
- How to configure disk for volumes for Longhorn
- Kubernetes Move from Persistent Volume
- Longhorn Volume Metrics not being exposed
- Longhorn backup/snapshot hooks
- longhorn and ebs and autoscaling group
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I suspect the reason for this is snapshots.
Longhorn volumes have different size "properties":
df -hinside an attached pod or use a tool like df-pv to check usage (this is relevant when your volume is getting full)Longhorn keeps a history of previous changes to a volume as snapshots. you can either create them manually from the UI or create a RecurringJob that does that for you automatically.
Having many snapshots is problematic when a lot of data is (re-)written to a volume. Imagine the following scenario:
There's also an ongoing discussion about reclaiming space automatically