harnessopts

package
v2.45.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package harnessopts defines user-facing entrypoints into Beam hooks affecting the SDK harness. Call these functions at any time before submitting your pipeline to a runner, for that pipeline's workers to be affected.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeapDumpFrequency added in v2.41.0

func HeapDumpFrequency(samplingFrequencySeconds, maxTimeBetweenDumpsSeconds int) error

HeapDumpFrequency sets the sampling frequency for how often the diagnostics service checks if it should take a heap dump and the maximum allowable time between heap dumps. Setting the sampling frequency to <=0 disables the heap dump checks. The default value for the sampling frequency is 1 second, the default max time is 60 seconds.

func SampleInterval

func SampleInterval(samplePeriod time.Duration) error

SampleInterval sets the sampling time period (greater than 1ms) for DoFn metrics sampling. Default value is 200ms.

func SideInputCacheCapacity

func SideInputCacheCapacity(capacity int64) error

SideInputCacheCapacity accepts a desired capacity for the side input cache. A non-zero positive integer enables the cache (the capacity of the cache is 0 by default.) Cache use also requires runner support.

Types

This section is empty.

Jump to

Keyboard shortcuts

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