8000 docs: daemon in readme by deepankarm · Pull Request #3122 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs: daemon in readme #3122

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
Aug 11, 2021
Merged

docs: daemon in readme #3122

merged 3 commits into from
Aug 11, 2021

Conversation

deepankarm
Copy link
Contributor
@deepankarm deepankarm commented Aug 9, 2021

Community feedback: JinaD docs are missing in readme.
In this PR, added a section in tutorials about JinaD
image

@deepankarm deepankarm requested review from hanxiao and a team as code owners August 9, 2021 09:43
@deepankarm deepankarm requested a review from jacobowitz August 9, 2021 09:43
@github-actions github-actions bot added size/M area/housekeeping This issue/PR is housekeeping labels Aug 9, 2021
@deepankarm deepankarm requested a review from alexcg1 August 9, 2021 09:45
@codecov
Copy link
codecov bot commented Aug 9, 2021

Codecov Report

Merging #3122 (27c9f1f) into master (b7a1cf7) will decrease coverage by 0.15%.
The diff coverage is n/a.

❗ Current head 27c9f1f differs from pull request most recent head 66e6fa6. Consider uploading reports for the commit 66e6fa6 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3122      +/-   ##
==========================================
- Coverage   89.25%   89.10%   -0.16%     
==========================================
  Files         145      145              
  Lines        9928     9928              
==========================================
- Hits         8861     8846      -15     
- Misses       1067     1082      +15     
Flag Coverage Δ
daemon 43.25% <ø> (+0.01%) ⬆️
jina 89.09% <ø> (-0.16%) ⬇️

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

Impacted Files Coverage Δ
jina/clients/base/grpc.py 63.82% <0.00%> (-6.39%) ⬇️
jina/hubble/hubio.py 59.53% <0.00%> (-4.02%) ⬇️
jina/peapods/runtimes/gateway/prefetch.py 93.15% <0.00%> (-1.37%) ⬇️
jina/hubble/helper.py 85.51% <0.00%> (ø)
jina/peapods/runtimes/gateway/http/__init__.py 100.00% <0.00%> (+2.85%) ⬆️

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 b7a1cf7...66e6fa6. Read the comment docs.

@github-actions
Copy link
github-actions bot commented Aug 9, 2021

Latency summary

Current PR yields:

  • 🐢🐢 index QPS at 1321, delta to last 2 avg.: -6%
  • 🐢🐢 query QPS at 26, delta to last 2 avg.: -23%
  • 🐢🐢 dam extend QPS at 44678, delta to last 2 avg.: -25%
  • 🐢🐢 avg flow time within 1.8384 seconds, delta to last 2 avg.: +1%
  • 🐎🐎 import jina within 0.3681 seconds, delta to last 2 avg.: +6%

Breakdown

Version Index QPS Query QPS DAM Extend QPS Avg Flow Time (s) Import Time (s)
current 1321 26 44678 1.8384 0.3681
2.0.16 1423 34 62953 1.8195 0.3324
2.0.15 1395 33 56670 1.8114 0.3568

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

@deepankarm
Copy link
Contributor Author

@hanxiao this needs your approval

Copy link
Member
@alexcg1 alexcg1 left a comment

Choose a reason for hiding this comment

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

Looking good! Just a few small tweaks from my end


You wouldn't need to create remote Peas/Pods directly yourself. You can use the below code by passing `host` & `port_expose` to an executor with the Flow. Internally it uses `JinaD` for remote management.
You wouldn't need to create remote Peas/Pods directly yourself. You can use the below code by passing `host` & `port_expose` to an executor with a Flow. Internally it uses `JinaD` for remote management.
Copy link
Member

Choose a reason for hiding this comment

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

  • Executor
  • Do we mention Peas/Pods elsewhere? I thought they were mostly invisible to users now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Advanced concepts for JinaD would still need to separate Peas from Pods, hence need to be defined separately. I'm changing the top-level name to Executor

<details>
<summary><strong>Create a Flow (<a href="https://api.jina.ai/daemon/#operation/_create_flows_post">redoc</a>)</strong></summary>

This creates a new container using the base image & network defined by `workspace_id` & starts a Flow inside the container. Only the ports needed for external communication are mapped to local. Make sure you've added all your config files while creating the workspace in the previous step.
Copy link
Member

Choose a reason for hiding this comment

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

  • Let's stick to "and" instead of "&" for consistency

<details>
<summary>Example response</summary>

```text
Copy link
Member

Choose a reason for hiding this comment

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

Can we have JSON syntax highlight?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This actually returns a python dict, and adding json highlighting in the markdown looks weird for python dict.

- ☁️ `JinaD`: manage & deploy Jina on remote
- [Server & Client](.github/2.0/cookbooks/Daemon.md#jinad-daemon)
- [Remote Executors](.github/2.0/cookbooks/Daemon.md#restful-executors)
- [Remote Flows](.github/2.0/cookbooks/Daemon.md#restful-flows)
- 📓 [Developer Reference](https://docs.jina.ai)
- 🧼 [Clean & Efficient Coding in Jina](.github/2.0/cookbooks/CleanCode.md)
Copy link
Member

Choose a reason for hiding this comment

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

Just to be clear, I'm fine with "&" in bullet links (keeps them short). Only in paragraphs let's expand to "and"

jacobowitz
jacobowitz previously approved these changes Aug 10, 2021
Copy link
Contributor
@jacobowitz jacobowitz left a comment

Choose a reason for hiding this comment

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

👍

alexcg1
alexcg1 previously approved these changes Aug 10, 2021
Copy link
Member
@alexcg1 alexcg1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

hanxiao
hanxiao previously approved these changes Aug 11, 2021
@hanxiao hanxiao dismissed stale reviews from alexcg1, jacobowitz, and themself via 66e6fa6 August 11, 2021 05:36
@hanxiao hanxiao merged commit 7358924 into master Aug 11, 2021
@hanxiao hanxiao deleted the docs-daemon-readme branch August 11, 2021 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/housekeeping This issue/PR is housekeeping size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0