Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricRequeueServiceCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "", Subsystem: "", Name: "requeue_service_total", Help: "A metric that captures the number of times a service is requeued after failing to sync"}, []string{ "name", }, )
MetricRequeueServiceCount is the number of times a particular service has been requeued.
View Source
var MetricSyncServiceCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "", Subsystem: "", Name: "sync_service_total", Help: "A metric that captures the number of times a service is synced"}, []string{ "name", }, )
MetricSyncServiceCount is the number of times a particular service has been synced.
View Source
var MetricSyncServiceLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: "", Subsystem: "", Name: "sync_service_latency_seconds", Help: "The latency of syncing a service", Buckets: prometheus.ExponentialBuckets(.1, 2, 15)}, []string{"name"}, )
MetricSyncServiceLatency is the time taken to sync a service with the OVN load balancers.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller manages selector-based service endpoints.
func NewController ¶
func NewController(client clientset.Interface, serviceInformer coreinformers.ServiceInformer, endpointSliceInformer discoveryinformers.EndpointSliceInformer, loadBalancer LoadBalancer, ) *Controller
NewController returns a new *Controller.
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stopCh <-chan struct{}) error
Run will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.
type LB ¶
LB represents a LoadBalancer object with one frontend [IP:Port] and Protocol and several backends as IP:Port
type LoadBalancer ¶
LoadBalancer
Click to show internal directories.
Click to hide internal directories.