...

Package api_monitoring

import "scheduler/api/api_monitoring"
Overview
Index

Overview ▾

Package api_monitoring implements all the handlers of all the apis called for monitoring the nodes, like for example probing.

Constants

const ApiMonitoringLoadHeaderKey = "X-P2PFaaS-Load"
const ApiMonitoringMaxLoadHeaderKey = "X-P2PFaaS-MaxLoad"
const ApiMonitoringQueueLengthHeaderKey = "X-P2PFog-Queue-Length"

func LoadGetLoad

func LoadGetLoad(w http.ResponseWriter, r *http.Request)

Retrieve the load of the machine.

func ScaleDelay

func ScaleDelay(w http.ResponseWriter, r *http.Request)

Measure the time of scaling a service.