Summary: statistics call in xlator fops
Submitted by: avati
Submitted on: Thursday 08/03/2006 at 14:53
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Missing Feature
Assigned to: None
Operating System: GNU/Linux
Each xlator should expose a statistics call which will provide statistics
like # of open files via that xlator, # of clients connecting via it etc..
translator should appropriately pick the child statistics, mangle it and
expose it to its caller.
1. add new OP in glustersf_op_t
2. use the OP for transaction with glusterfsd (add handler for that OP in
3. populate structure with members like #of files
4. the 'source' of most of statistics is posix, generate statistics like disk
speed in the init() of posix and keep statistics local to posix.
some initial statistics members -
# of open files
free disk space
disk speed (one time calculation)
# of client nodes (to be filled by glusterfsd) if glusterfsd is not in path
it would be 0