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

API Gateway should scale (enhancement) #56

Closed
alexellis opened this issue Apr 19, 2017 · 3 comments
Closed

API Gateway should scale (enhancement) #56

alexellis opened this issue Apr 19, 2017 · 3 comments
Assignees

Comments

@alexellis
Copy link
Member

The gateway could be a bottleneck in very high workloads. It should be able to scale.

Current Behavior

Prometheus scraping would break

Possible Solution

Add to prometheus.yml config:

  - job_name: "gateway"
    scrape_interval: 5s
    dns_sd_configs:
      - names: ['tasks.gateway']
        port: 8080
        type: A
        refresh_interval: 5s
@alexellis alexellis self-assigned this Apr 19, 2017
@rcarmo
Copy link

rcarmo commented Apr 29, 2017

I'm looking at deploying this on a Swarm cluster with dynamically scaled VMs. I was thinking of deploying the admin UI on the master node (on a separate port) and having the gateway be a Swarm replicated service.

Being able to split the admin UI from the gateway (on separate ports) would also help with #32, since it would make it easier to put something like an OAuth-enabled reverse proxy in front to authenticate humans.

@alexellis
Copy link
Member Author

Would be good to find out more of your use cases. What are the benefits of splitting UI/gateway over keeping them together and just scaling?

@alexellis
Copy link
Member Author

The gateway can now scale and Prometheus will respond to this too - docker service scale func_gateway=2. I'm still interested in the idea of scaling via CPU workload.

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

No branches or pull requests

2 participants