All Projects → leancloud → resty-marathon-lb

leancloud / resty-marathon-lb

Licence: other
基于 OpenResty 的 Marathon 服务发现 & 路由

Programming Languages

lua
6591 projects
shell
77523 projects
Nginx
273 projects

Projects that are alternatives of or similar to resty-marathon-lb

Linkerdcosdockerfile
Linker Dcos DockerFile&DockerCompose yml file
Stars: ✭ 8 (-38.46%)
Mutual labels:  marathon, mesos
Paasta
An open, distributed platform as a service
Stars: ✭ 1,569 (+11969.23%)
Mutual labels:  marathon, mesos
Traefik
The Cloud Native Application Proxy
Stars: ✭ 36,089 (+277507.69%)
Mutual labels:  marathon, mesos
micro-service-practice
OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 25 (+92.31%)
Mutual labels:  marathon, mesos
xxcloud
xxcloud,旨在整合数据中心异构虚拟化资源为统一的资源池,并在资源池上为用户提供各类IAAS、PAAS服务。
Stars: ✭ 64 (+392.31%)
Mutual labels:  marathon, mesos
Swan
A Distributed, Highly Available Mesos Scheduler, Inspired by the design of Google Borg
Stars: ✭ 411 (+3061.54%)
Mutual labels:  marathon, mesos
My Cheat Sheets
A place to keep all my cheat sheets for the complete development of ASIC/FPGA hardware or a software app/service.
Stars: ✭ 94 (+623.08%)
Mutual labels:  marathon, mesos
sbt-marathon
An sbt plugin for launching application containers on the Mesosphere Marathon platform.
Stars: ✭ 23 (+76.92%)
Mutual labels:  marathon, mesos
Dcos
DC/OS - The Datacenter Operating System
Stars: ✭ 2,316 (+17715.38%)
Mutual labels:  marathon, mesos
Panteras
PanteraS - PaaS - Platform as a Service in a box
Stars: ✭ 189 (+1353.85%)
Mutual labels:  marathon, mesos
Nixy
nixy - nginx auto configuration and service discovery for Mesos/Marathon
Stars: ✭ 259 (+1892.31%)
Mutual labels:  marathon, mesos
spring-cloud-marathon
Spring Cloud integration with Mesos and Marathon
Stars: ✭ 29 (+123.08%)
Mutual labels:  marathon, mesos
dcos-autoscaler
Autoscaler for DC/OS hosted in a cloud provider
Stars: ✭ 12 (-7.69%)
Mutual labels:  marathon, mesos
Marathon Lb
Marathon-lb is a service discovery & load balancing tool for DC/OS
Stars: ✭ 449 (+3353.85%)
Mutual labels:  marathon, mesos
dcos-deploy
Deploy, manage and orchestrate services and apps on DC/OS
Stars: ✭ 21 (+61.54%)
Mutual labels:  marathon, mesos
Waiter
Runs, manages, and autoscales web services on Mesos and Kubernetes
Stars: ✭ 65 (+400%)
Mutual labels:  marathon, mesos
consul-registration-hook
Hook that can be used for synchronous registration and deregistration in Consul discovery service on Kubernetes or Mesos cluster with Allegro executor
Stars: ✭ 17 (+30.77%)
Mutual labels:  marathon, mesos
letsencrypt-dcos
Let's Encrypt DC/OS!
Stars: ✭ 39 (+200%)
Mutual labels:  marathon, marathon-lb
Marathon Consul
Integrates Marathon apps with Consul service discovery.
Stars: ✭ 174 (+1238.46%)
Mutual labels:  marathon, mesos
marathon-appcop
Marathon applications law enforcement
Stars: ✭ 18 (+38.46%)
Mutual labels:  marathon, mesos

resty-marathon-lb

这是啥玩意

这是一个 LeanCloud 维护的基于 OpenResty 的服务发现路由。 在 nginx 配置里说明要 proxy_pass 的 Marathon 应用,就可以直接路由过去了。

server {
    listen 80;
    server_name example.com;
    location / {
        dyups_interface;
        # "marathon-rest-api地址#应用id:应用端口"
        set $marathon_app "marathon:8080#your-awesome-app:4000";
        set $upstream "";
        access_by_lua_file "lua/marathon-app.lua";
        proxy_pass http://$upstream;
    }
}
$ curl http://example.com/ping
This is your awesome app serving at port 23745 (a Mesos allocated port)

怎么用

看看 nginx.confcomponents.conf。 通过 build.sh 可以构建出一个 docker 镜像,用这个部署就可以了。 可以直接用 --net=host 来部署,会暴露4个端口:

  • 80 HTTP
  • 880 接受 Proxy Protocol 的 HTTP
  • 443 HTTPS
  • 8443 接受 Proxy Protocol 的 HTTPS

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].