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

Generate decision ID using flowid generator #2926

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Conversation

Pushpalanka
Copy link
Collaborator

@Pushpalanka Pushpalanka commented Feb 12, 2024

In the results of the benchmark tests added in #2896, it was noticed UUID generation for OPA decision ID is consuming a considerable fraction(17.8%) of evaluation time as below.

Screenshot 2024-03-01 at 09 28 57

This PR makes use of existing flowID generator for decisionID generation, avoiding a syscall for UUID generation. The modification results in below graph where UUID generation is not prominent and overall evaluation time is reduce from 18.1% to 2.9%
Screenshot 2024-03-01 at 09 34 24

Makes use of open-policy-agent/opa-envoy-plugin#516 released with 0.62.0-envoy version.

cc: @mjungsbluth

Signed-off-by: Pushpalanka Jayawardhana <pushpalanka.jayawardhana@zalando.de>
…logic.

Signed-off-by: Pushpalanka Jayawardhana <pushpalanka.jayawardhana@zalando.de>
@Pushpalanka Pushpalanka marked this pull request as ready for review March 1, 2024 08:37
@AlexanderYastrebov AlexanderYastrebov added optimization minor no risk changes, for example new filters labels Mar 1, 2024
Signed-off-by: Pushpalanka Jayawardhana <pushpalanka.jayawardhana@zalando.de>
Signed-off-by: Pushpalanka Jayawardhana <pushpalanka.jayawardhana@zalando.de>
@AlexanderYastrebov
Copy link
Member

I think we'll update dependencies dependencies Pull requests that update a dependency file separately and then merge this one.

@AlexanderYastrebov
Copy link
Member

👍

1 similar comment
@szuecs
Copy link
Member

szuecs commented Mar 4, 2024

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor no risk changes, for example new filters optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants