-
Notifications
You must be signed in to change notification settings - Fork 19
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
question about utilization log #6
Comments
Got a question in the same trend, as the utilization also goes over 1. I am using default components with a custom fuctionsim based on the invocation used for the skippy exeriment. To my (limited) knowledge, the functionsim in Raith21 seems to allow multiple parallel invocations on the same replica, causing a higher utilization. I tried using a lock, with a resource for each replica with a capacity of 1 to limit the concurrent execution (based on skippy exeriment). See code below. This still results in a utilization over 1. My question is: How can the concurrency of the invocation on the replicas be enforced using faas-sim? Initialization of Simpy resources for each replica. (functionsim.py init)
Locking based on resource capacity (functionsim.py invoke)
|
Hi, sorry for the late response. The reason for a seemingly too high utilization is caused by the time of utilization logging. Lines 396 to 405 in 1dbe97d
This leads to logging the execution of a function, before the corresponding We are currently restructuring the resource utilization model (this will entail a seperation of logging and utilization and puts the responsibility of claiming resources to the implementation of For now, I suggest you to remove the lines, that log & modify the current requests list, from Further, it may be normal for the utilization to go higher than expected. Line 104 in 1dbe97d
|
Thanks for the response! Manualy calling the logging worked. |
I ran the file ext/raith21/main.py and check the output dataFrame.
And I found something wrong with the values in the log file.
Some values for CPU and memory exceed 100 and even reach 500.
I used Pandas to analyze the data and the results are as follows, I don't know if I modified the program to cause the data recording error.
The text was updated successfully, but these errors were encountered: