Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] Esmond/Cassandra maintenance

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] Esmond/Cassandra maintenance


Chronological Thread 
  • From: "Garnizov, Ivan (RRZE)" <>
  • To: "perfsonar-user ()" <>
  • Subject: [perfsonar-user] Esmond/Cassandra maintenance
  • Date: Mon, 27 Apr 2015 14:29:28 +0000
  • Accept-language: en-GB, de-DE, en-US

Dear perfSONAR developers,

 

Would there elsewhere be available procedures for Esmond/Cassandra database maintenance:

 

·         Ability to backup and restore the collected measurements.

·         Ability to cleanup database:

o   For a specific host

o   For a period of time or for a specific date

 

Please note that the procedure below is missing in the FAQ (it might be useful for somebody). Still it does not quite cover what I am looking for.

 

 

Best regards,

Ivan

 

 

 

From: [mailto:] On Behalf Of Andrew Lake
Sent: Wednesday, March 18, 2015 1:51 PM
To: Pedro Henrique Diniz Da Silva
Cc:
Subject: Re: [perfsonar-user] How to clean esmond/perfsonar/archive ????

 

Hi,

 

If you don't want to wait for teh GUI to clear things out after a few days. You can do the following:

 

1. Download the config file attached to the host with the data you want deleted

 

2. Run the following commands to delete everything older than 2 days on the host with the data you want deleted:

 

cd /opt/esmond

source /opt/rh/python27/enable

. bin/activate

python ./util/ps_remove_data.py -c clear_data.conf

 

In the last command you will likely need to change clear_data.conf to the full path of the file you downloaded from this email. If you want to change the time range, adjust the '"expire":          "2"' line in the file to be another value (the value is in days).

 

Hope that helps,

Andy

 

On Mar 17, 2015, at 10:42 AM, Pedro Henrique Diniz Da Silva <> wrote:



Dears,

On the "Throughput / Latency Graphs" page (https://ps02.cat.cbpf.br/serviceTest/psGraph.cgi) I have a lot of tests that aren't being handled anymore.

In http://ps02.cat.cbpf.br/esmond/perfsonar/archive/?format=json I can see all of them, but how could I erase them?

Cheers,
Pedro Diniz



  • [perfsonar-user] Esmond/Cassandra maintenance, Garnizov, Ivan (RRZE), 04/27/2015

Archive powered by MHonArc 2.6.16.

Top of Page