Documentation
¶
Index ¶
- Constants
- Variables
- func Get(key string, defaultValue interface{}) interface{}
- func GetBool(key string, defaultValue bool) bool
- func GetFloat(key string, defaultValue float64) float64
- func GetInt(key string, defaultValue int) int
- func GetString(key string, defaultValue string) string
- func ReadConfiguration(fileName string)
- type RemoteServerConf
Constants ¶
const API_PORT = "api.port"
exposed port for serverledge APIs
const CACHE_CLEANUP = "cache.cleanup"
cache janitor interval (Seconds) : deletes expired items
const CACHE_ITEM_EXPIRATION = "cache.expiration"
default expiration time assigned to a cache item (Seconds)
const CACHE_SIZE = "cache.size"
cache capacity
const CLOUD_URL = "cloud.server.url"
REMOTE SERVER URL
const CONTAINER_EXPIRATION_TIME = "container.expiration"
container expiration time
const ETCD_ADDRESS = "etcd.address"
Etcd server hostname
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).
const IS_IN_CLOUD = "cloud"
true if the current server is a remote cloud server
const LISTEN_UDP_PORT = "registry.udp.port"
port for udp status listener
const METRICS_ENABLED = "metrics.enabled"
enable metrics system
const METRICS_PROMETHEUS_HOST = "metrics.prometheus.host"
const METRICS_PROMETHEUS_PORT = "metrics.prometheus.port"
const POOL_CLEANUP_PERIOD = "janitor.interval"
periodically janitor wakes up and deletes expired containers
const POOL_CPUS = "container.pool.cpus"
CPUs available for the container pool (1.0 = 1 core)
const POOL_MEMORY_MB = "container.pool.memory"
Amount of memory available for the container pool (in MB)
const REGISTRATION_TTL = "registry.ttl"
registration TTL in seconds
const REGISTRY_AREA = "registry.area"
the area wich the server belongs to
const REG_MONITORING_INTERVAL = "registry.monitoring.interval"
long period for general monitoring inside the area
const REG_NEARBY_INTERVAL = "registry.nearby.interval"
short period: retrieve information about nearby edge-servers
const SCHEDULER_QUEUE_CAPACITY = "scheduler.queue.capacity"
Capacity of the queue (possibly) used by the scheduler
const SCHEDULING_POLICY = "scheduler.policy"
Scheduling policy to use Possible values: "qosaware", "default", "cloudonly"
Variables ¶
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 ReadConfiguration ¶
func ReadConfiguration(fileName string)
ReadConfiguration reads a configuration file stored in one of the predefined paths.