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

fix(remote): remote type check and pod invocation #1577

Merged
merged 3 commits into from Jan 4, 2021
Merged

Conversation

deepankarm
Copy link
Member

@deepankarm deepankarm commented Jan 2, 2021

This needs to be fixed to make jina-ai/jinad#78 work. jinad checks will still fail with this PR.

@deepankarm deepankarm requested a review from a team as a code owner January 2, 2021 08:54
@jina-bot jina-bot added size/S area/core This issue/PR affects the core codebase area/network This issue/PR affects network functionality area/testing This issue/PR affects testing component/peapod labels Jan 2, 2021
@jina-bot jina-bot added the area/setup This issue/PR affects setting up Jina label Jan 2, 2021
@github-actions
Copy link

github-actions bot commented Jan 2, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 1742, delta to last 3 avg.: +5%
  • 😶 query QPS at 27, delta to last 3 avg.: +4%

Breakdown

Version Index QPS Query QPS
current 1742 27
0.8.21 1597 24
0.8.20 1660 27
0.8.19 1707 26

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

@codecov
Copy link

codecov bot commented Jan 2, 2021

Codecov Report

Merging #1577 (067aee2) into master (0445070) will increase coverage by 0.35%.
The diff coverage is 58.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1577      +/-   ##
==========================================
+ Coverage   84.08%   84.44%   +0.35%     
==========================================
  Files         128      128              
  Lines        6587     6660      +73     
==========================================
+ Hits         5539     5624      +85     
+ Misses       1048     1036      -12     
Impacted Files Coverage Δ
jina/peapods/runtimes/ssh/__init__.py 38.46% <33.33%> (+1.61%) ⬆️
jina/peapods/runtimes/jinad/__init__.py 55.00% <50.00%> (ø)
jina/peapods/runtimes/jinad/api.py 54.19% <66.66%> (+1.29%) ⬆️
jina/logging/sse.py 94.28% <0.00%> (-1.03%) ⬇️
jina/jaml/helper.py 92.30% <0.00%> (-0.86%) ⬇️
jina/logging/profile.py 69.84% <0.00%> (-0.56%) ⬇️
jina/executors/decorators.py 91.11% <0.00%> (-0.17%) ⬇️
jina/drivers/craft.py 100.00% <0.00%> (ø)
jina/types/ndarray/generic.py 100.00% <0.00%> (ø)
... and 17 more

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 9eb55b1...067aee2. Read the comment docs.

@deepankarm deepankarm marked this pull request as draft January 2, 2021 12:50
@deepankarm deepankarm marked this pull request as ready for review January 4, 2021 06:56
@deepankarm deepankarm changed the title fix(remote): remote type check fix(remote): remote type check and pod invocation Jan 4, 2021
@deepankarm
Copy link
Member Author

https://github.com/jina-ai/jinad/pull/78/checks?check_run_id=1643055891
jinad@fix-runtime-refactotring works with this branch.

Comment on lines +34 to +38
if isinstance(args, Dict):
# This is used when a Pod is created in a remote context, where peas & their connections are already given.
self.peas_args = args
else:
self.peas_args = self._parse_args(args)
Copy link
Member

Choose a reason for hiding this comment

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

when is dict used? inside JinadRuntime sending this to jinad?

Copy link
Member Author

Choose a reason for hiding this comment

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

https://github.com/jina-ai/jina/blob/master/jina/peapods/runtimes/jinad/__init__.py#L28

before sending these args, they're converted to dict & on the receiving end, jinad converts dict to argparse

@hanxiao hanxiao merged commit 35139e9 into master Jan 4, 2021
@hanxiao hanxiao deleted the fix-jinad-api branch January 4, 2021 10:44
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/network This issue/PR affects network functionality area/setup This issue/PR affects setting up Jina area/testing This issue/PR affects testing component/peapod size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants