- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Cleaning up CM logs
- Labels:
-
Cloudera Manager
Created on 03-13-2014 07:28 AM - edited 09-16-2022 01:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My disks are filling up from files in /var/lib/cloudera-service-monitor/ts
1) What it safe to delete and is this done manually or is there a CM way to clean up?
2) What CM config controlls the amount of data produced here?
3) What does "ts" stand for?
Created 03-13-2014 10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, 10 GB is the minimum value here, and yes both the Host Monitor and Service Monitor have a setting like this.
So yes, the VM hosting your Service Monitor needs a volume to hold this store which will grow to approximately 10 GB over time. So does the VM hosting your Host Monitor. If it's the same VM, then you'd need 20 GB on that node. Note that things will perform much better if the Host Monitor and Service Monitor storage directories are on different volumes.
Created 03-13-2014 08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"ts" stands for Time Series. This is where the Service Monitor role in the Management Service stores data for Time Series information. You can configure retention policies in the configuraiton of your Service Monitor role. There's also a page to help you understand the disk usage in detail, as described below:
| Time-Series Storage firehose_time_series_storage_bytes | 10 GiB |
The approximate amount of disk space dedicated to storing time series and health data. Once the store has reached its maximum size older data will be deleted to make room for newer data. The disk usage is approximate because we only begin deleting data once we've reached the limit. |
Created 03-13-2014 10:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2147483648 is less than the minimum allowed value 10737418240
Created 03-13-2014 10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, 10 GB is the minimum value here, and yes both the Host Monitor and Service Monitor have a setting like this.
So yes, the VM hosting your Service Monitor needs a volume to hold this store which will grow to approximately 10 GB over time. So does the VM hosting your Host Monitor. If it's the same VM, then you'd need 20 GB on that node. Note that things will perform much better if the Host Monitor and Service Monitor storage directories are on different volumes.
Created 05-21-2014 03:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
came across this post as i am having the same issue with the /var partition being at 100% full.
is it possible to delete older *.ts files from command prompt? aside from cleaning up /var/log, what else can i do?
thanks in advance, terry
Created 07-23-2015 02:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am facing a similair issue, is there a definitive way of clearing up old ts files?
thanks
Created 09-01-2015 02:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created 09-01-2015 08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
that CM consumes in these directories via the Time-Series Storage
configuration of HMON and SMON. There's a 10 GB minimum for both,
meaning you can expect 20 GB to be consumed by these two roles
eventually.
It is possible, though discouraged to set a lower limit, though you
have to use the cmon.conf safety valve. You can enter a number of
bytes to use as a maximum -- something like below where XXX is the
number of bytes. This requires an SMON or HMON restart, but it should
very quickly cleanup to the limit specified. Again, this is something
we don't really test with outside of some dev clusters, so proceed
with caution.
firehose_time_series_storage_bytes
XXX
chris
Created 09-01-2015 08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Chris. I'll have a look.
Created 03-08-2019 05:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This worked for me, the snipped below is an example for limiting the diskspace to 5gb
<property>
<name>firehose_time_series_storage_bytes</name>
<value>5368709120</value>
</property>