Documentation
¶
Index ¶
Constants ¶
View Source
const ( ACTMapName = "cilium_lb_act" FCTMapName = "cilium_lb_fct" )
Variables ¶
View Source
var Cell = cell.Module( "active-connection-tracking", "eBPF map with counts of open-closed connections for each service-zone pair", cell.Provide(provide), cell.Invoke(configure), cell.Config(defaultConfig), )
Cell provides the ACTMap containing information about opened and closed connections to each service-zone pair.
Functions ¶
This section is empty.
Types ¶
type ACTIterator ¶
type ACTIterator func(*ActiveConnectionTrackerKey, *ActiveConnectionTrackerValue)
type ACTMap ¶
type ACTMap interface {
IterateWithCallback(context.Context, ACTIterator) error
Delete(*ActiveConnectionTrackerKey) error
SaveFailed(*ActiveConnectionTrackerKey, uint64) error
RestoreFailed(*ActiveConnectionTrackerKey) (uint64, error)
}
type ActiveConnectionTrackerKey ¶
type ActiveConnectionTrackerKey struct {
SvcID uint16 `align:"svc_id"`
Zone uint8 `align:"zone"`
Pad uint8 `align:"pad"`
}
ActiveConnectionTrackerKey is the key to ActiveConnectionTrackingMap.
It must match 'struct lb_act_key' in "bpf/lib/act.h".
func (*ActiveConnectionTrackerKey) New ¶
func (s *ActiveConnectionTrackerKey) New() bpf.MapKey
func (*ActiveConnectionTrackerKey) String ¶
func (v *ActiveConnectionTrackerKey) String() string
type ActiveConnectionTrackerValue ¶
type ActiveConnectionTrackerValue struct {
Opened uint32 `align:"opened"`
Closed uint32 `align:"closed"`
}
ActiveConnectionTrackerValue is the value in ActiveConnectionTrackingMap.
It must match 'struct lb_act_value' in "bpf/lib/act.h".
func (*ActiveConnectionTrackerValue) New ¶
func (s *ActiveConnectionTrackerValue) New() bpf.MapValue
func (*ActiveConnectionTrackerValue) String ¶
func (s *ActiveConnectionTrackerValue) String() string
type FailedConnectionTrackerValue ¶ added in v1.17.0
type FailedConnectionTrackerValue struct {
Failed uint32 `align:"failed"`
}
FailedConnectionTrackerValue is the value in FailedConnectionTrackingMap.
func (*FailedConnectionTrackerValue) New ¶ added in v1.17.0
func (s *FailedConnectionTrackerValue) New() bpf.MapValue
func (*FailedConnectionTrackerValue) String ¶ added in v1.17.0
func (s *FailedConnectionTrackerValue) String() string
Click to show internal directories.
Click to hide internal directories.