Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Add federation to Cook REST API #30

Open
dgrnbrg opened this issue Sep 18, 2015 · 7 comments
Open

Add federation to Cook REST API #30

dgrnbrg opened this issue Sep 18, 2015 · 7 comments
Assignees

Comments

@dgrnbrg
Copy link
Contributor

dgrnbrg commented Sep 18, 2015

Here's an example of what the config file could look like:

 :federation {:remotes ["http://localhost:12322"]
              :priviledged-principal "admin"
              :threads 4
              :circuit-breaker {:failure-threshold 0
                                :lifetime-ms 60000
                                :response-timeout-ms 60000
                                :reset-timeout-ms 60000
                                :failure-logger-size 10000}}
@leifwalsh
Copy link
Contributor

What's the work item here?

@dgrnbrg
Copy link
Contributor Author

dgrnbrg commented Oct 6, 2015

GET and DELETE should federate between instances of the Cook scheduler.

@leifwalsh
Copy link
Contributor

Please elaborate? What endpoints?

@dgrnbrg
Copy link
Contributor Author

dgrnbrg commented Oct 6, 2015

This endpoint: https://github.com/twosigma/Cook/blob/master/scheduler/src/cook/mesos/api.clj#L274

Cook just has one REST resource--the job resource specified here, mounted on /rawscheduler.

The GET and DELETE verbs there should federate, if a config like the one specified above, is provided.

@leifwalsh
Copy link
Contributor

Gotcha.

@dgrnbrg
Copy link
Contributor Author

dgrnbrg commented Oct 21, 2015

@leifwalsh ping

@leifwalsh
Copy link
Contributor

Need to merge clj-http-async-pool changes and then implement this.
Probably a day of work. Need to schedule that.

On Wed, Oct 21, 2015 at 4:28 PM, David Greenberg notifications@github.com
wrote:

@leifwalsh https://github.com/leifwalsh ping


Reply to this email directly or view it on GitHub
#30 (comment).

Cheers,
Leif

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

No branches or pull requests

2 participants