defaults

package
v0.0.0-...-562dc98 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_VESPA_HOME = "/opt/vespa"
	DEFAULT_VESPA_USER = "vespa"
	DEFAULT_VESPA_HOST = "localhost"

	DEFAULT_VESPA_PORT_BASE      = 19000
	CONFIGSERVER_RPC_PORT_OFFSET = 70
	CONFIGPROXY_RPC_PORT_OFFSET  = 90
	DEFAULT_WEB_SERVICE_PORT     = 8080
)

Variables

This section is empty.

Functions

func UnderVespaHome

func UnderVespaHome(p string) string

func VespaConfigProxyRpcAddr

func VespaConfigProxyRpcAddr() string

Find the RPC address to the local config proxy Returns one RPC spec in the format tcp/{hostname}:{portnumber}

func VespaConfigSourcesRpcAddrs

func VespaConfigSourcesRpcAddrs() []string

Get the RPC addresses to all known config sources Returns same as vespaConfigProxyRpcAddr + vespaConfigserverRpcAddrs

func VespaConfigserverHosts

func VespaConfigserverHosts() []string

Find the hostnames of configservers that are configured.

func VespaConfigserverRestUrls

func VespaConfigserverRestUrls() []string

Find the URLs to the REST api on configservers Returns a list of URLS in the format http://{hostname}:{portnumber}/

func VespaConfigserverRpcAddrs

func VespaConfigserverRpcAddrs() []string

Find the RPC addresses to configservers that are configured. Returns a list of RPC specs in the format tcp/{hostname}:{portnumber}

func VespaContainerWebServicePort

func VespaContainerWebServicePort() int

Compute the port number where the Vespa webservice container should be available.

func VespaHome

func VespaHome() string

Compute the path prefix where Vespa files will live. Note: does not end with "/"

func VespaHostname

func VespaHostname() string

Compute the host name that identifies myself. Detection of the hostname is now done before starting any Vespa programs and provided in the environment variable VESPA_HOSTNAME; if that variable isn't set a default of "localhost" is always returned.

func VespaLogFile

func VespaLogFile() string

func VespaPortBase

func VespaPortBase() int

Compute the base for port numbers where the Vespa services should listen.

func VespaUser

func VespaUser() string

Compute the user name to own directories and run processes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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