Giter Site home page Giter Site logo

hard disk full about powa-archivist HOT 2 CLOSED

powa-team avatar powa-team commented on August 18, 2024
hard disk full

from powa-archivist.

Comments (2)

rjuju avatar rjuju commented on August 18, 2024

Hi,
Indeed a change in the retention most likely won't lead to immediate disk release. The reason for that is that the purge is only done once every powa_coalesce snapshot.

One way to force immediate purge is you have access to the database is to get the list of purge functions for that server (I used here $the_srv_id instead):

SELECT  function_name
FROM powa_functions
WHERE operation='purge'
AND enabled
AND srvid = $the_srv_id
ORDER BY module;
       function_name
---------------------------
 powa_qualstats_purge
 powa_stat_bgwriter_purge
 powa_statements_purge
 powa_databases_purge
 powa_all_relations_purge
 powa_user_functions_purge
(6 rows)

And call them one by one, in the order return by that query. For instance with the above resultset you would have to run:

SELECT powa_qualstats_purge($the_srv_id);
SELECT powa_stat_bgwriter_purge($the_srv_id);
SELECT powa_statements_purge($the_srv_id);
SELECT powa_databases_purge($the_srv_id);
SELECT powa_all_relations_purge($the_srv_id);
SELECT powa_user_functions_purge($the_srv_id);

Repeat that for all the servers you want to apply an immediate purge.

It might be a good idea to add a way to force that via the UI for similar cases.

from powa-archivist.

rjuju avatar rjuju commented on August 18, 2024

I'm assuming that this answered your question. Feel free to reopen this issue if that wasn't the case.

from powa-archivist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.