cmd

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

This module is designed to generate stress load on one/multiple avpipe server persistent cache. Generating load test on a server persistent cache has two phases:

  1. Generate data and force the server to store segments in persistent cache using following command: elvxc stress warmup -c stress.json
  2. Generate load against the segments that are saved in persistent cache using following command: elvxc stress run -c stress.json

Index

Constants

View Source
const (
	Unknown = iota
	XcVideoStart
	XcVideoDone
	XcAudioStart
	XcAudioDone
)
View Source
const MaxIdleConnections = 100

Variables

This section is empty.

Functions

func AnalyseLog

func AnalyseLog(cmdRoot *cobra.Command) error

func InitMux

func InitMux(cmdRoot *cobra.Command) error

func InitTranscode

func InitTranscode(cmdRoot *cobra.Command) error

func Probe

func Probe(cmdRoot *cobra.Command) error

func WarmupStress

func WarmupStress(cmdRoot *cobra.Command) error

Types

type AVCmdMuxInputOpener

type AVCmdMuxInputOpener struct {
	URL string
}

func (*AVCmdMuxInputOpener) Open

func (inputOpener *AVCmdMuxInputOpener) Open(fd int64, url string) (goavpipe.InputHandler, error)

type AVCmdMuxOutputOpener

type AVCmdMuxOutputOpener struct {
}

Implement AVPipeOutputOpener

func (*AVCmdMuxOutputOpener) Open

func (outputOpener *AVCmdMuxOutputOpener) Open(filename string, fd int64, outType goavpipe.AVType) (goavpipe.OutputHandler, error)

type LogAnalyser

type LogAnalyser struct {
	// contains filtered or unexported fields
}

type LogEventType

type LogEventType int

type RequestType

type RequestType int
const (
	UnknownABRSegment RequestType = iota
	VideoABRSegment
	AudioABRSegment
	HLSPlaylistVideo
	HLSPlaylistAudio
)

type TestDescriptor

type TestDescriptor struct {
	TestResources []TestResource `json:"test_resources"`
	NumSessions   int            `json:"n_sessions"`
	NumRepeats    int            `json:"n_repeats"`
}

type TestResource

type TestResource struct {
	ReqType     string  `json:"request_type"`
	SegDuration float32 `json:"duration"`
	URLBase     string  `json:"url_base"`
	URLId       string  `json:"url_id"`
	StartId     int     `json:"start_id"`
	EndId       int     `json:"end_id"`
	URLParam    string  `json:"url_param"`
	// contains filtered or unexported fields
}

type TestStats

type TestStats struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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