Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opencredo/mesos_service_discovery
Service Discovery script for Mesos and Marathon
https://github.com/opencredo/mesos_service_discovery
Last synced: 2 months ago
JSON representation
Service Discovery script for Mesos and Marathon
- Host: GitHub
- URL: https://github.com/opencredo/mesos_service_discovery
- Owner: opencredo
- Archived: true
- Created: 2014-08-05T10:38:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T13:23:10.000Z (over 9 years ago)
- Last Synced: 2024-03-26T01:38:26.029Z (3 months ago)
- Language: Go
- Size: 282 KB
- Stars: 15
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-mesos - Service Discovery script for Mesos and Marathon
README
Marathon Service Discovery with HAProxy
=======================================Reload HAProxy every time Marathon creates or deletes a running task.
## Building
### Build script
Running `./build.sh` will produce a binary in `$PWD/bin/`
### Add to GOPATH
Move the `src/github.com` directory into your GOPATH and run `go install github.com/opencredo/mesos_service_discovery`
## Usage
Start the `mesos_service_discovery` binary; optionally with the following arguments:
| Argument | Default | Description |
|----------|---------|-------------|
| host | localhost | The hostname to advertise to Marathon (ie. the host this service is running on) |
| port | 8081 | The port to run this service on |
| marathon_host | localhost | The host Marathon is running on |
| marathon_port | 8080 | The port Marathon is running on |
| haproxy_template | /etc/haproxy/haproxy.cfg.tpl | The location of the HAProxy configuration template |The service will automatically try to register itself with Marathon on start-up.
## TODO
* Automatically deregister the service on shutdown
* Separate HAProxy configuration generation / move towards a plugin based system## License
Copyright 2014 Bart Spaans
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.