Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The classification of functions (group_list.json) is manual for Node Margin Strategy #27

Open
ema-pe opened this issue Nov 28, 2024 · 0 comments
Labels
dfaas-agent Related to the agent component enhancement New feature or request

Comments

@ema-pe
Copy link
Collaborator

ema-pe commented Nov 28, 2024

The models in Node Margin Strategy require the number of requests per second expected for each feature group (high, medium, and low usage). This makes it possible to not train the models for each specific function, which is why there is a group_list.json file: it contains the list of functions for each group. The data is then used to calculate the number of predicted requests for each group, starting with the number of requests per second for each function in execution.

The current implementation is limited: the DFaaS agent is not responsible for classifying functions, but reads (see groupsreader.go the function groups from a static file (group_list.json). The file path can be specified using the AGENT_GROUP_LIST_FILE_NAME environment variable. This means that after the agent starts, the user can add (or remove) a function by editing the file (since the agent reads the contents each time GetFuncsGroups is called) and manually classifying the function.

We should improve this by automating the classification of a function and automatically updating this file when a new function is deployed.

@ema-pe ema-pe added enhancement New feature or request dfaas-agent Related to the agent component labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dfaas-agent Related to the agent component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant