Get available disk space information

Description

Should probably be in WsSMC or WsTopology?

This information is different to the information provided in pre-flight/topology as its specific to the drives where we store the logical files.

It should probably also include:

  • Dali space

  • Sasha space

Response should include the following information by target cluster / node group:

  • Disk usage (%) for each drive on each machine

Conclusion

None

Activity

Show:

Kanghua Wang February 7, 2019 at 3:48 PM
Edited

Also adding GetTargetClusterUsage(). The input is a list of HPCC target clusters. Adding GetNodeGroupUsage(). The input is a list of HPCC node groups.

Kanghua Wang February 6, 2019 at 10:27 PM

I am adding a WsMachine.GetComponentUsage. The input is a list of HPCC components with type/name (ThorCluster/mythor, DaliServerProcess/mydali, etc). Output will be the disk usages (InUse,  Available,  and PercentAvailable) for each log/data/mirror drive on each machine used by each component. The GetComponentUsage may be upgraded for memory usage and CPU usage later.

 

Kanghua Wang January 30, 2019 at 10:08 PM

The getDiskUsage helper function can only get local storage. We need a way to get storage (maybe other system information) from a remote machine.

Jacob Cobbett-Smith January 24, 2019 at 2:52 PM

A few comments:

1) No hard-wired paths should be used.

  • All paths should be determined by enquiring what component/system paths are used from the environment.
    I think there are already sufficient helper functions to do that, but if not, they should be extended so that the implementation of this feature is agnostic to the path locations.
    2) To get the free space itself, we have a getDiskUsage helper function (in jdebug) that can be used for local storage.
    (which uses statfs)

  • I think that will work for any mounted filesystem, and so it doesn't matter much whether it's a local drive or NAS storage somewhere.

Kanghua Wang January 24, 2019 at 1:45 PM

Thanks .

any comment?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Compatibility

Major

Fix versions

Pull Request URL

Created March 10, 2018 at 8:35 AM
Updated March 12, 2019 at 11:41 AM
Resolved February 25, 2019 at 11:44 AM