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:
- Generate data and force the server to store segments in persistent cache using following command: elvxc stress warmup -c stress.json
- Generate load against the segments that are saved in persistent cache using following command: elvxc stress run -c stress.json
Index ¶
- Constants
- func AnalyseLog(cmdRoot *cobra.Command) error
- func InitMux(cmdRoot *cobra.Command) error
- func InitTranscode(cmdRoot *cobra.Command) error
- func Probe(cmdRoot *cobra.Command) error
- func WarmupStress(cmdRoot *cobra.Command) error
- type AVCmdMuxInputOpener
- type AVCmdMuxOutputOpener
- type LogAnalyser
- type LogEventType
- type RequestType
- type TestDescriptor
- type TestResource
- type TestStats
Constants ¶
View Source
const ( Unknown = iota XcVideoStart XcVideoDone XcAudioStart XcAudioDone )
View Source
const MaxIdleConnections = 100
Variables ¶
This section is empty.
Functions ¶
func AnalyseLog ¶
func InitTranscode ¶
func WarmupStress ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.