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

feat: Daemon mode #424

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

numerical
Copy link

Issue

Related to #56
In order to have multiple chalk instances working together having a single chalk instance running in a dedicated daemon mode is a requirement. This is a first pass implementation of such a mode.

Description

Adds a daemon command that sets chalk into daemon mode. In daemon mode chalk will report on the host every period milliseconds.

This PR is simply a first pass implementation and future PRs will expand the functionality to set up a listening port that will allow other chalk instances to report to an instance running in daemon mode in order to batch chalk reporting

Testing

chalk daemon
chalk daemon -p 10000

Adds a new base command; daemon
Allows chalk to report over time (similar to exec)
but without requiring a binary for chalk to exec

Currently very slim but can be used as a jumping point
to add c&c for other chalk instances
@viega
Copy link
Contributor

viega commented Sep 27, 2024

@miki725 Just FYI, approved the outside contribution to run tests, but seems to lead to some permissions issues; certainly none of the tests ran.

Copy link
Contributor

@viega viega left a comment

Choose a reason for hiding this comment

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

This all looks good, and definitely in line with work we need to be doing, so thanks for this.

I'm impressed you managed to figure out on your own some of the warts like the current need for the null section. Would be really happy to talk about where you wanted to take this next; we have a lot of options / thoughts.

In the meantime, I'm goof for this to merge myself. Definitely need to address the testing situation, and if Miro has feedback, ofc. But other than that, if it rebases cleanly, it's spot on for what we need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants