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

RPS mode with cold/warm ratio #557

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

RPS mode with cold/warm ratio #557

wants to merge 30 commits into from

Conversation

cvetkovic
Copy link
Contributor

@cvetkovic cvetkovic commented Nov 15, 2024

  • Support for RPS mode
  • Reimplementation of individual trace driver
  • Specification generator bugfixing
  • Code stability improvement (a lot of new unit and integration tests)
  • Workload code deduplication
  • Knative deployment parallelization
  • Code moving and beautification

@cvetkovic cvetkovic changed the title RPS mode - new feature RPS mode with cold/warm ratio Nov 15, 2024
@cvetkovic
Copy link
Contributor Author

@leokondrashov: This is the last PR from the big one. Please have a look thoroughly at this once, since it affects the core functionality of the loader. After this one, I will follow up with a new one that will extract Dirigent-specific features/settings.

Copy link
Contributor

@leokondrashov leokondrashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should clarify the interpretation of the IAT array; only then can I check the driver and spec generation code. Right now, it seems inconsistent in the tests for RPS and trace modes.

pkg/trace/parser.go Outdated Show resolved Hide resolved
pkg/workload/openwhisk/workload_openwhisk.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
pkg/generator/rps_test.go Outdated Show resolved Hide resolved
pkg/common/specification_types.go Show resolved Hide resolved
pkg/generator/rps_test.go Outdated Show resolved Hide resolved
pkg/generator/specification.go Outdated Show resolved Hide resolved
pkg/generator/rps_test.go Show resolved Hide resolved
Signed-off-by: Lazar Cvetković <[email protected]>
Signed-off-by: Lazar Cvetković <[email protected]>
Signed-off-by: Lazar Cvetković <[email protected]>
Signed-off-by: Lazar Cvetković <[email protected]>
Signed-off-by: Lazar Cvetković <[email protected]>
Signed-off-by: Lazar Cvetković <[email protected]>
Signed-off-by: Lazar Cvetković <[email protected]>
Signed-off-by: Lazar Cvetković <[email protected]>
Copy link
Contributor

@leokondrashov leokondrashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked over test cases, I don't think they are right, the expected values don't make sense. I've proposed the solution, it should work as I outlined in the description.

pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/rps_test.go Show resolved Hide resolved
pkg/generator/specification.go Outdated Show resolved Hide resolved
Signed-off-by: Lazar Cvetković <[email protected]>
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification.go Outdated Show resolved Hide resolved
pkg/generator/specification.go Outdated Show resolved Hide resolved
Signed-off-by: Lazar Cvetković <[email protected]>
Copy link
Contributor

@leokondrashov leokondrashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor issues in the tests for the generator; otherwise, looks good. But I have concerns about the driver now. Since we are not necessarily hit the minute border, we should be careful how it is handled (especially, startOfMinute, previousIATSum, and minuteIndex for empty minutes)

pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/rps_test.go Outdated Show resolved Hide resolved
pkg/generator/rps.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
Copy link
Contributor

@leokondrashov leokondrashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor fixes in specification tests again. There is a change in the driver that is inconsistent with the rest of the code: experiment duration with second granularity. In the front-end we interpret experiment duration as seconds, but in driver, now, we try to interpret it as number of minutes. See the comment for functionsDriver.

pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/specification_test.go Outdated Show resolved Hide resolved
pkg/generator/rps_test.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
pkg/driver/trace_driver.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants