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

adds logic and endpoint to accelerate control server fetch interval #1105

Conversation

James-Pickett
Copy link
Contributor

No description provided.

@James-Pickett James-Pickett marked this pull request as ready for review March 16, 2023 20:20
@@ -129,8 +129,8 @@ func New(db *bbolt.DB, kolideServer string, opts ...LocalServerOption) (*localSe
// mux.Handle("/query", ls.requestQueryHandler())
// curl localhost:40978/scheduledquery --data '{"name":"pack:kolide_device_updaters:agentprocesses-all:snapshot"}'
// mux.Handle("/scheduledquery", ls.requestScheduledQueryHandler())
// curl localhost:40978/controlservicefetch
// mux.Handle("/controlservicefetch", ls.requestControlServiceFetch())
// curl localhost:40978/acceleratecontrol --data '{"interval":"250ms", "duration":"1s"}'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@blaedj please see the data in the example curl request here

Is there a standard format for time duration used by k2? or is the go style time.duration good?

Copy link
Contributor

Choose a reason for hiding this comment

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

No I don't think there is, we could make the go time.duration style work. This curl example - for 'real' use, we'll be making this request from javascript in the browser, do I understand that correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cool, thanks! yes, the curl is just an example we use for local testing. The real thing would be in a krypto NaCL box from the JS bridge

ee/control/control.go Outdated Show resolved Hide resolved
Copy link
Contributor

@directionless directionless left a comment

Choose a reason for hiding this comment

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

I'm generally fine with this. I think parts will shuffle around as we bring in more interfaces and kontext

cmd/launcher/control.go Show resolved Hide resolved
ee/control/control.go Outdated Show resolved Hide resolved
ee/control/control.go Outdated Show resolved Hide resolved
RebeccaMahany
RebeccaMahany previously approved these changes Mar 17, 2023
ee/control/control_test.go Show resolved Hide resolved
@James-Pickett James-Pickett merged commit 097d247 into kolide:main Mar 21, 2023
@James-Pickett James-Pickett deleted the james/localserver-control-data-fetch-interval branch March 21, 2023 14:40
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.

5 participants