etcdio

package
v2.19.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

The etcdio package provides utilities to manage etcd I/O.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoEtcdProcess is returned when no etcd process is found on the node.
	ErrNoEtcdProcess = errors.New("no etcd process found on node")
	// ErrMultipleEtcdProcesses is returned when multiple etcd processes are found on the node.
	ErrMultipleEtcdProcesses = errors.New("multiple etcd processes found on node")
)

Functions

This section is empty.

Types

type Client

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

Client is a client for managing etcd I/O.

func NewClient

func NewClient(log *slog.Logger) *Client

NewClient creates a new etcd I/O management client.

func (*Client) PrioritizeIO

func (c *Client) PrioritizeIO()

PrioritizeIO tries to prioritize the I/O of the etcd process. Since it might be possible that the process just started (if this method is called right after the kubelet started), it retries to do its work each second until it succeeds or the timeout of 10 seconds is reached.

Jump to

Keyboard shortcuts

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