GithubHelp home page GithubHelp logo

Comments (5)

awicenec avatar awicenec commented on July 23, 2024

from ngas.

rtobar avatar rtobar commented on July 23, 2024

The janitor thread actually already checks the disk space:

def run(srvObj, stopEvt):
"""
Check if there is enough disk space for the various
directories defined.
"""
try:
srvObj.checkDiskSpaceSat()
except Exception:
logger.exception("Not enough disk space, bringing the system Offline")
# Connect to the server and send an OFFLINE command
host, port = srvObj.get_self_endpoint()
auth = None
if srvObj.getCfg().getAuthorize():
auth = srvObj.getCfg().getAuthHttpHdrVal(NGAMS_HTTP_INT_AUTH_USER)
client = ngamsPClient.ngamsPClient(host, port, timeout=30, auth=auth)
client.offline(force=True)

But the only thing it does is bring the server to Offline state if the disk is full, there's no flag clearing. Apart from the options that Andreas mentioned, I'd say adding some extra logic wouldn't hurt. If we wanted to be conservative we could have a new option to enable the behavior.

from ngas.

smclay avatar smclay commented on July 23, 2024

@awicenec I am using the NGAS DISCARD command for removing old files and retrieving disk space. Therefore making changes in the DISCARD command would work for us.
@rtobar adding an extra config property to enable new functionality in the janitor to update the completion status of disks would also work for us.
Basically either solution would be great. Anything that avoids manually poking in the database would help us a lot.

from ngas.

awicenec avatar awicenec commented on July 23, 2024

from ngas.

awicenec avatar awicenec commented on July 23, 2024

from ngas.

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.