perfsonar-user - Re: [perfsonar-user] Re: Central MA database size snuck up on me
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Casey Russell <>
- To: "Uhl, George D. (GSFC-423.0)[SGT INC]" <>
- Cc: "" <>, "Noss, Martyn J. (GSFC-420.0)[InuTeq, LLC]" <>
- Subject: Re: [perfsonar-user] Re: Central MA database size snuck up on me
- Date: Mon, 28 Aug 2017 08:46:28 -0500
- Ironport-phdr: 9a23:yjtjmx8u6dwc+P9uRHKM819IXTAuvvDOBiVQ1KB22+kcTK2v8tzYMVDF4r011RmSDNWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//57ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMNboRr4oRzut86ZrSAfpiCgZMT457HrXgdF0gK5CvR6tuwBzz4vSbY6bLvp+er7Wc80cS2RPQ81dUzVND4O5Y4YJEuEPP/tXr5PlqlQMoxuwBQeiCuDyxDFWmnD7xrc13/g7HAzcwAAsA9ADvXLJp9v1LqcSVuW1wbHWwDrZdPNZxzf845XUfBA8uvGMRqx/cc7VyUIyEA7Kkk+QqZH+PzOOyOsNt2yb4vFjVe21jW4nsR9+oj61yscqlIbJmpsYx1bZ/it3x4Y1IMe3SE99YdO8FJtQtieaN4hoTcw/QmFovjw2xaEBuZ6+ZCQK1Jomxx/Da/ybbYeI+AjvW/qWITd9nH5lYKywhwy88Ui7ze38UNO70ExQoipDjNbMqmgB1x/J5ciBUPty4EGh1SyJ1w/N9uFJJ10/m6nDK5M53LI9l4YfvEbGEy/4m0j5l7Oae0Ar9+S09+jofrDrqYOAO4J3jwzzN7oil8KhDek+LwMARXKU+f6m273m5UD5QKtFjvkxkqTBtZDVP8UbpqqgDw9IyIkv9w+zDji43NkWg3ULNl1FeBWAj4jmP1HBPur0Auu4g1SpiDtrxvbGMaP9ApjVMHTOkavtcLR45k5Sywc81sxT6pdbB70dPP78Rkr8u8DEAhI6NgG5xvjrBdtj2o8GXGKAGK6ZMKfcsV+S4eIvJvGBa5MPuDbgMPgl/ODhjXs9mVIGfqmmx50XaGqmEfRgOUmZZ2TjgssZHWcQogU+VPDqiEGFUTNLf3a9Qbg85j8gCIKhC4fMXJqtjKWc3CegAJJWfHtLClSNEXfza4WEQOkAZDiTIs9njjwLS6KhS4k/2hGyqgP20aRoIffJ+n5QiZW2nuV146mbuhw17zN5R+jbmyGidE9f2z9SHHlunZNEjnA163Go5OIw1/NVEsZc6rVFFBo6MbbaxvdzTd/1RFSSUM2OTQONS86rEHkLU8kqztsKKxJ2Aci5lR3H2wKpCrkPmrrNApEopPGPl0PtLtpwni6VnJIqiEMrF44WbTCr
I’ve had the same problem where I’ve run out of disk space to support my Central MA database but I’m getting an odd error and the script is failing:
# /usr/lib/esmond/util/ps_
remove_data.py cassandra_db [INFO] Checking/creating column families
cassandra_db [INFO] Schema check done
cassandra_db [DEBUG] Opening ConnectionPool
cassandra_db [INFO] Connected to ['localhost:9160']
Error: [Errno 2] No such file or directory: 'p'
# du -h /var/lib/cassandra/data/
esmond/ 25G /var/lib/cassandra/data/
esmond/raw_data 7.6G /var/lib/cassandra/data/
esmond/base_rates 4.0K /var/lib/cassandra/data/
esmond/stat_aggregations 5.0G /var/lib/cassandra/data/
esmond/rate_aggregations 37G /var/lib/cassandra/data/
esmond/
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_archive2-lv_
root 50G 47G 385M 100% /
tmpfs 3.9G 4.0K 3.9G 1% /dev/shm
/dev/sda1 477M 167M 285M 37% /boot
/dev/mapper/vg_archive2-lv_
home
69G 22G 44G 33% /home
Thanks,George
From: <> on behalf of Casey Russell <>
Date: Wednesday, August 9, 2017 at 5:59 PM
To: "" <>
Subject: [perfsonar-user] Re: Central MA database size snuck up on me
Sorry, I should have mentioned. Following Andrew's hint, I did go back and look, and because this is a toolkit install, the cron job was installed and running, and should have been running periodically to keep the database from growing out of control. However, reviewing the logfile at /var/log/perfsonar/clean_esmond_db.log reveals that it has been failing with this error for as far back as my logs go each time it tries to run.
It had fooled me initially because the "Error: timed out" line doesn't appear as the last line in that log file, it's a few lines up from the bottom, so a cursory review of that logfile looks like it ran cleanly.
On Wed, Aug 9, 2017 at 4:55 PM, Casey Russell <> wrote:
Group,
I've now shut down the central MA and more than doubled the size of the Disk (root volume). So it's no longer a issue of raw space. But still the ps_remove_data.py won't run to completion. I get somewhere from 10 to 30 minutes in (it seems to vary) and it ends with something like the following:
Deleted 1 rows for metadata_key=189be3bd15fb482a91f2bfb9524c4473, event_type=histogram-rtt, summary_type=aggregation, summary_window=3600 Sending request to delete 1 rows for metadata_key=189be3bd15fb482a91f2bfb9524c4473, event_type=histogram-rtt, summary_type=statistics, summary_window=3600 Deleted 1 rows for metadata_key=189be3bd15fb482a91f2bfb9524c4473, event_type=histogram-rtt, summary_type=statistics, summary_window=3600 Sending request to delete 11 rows for metadata_key=189be3bd15fb482a91f2bfb9524c4473, event_type=histogram-ttl-rever se, summary_type=base, summary_window=0 Deleted 11 rows for metadata_key=189be3bd15fb482a91f2bfb9524c4473, event_type=histogram-ttl-rever se, summary_type=base, summary_window=0 Sending request to delete 11 rows for metadata_key=189be3bd15fb482a91f2bfb9524c4473, event_type=packet-count-lost-b idir, summary_type=base, summary_window=0 Error: Retried 1 times. Last failure was timeout: timed out
None of these:/var/log/esmond/esmond.log/var/log/cassandra/cassandra.log /var/log/httpd/access_log/var/log/https/error_log
appear to contain anything interesting when the problem occurs. I've tried running a manual compaction with nodetool in case there were simply so many tombstones hanging out there that it was causing cassandra or Java/Http a problem in processing, didn't make any difference. Anyone have any thoughts on anything else I should try (adjusting cassandra config file settings, etc.) before I just delete this database and start it fresh?
On Wed, Jul 26, 2017 at 10:15 AM, Casey Russell <> wrote:
Group,
I dug myself a hole and I only see a couple of ways out now. I wasn't watching the database size on my central MA and my disk utilization is now over 90%. I've tried using the ps_remove_data.py script several times with several different variations on the config script, but it will invariably end some minutes or hours later with a timeout like this:
Sending request to delete 24 rows for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=histogram-rtt, summary_type=aggregation, summary_window=3600 Deleted 24 rows for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=histogram-rtt, summary_type=aggregation, summary_window=3600 Query error for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=histogram-rtt, summary_type=base, summary_window=0, begin_time=0, expire_time=1485529380 Query error for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=histogram-rtt, summary_type=statistics, summary_window=0, begin_time=0, expire_time=1485529380 Sending request to delete 24 rows for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=histogram-rtt, summary_type=statistics, summary_window=3600 Deleted 24 rows for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=histogram-rtt, summary_type=statistics, summary_window=3600 Query error for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=histogram-ttl-rever se, summary_type=base, summary_window=0, begin_time=0, expire_time=1469545381 Query error for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=packet-count-lost-b idir, summary_type=base, summary_window=0, begin_time=0, expire_time=1469545381 Query error for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=packet-duplicates-b idir, summary_type=base, summary_window=0, begin_time=0, expire_time=1469545503 Sending request to delete 24 rows for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=packet-loss-rate-bi dir, summary_type=aggregation, summary_window=3600 Deleted 24 rows for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=packet-loss-rate-bi dir, summary_type=aggregation, summary_window=3600 Query error for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=packet-loss-rate-bi dir, summary_type=base, summary_window=0, begin_time=0, expire_time=1469545505 Query error for metadata_key=1bdb8f32fe9d4194828d134f37fb37b0, event_type=packet-reorders-bid ir, summary_type=base, summary_window=0, begin_time=0, expire_time=1469545509 Sending request to delete 6 rows for metadata_key=1be4b626486c46be88776b3530819ce8, event_type=packet-count-lost, summary_type=base, summary_window=0 Deleted 6 rows for metadata_key=1be4b626486c46be88776b3530819ce8, event_type=packet-count-lost, summary_type=base, summary_window=0 Sending request to delete 6 rows for metadata_key=1be4b626486c46be88776b3530819ce8, event_type=packet-count-lost, summary_type=base, summary_window=0 Error: Retried 1 times. Last failure was timeout: timed out
[root@ps-dashboard esmond]# du -h /var/lib/cassandra/data/esmond/ 47G /var/lib/cassandra/data/esmond/raw_data 4.0K /var/lib/cassandra/data/esmond/stat_aggregations 9.9G /var/lib/cassandra/data/esmond/rate_aggregations 13G /var/lib/cassandra/data/esmond/base_rates 69G /var/lib/cassandra/data/esmond/
[root@ps-dashboard esmond]# df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup-lv_root95G 82G 8.1G 91% /tmpfs 3.9G 4.0K 3.9G 1% /dev/shm/dev/sda1 477M 99M 353M 22% /boot
At the time of the "timeout" as I watch, the disk reaches 100% utilization. It appears to me that during the deletion of rows, Cassandra/Esmond uses chunks of disk space to store temporary data, and flushes that data. During the process the disk utilization varies up and down from 91% to 100% until it finally reaches full and the timeout error occurs.
At the end of the failed attempt, even if I restart cassandra, the disk space utilization is approximately what it was before the failed run.
So, without enough disk space to finish the ps_remove_data.py script, it would appear to me, I have two options. Delete all my data and start over with a clean database, or shut the machine down and allocate more space to it (it's a VM, but I can't add the space "hot").
Before I take one of those approaches, does anyone else have other ideas or thoughts?
- [perfsonar-user] Re: Central MA database size snuck up on me, Casey Russell, 08/09/2017
- [perfsonar-user] Re: Central MA database size snuck up on me, Casey Russell, 08/09/2017
- Re: [perfsonar-user] Re: Central MA database size snuck up on me, Uhl, George D. (GSFC-423.0)[SGT INC], 08/28/2017
- Re: [perfsonar-user] Re: Central MA database size snuck up on me, Casey Russell, 08/28/2017
- Re: [perfsonar-user] Re: Central MA database size snuck up on me, Uhl, George D. (GSFC-423.0)[SGT INC], 08/28/2017
- Re: [perfsonar-user] Re: Central MA database size snuck up on me, Casey Russell, 08/28/2017
- Re: [perfsonar-user] Re: Central MA database size snuck up on me, Uhl, George D. (GSFC-423.0)[SGT INC], 08/28/2017
- [perfsonar-user] Re: Central MA database size snuck up on me, Casey Russell, 08/09/2017
Archive powered by MHonArc 2.6.19.