common

package
v2.0.0-...-796fd71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlobfuseStats     = "blobfuse_stats"
	FileCacheMon      = "file_cache_monitor"
	CpuProfiler       = "cpu_profiler"
	MemoryProfiler    = "memory_profiler"
	CpuMemoryProfiler = "cpu_mem_profiler"
	NetworkProfiler   = "network_profiler"

	BfuseMon = "bfusemon"

	OutputFileName      = "monitor"
	OutputFileExtension = "json"
	OutputFileCount     = 10
	OutputFileSizeinMB  = 10
)
View Source
const BfuseMonitorVersion = "1.0.0-preview.1"

Variables

View Source
var (
	Pid             string
	BfsPollInterval int
	ProcMonInterval int

	NoBfsMon       bool
	NoCpuProf      bool
	NoMemProf      bool
	NoNetProf      bool
	NoFileCacheMon bool

	TempCachePath string
	MaxCacheSize  float64
	OutputPath    string

	CheckVersion bool
)
View Source
var DefaultLogFile = filepath.Join(DefaultWorkDir, "bfuseMonitor.log")
View Source
var DefaultWorkDir = "$HOME/.blobfuse2"

Functions

func CheckProcessStatus

func CheckProcessStatus(pid string) error

check whether blobfuse2 process is running for the given pid

func MonitorPid

func MonitorPid()

check blobfuse2 pid status at every second

Types

type CacheEvent

type CacheEvent struct {
	CacheEvent      string            `json:"cacheEvent"`
	Path            string            `json:"path"`
	IsDir           bool              `json:"isDir"`
	CacheSize       int64             `json:"cacheSize"`
	CacheConsumed   string            `json:"cacheConsumed"`
	CacheFilesCnt   int64             `json:"cacheFilesCount"`
	EvictedFilesCnt int64             `json:"evictedFilesCount"`
	Value           map[string]string `json:"value"`
}

type CpuMemStat

type CpuMemStat struct {
	CpuUsage string
	MemUsage string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL