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

[Backport 2.9] Reject Personalize processor in ad hoc pipeline #186

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport 64355c7 from #183

If we create a search pipeline as part of a search request, each
processor gets created as part of the search request. Since the
Amazon Personalize ranking processor creates a client (with a connection
pool and credential provider), this could get expensive if someone sends
a flurry of search requests with inline (ad hoc) pipelines.

Also, when a pipeline is created, we create each processor as a way of
validating the configuration. At that point, we don't need to initialize
the Personalize client, since that processor will just get
garbage-collected.

Signed-off-by: Michael Froh <froh@amazon.com>
(cherry picked from commit 64355c7)
@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #186 (4205483) into 2.9 (692a000) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.9     #186      +/-   ##
============================================
+ Coverage     83.33%   83.39%   +0.06%     
- Complexity      333      334       +1     
============================================
  Files            42       42              
  Lines          1254     1259       +5     
  Branches        153      154       +1     
============================================
+ Hits           1045     1050       +5     
  Misses          132      132              
  Partials         77       77              
Files Changed Coverage Δ
...ntranking/PersonalizeRankingResponseProcessor.java 100.00% <100.00%> (ø)

@msfroh msfroh merged commit a099a4b into 2.9 Jul 27, 2023
15 checks passed
@msfroh msfroh deleted the backport/backport-183-to-2.9 branch July 27, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant