8000 refactor: return_responses to post by JoanFM · Pull Request #4496 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: return_responses to post #4496

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

Merged
merged 3 commits into from
Mar 16, 2022
Merged

refactor: return_responses to post #4496

merged 3 commits into from
Mar 16, 2022

Conversation

JoanFM
Copy link
Contributor
@JoanFM JoanFM commented Mar 16, 2022

Pull Request Title

Description

Please describe what your PR is doing and why. Are there any parts which need extra attention during review? Are there any dependencies from other PRs or projcts? Is this a breaking change?

Is this PR ready or work in progress (WIP)? Ready means it can be reviewed and merged from the author's perspective. If the PR is WIP: Make it a draft PR and state open questions and TODO items.

Closes # (issue)

@github-actions github-actions bot added size/S area/core This issue/PR affects the core codebase component/client labels Mar 16, 2022
@codecov
Copy link
codecov bot commented Mar 16, 2022

Codecov Report

Merging #4496 (cb0f14d) into master (efff154) will decrease coverage by 0.18%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4496      +/-   ##
==========================================
- Coverage   87.72%   87.53%   -0.19%     
==========================================
  Files         116      116              
  Lines        8458     8466       +8     
==========================================
- Hits         7420     7411       -9     
- Misses       1038     1055      +17     
Flag Coverage Δ
daemon 43.24% <7.69%> (-0.05%) ⬇️
jina 87.29% <100.00%> (+0.41%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/__init__.py 67.46% <100.00%> (ø)
jina/clients/mixin.py 93.25% <100.00%> (+0.66%) ⬆️
jina/serve/networking.py 71.31% <0.00%> (-11.85%) ⬇️
jina/orchestrate/pods/jinad.py 93.07% <0.00%> (-1.54%) ⬇️
jina/orchestrate/pods/__init__.py 89.93% <0.00%> (+0.62%) ⬆️
jina/serve/runtimes/gateway/http/__init__.py 100.00% <0.00%> (+2.43%) ⬆️
jina/orchestrate/deployments/__init__.py 84.81% <0.00%> (+2.95%) ⬆️
jina/orchestrate/deployments/config/helper.py 94.82% <0.00%> (+8.62%) ⬆️
...rate/deployments/config/k8slib/kubernetes_tools.py 100.00% <0.00%> (+21.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7c2c35...cb0f14d. Read the comment docs.

@github-actions
Copy link
github-actions bot commented Mar 16, 2022

Latency summary

Current PR yields:

  • 🐎🐎🐎🐎 index QPS at 1224, delta to last 2 avg.: +30%
  • 🐎🐎🐎🐎 query QPS at 53, delta to last 2 avg.: +51%
  • 🐢🐢 avg flow time within 1.3344 seconds, delta to last 2 avg.: -24%
  • 🐢🐢 import jina within 0.408 seconds, delta to last 2 avg.: -24%

Breakdown

Version Index QPS Query QPS Avg Flow Time (s) Import Time (s)
current 1224 53 1.3344 0.408
3.2.2 953 35 1.7353 0.5322
3.2.1 918 34 1.7881 0.5479

Backed by latency-tracking. Further commits will update this comment.

@JoanFM JoanFM marked this pull request as ready for review March 16, 2022 12:31
Copy link
Contributor
@JohannesMessner JohannesMessner left a comment

Choose a reason for hiding this comment

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

Looks good, but the documentation needs changes as well: https://docs.jina.ai/fundamentals/flow/client/#returning-results-from-post

Joan Fontanals Martinez and others added 2 commits March 16, 2022 13:47
Co-authored-by: Johannes Messner <44071807+JohannesMessner@users.noreply.github.com>
@github-actions github-actions bot added the area/docs This issue/PR affects the docs label Mar 16, 2022
@JoanFM JoanFM requested a review from JohannesMessner March 16, 2022 13:28
@JoanFM JoanFM merged commit 0554140 into master Mar 16, 2022
@JoanFM JoanFM deleted the return_responses_in_post branch March 16, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/docs This issue/PR affects the docs component/client size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

return_response should be a "post"-time parameter instead of init-time parameter
2 participants
0