Documentation ¶
Overview ¶
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Index ¶
- Constants
- Variables
- func AssignSubCluster(job *schema.BaseJob) error
- func DecodeCluster(r io.Reader) (*schema.Cluster, error)
- func DecodeJobData(r io.Reader, k string) (schema.JobData, error)
- func DecodeJobMeta(r io.Reader) (*schema.JobMeta, error)
- func EncodeJobData(w io.Writer, d *schema.JobData) error
- func EncodeJobMeta(w io.Writer, d *schema.JobMeta) error
- func GetCluster(cluster string) *schema.Cluster
- func GetMetricConfig(cluster, metric string) *schema.MetricConfig
- func GetStatistics(job *schema.Job) (map[string]schema.JobStatistics, error)
- func GetSubCluster(cluster, subcluster string) (*schema.SubCluster, error)
- func GetSubClusterByNode(cluster, hostname string) (string, error)
- func Init(rawConfig json.RawMessage, disableArchive bool) error
- func LoadAveragesFromArchive(job *schema.Job, metrics []string, data [][]schema.Float) error
- func UpdateMetadata(job *schema.Job, metadata map[string]string) error
- func UpdateTags(job *schema.Job, tags []*schema.Tag) error
- type ArchiveBackend
- type FsArchive
- func (fsa *FsArchive) Clean(before int64, after int64)
- func (fsa *FsArchive) CleanUp(jobs []*schema.Job)
- func (fsa *FsArchive) Compress(jobs []*schema.Job)
- func (fsa *FsArchive) CompressLast(starttime int64) int64
- func (fsa *FsArchive) Exists(job *schema.Job) bool
- func (fsa *FsArchive) GetClusters() []string
- func (fsa *FsArchive) ImportJob(jobMeta *schema.JobMeta, jobData *schema.JobData) error
- func (fsa *FsArchive) Info()
- func (fsa *FsArchive) Init(rawConfig json.RawMessage) (uint64, error)
- func (fsa *FsArchive) Iter(loadMetricData bool) <-chan JobContainer
- func (fsa *FsArchive) LoadClusterCfg(name string) (*schema.Cluster, error)
- func (fsa *FsArchive) LoadJobData(job *schema.Job) (schema.JobData, error)
- func (fsa *FsArchive) LoadJobMeta(job *schema.Job) (*schema.JobMeta, error)
- func (fsa *FsArchive) Move(jobs []*schema.Job, path string)
- func (fsa *FsArchive) StoreJobMeta(jobMeta *schema.JobMeta) error
- type FsArchiveConfig
- type JobContainer
- type NLExprIntRange
- type NLExprIntRanges
- type NLExprString
- type NodeList
- type S3Archive
- type S3ArchiveConfig
Constants ¶
const Version uint64 = 1
Variables ¶
var Clusters []*schema.Cluster
Functions ¶
func AssignSubCluster ¶
AssignSubCluster sets the `job.subcluster` property of the job based on its cluster and resources.
func GetCluster ¶
func GetMetricConfig ¶
func GetMetricConfig(cluster, metric string) *schema.MetricConfig
func GetStatistics ¶
func GetSubCluster ¶
func GetSubCluster(cluster, subcluster string) (*schema.SubCluster, error)
func GetSubClusterByNode ¶
func LoadAveragesFromArchive ¶
Helper to metricdata.LoadAverages().
func UpdateMetadata ¶ added in v1.3.0
If the job is archived, find its `meta.json` file and override the Metadata in that JSON file. If the job is not archived, nothing is done.
Types ¶
type ArchiveBackend ¶
type ArchiveBackend interface { Init(rawConfig json.RawMessage) (uint64, error) Info() Exists(job *schema.Job) bool LoadJobMeta(job *schema.Job) (*schema.JobMeta, error) LoadJobData(job *schema.Job) (schema.JobData, error) LoadClusterCfg(name string) (*schema.Cluster, error) StoreJobMeta(jobMeta *schema.JobMeta) error ImportJob(jobMeta *schema.JobMeta, jobData *schema.JobData) error GetClusters() []string CleanUp(jobs []*schema.Job) Move(jobs []*schema.Job, path string) Clean(before int64, after int64) Compress(jobs []*schema.Job) CompressLast(starttime int64) int64 Iter(loadMetricData bool) <-chan JobContainer }
func GetHandle ¶
func GetHandle() ArchiveBackend
type FsArchive ¶
type FsArchive struct {
// contains filtered or unexported fields
}
func (*FsArchive) CompressLast ¶
func (*FsArchive) GetClusters ¶
func (*FsArchive) Iter ¶
func (fsa *FsArchive) Iter(loadMetricData bool) <-chan JobContainer
func (*FsArchive) LoadClusterCfg ¶
func (*FsArchive) LoadJobData ¶
func (*FsArchive) LoadJobMeta ¶
type FsArchiveConfig ¶
type FsArchiveConfig struct {
Path string `json:"path"`
}
type NLExprIntRange ¶
type NLExprIntRange struct {
// contains filtered or unexported fields
}
type NLExprIntRanges ¶
type NLExprIntRanges []NLExprIntRange
type NLExprString ¶
type NLExprString string
type NodeList ¶
type NodeList [][]interface {
// contains filtered or unexported methods
}
func ParseNodeList ¶
type S3ArchiveConfig ¶
type S3ArchiveConfig struct {
Path string `json:"filePath"`
}