config

package
v1.0.0-percom23 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const API_PORT = "api.port"

exposed port for serverledge APIs

View Source
const CACHE_CLEANUP = "cache.cleanup"

cache janitor interval (Seconds) : deletes expired items

View Source
const CACHE_ITEM_EXPIRATION = "cache.expiration"

default expiration time assigned to a cache item (Seconds)

View Source
const CACHE_SIZE = "cache.size"

cache capacity

View Source
const CLOUD_URL = "cloud.server.url"

REMOTE SERVER URL

View Source
const CONTAINER_EXPIRATION_TIME = "container.expiration"

container expiration time

View Source
const ETCD_ADDRESS = "etcd.address"

Etcd server hostname

View Source
const FACTORY_REFRESH_IMAGES = "factory.images.refresh"

Forces runtime container images to be pulled the first time they are used, even if they are locally available (true/false).

View Source
const IS_IN_CLOUD = "cloud"

true if the current server is a remote cloud server

View Source
const LISTEN_UDP_PORT = "registry.udp.port"

port for udp status listener

View Source
const METRICS_ENABLED = "metrics.enabled"

enable metrics system

View Source
const METRICS_PROMETHEUS_HOST = "metrics.prometheus.host"
View Source
const METRICS_PROMETHEUS_PORT = "metrics.prometheus.port"
View Source
const POOL_CLEANUP_PERIOD = "janitor.interval"

periodically janitor wakes up and deletes expired containers

View Source
const POOL_CPUS = "container.pool.cpus"

CPUs available for the container pool (1.0 = 1 core)

View Source
const POOL_MEMORY_MB = "container.pool.memory"

Amount of memory available for the container pool (in MB)

View Source
const REGISTRATION_TTL = "registry.ttl"

registration TTL in seconds

View Source
const REGISTRY_AREA = "registry.area"

the area wich the server belongs to

View Source
const REG_MONITORING_INTERVAL = "registry.monitoring.interval"

long period for general monitoring inside the area

View Source
const REG_NEARBY_INTERVAL = "registry.nearby.interval"

short period: retrieve information about nearby edge-servers

View Source
const SCHEDULER_QUEUE_CAPACITY = "scheduler.queue.capacity"

Capacity of the queue (possibly) used by the scheduler

View Source
const SCHEDULING_POLICY = "scheduler.policy"

Scheduling policy to use Possible values: "qosaware", "default", "cloudonly"

Variables

View Source
var DefaultConfigFileName = "serverledge-conf"

Functions

func Get

func Get(key string, defaultValue interface{}) interface{}

Get returns the configured value for a given key or the specified default.

func GetBool

func GetBool(key string, defaultValue bool) bool

func GetFloat

func GetFloat(key string, defaultValue float64) float64

func GetInt

func GetInt(key string, defaultValue int) int

func GetString

func GetString(key string, defaultValue string) string

func ReadConfiguration

func ReadConfiguration(fileName string)

ReadConfiguration reads a configuration file stored in one of the predefined paths.

Types

type RemoteServerConf

type RemoteServerConf struct {
	Host string
	Port int
}

Jump to

Keyboard shortcuts

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