-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorials
agarciandia edited this page Sep 30, 2025
·
1 revision
To enable the user application to define application requirements, also known as functional requirements, it should allow the user to specify preferences for the orchestration of resources where the function will be offloaded. This will empower users to customize and optimize the resource allocation based on their specific needs.
The meaning of the available requirements is the following:
- FLAVOUR: It is a string that describes the flavour of the runtime. It is mandatory to set this requirement as it is used to define in which type of serverless runtime will the functions be executed in terms of dependencies and computing resources.
- MAX_LATENCY: It defines the maximun latency that the user application will tolerate when offloading a function. It is an integer optional parameter that, when it is established, it will select the Edge Cluster with the least latency. Therefore, the COGNIT framework is currently a best effort service.
- MAX_FUNCTION_EXECUTION_TIME: It is a float optional requirement that sets the max execution time allowed for the offloaded function.
- MIN_ENERGY_RENEWABLE_USAGE: An integer optional requirement that sets the minimum energy renewable percentage to be used when executing the function.
- GEOLOCATION: It is a mandatory requirement as it is used to select the nearest Edge Cluster for the user application if the MAX_LATENCY requirement is not set. This parameter is composed of a dictionary with two keys ("latitude" and "longitude") that have to be filled with float values.
The way to set these requirements is demonstrated in this example