-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
refactor: moving jinad into daemon module of the core #1610
Conversation
hanxiao
commented
Jan 6, 2021
•
edited
Loading
edited
- code
- test
- Dockerfile
- setup
- README (entrypoint changed, will rewrite in the next PR)
- API docs generation
- GH workflows
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
def _start_fluentd(): | ||
daemon_logger.info('starting fluentd') | ||
cfg = pkg_resources.resource_filename('jina', 'resources/fluent.conf') | ||
subprocess.Popen(['fluentd', '-c', cfg]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fluentd also ships as a daemon (td-agent), which means we can have systemctl manage it along with jinad. We can avoid having fluentd
invocation inside python code, as this makes jinad
unusable without fluentd
command.
https://github.com/jina-ai/jinad/blob/main/scripts/deb-systemd.sh#L49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's handle this as another PR. right now it is too ahead to put systemctl
together, the goal of this PR is to make the jinad usable in CICD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw,
curl -L https://raw.githubusercontent.com/jina-ai/jinad/main/scripts/deb-systemd.sh | bash
this is good, but later will make it shorter, something like curl -L https://daemon-sh.jina.ai | bash
Codecov Report
@@ Coverage Diff @@
## master #1610 +/- ##
==========================================
+ Coverage 83.98% 84.95% +0.96%
==========================================
Files 127 126 -1
Lines 6652 6648 -4
==========================================
+ Hits 5587 5648 +61
+ Misses 1065 1000 -65
Continue to review full report at Codecov.
|