-
Notifications
You must be signed in to change notification settings - Fork 103
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
adds logic and endpoint to accelerate control server fetch interval #1105
Conversation
@@ -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"}' |
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.
@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?
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.
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?
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.
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
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.
I'm generally fine with this. I think parts will shuffle around as we bring in more interfaces and kontext
No description provided.