Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Remove reference to event mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Jan 23, 2017
1 parent 00a58cb commit 5d6447b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions Longhelp.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ Every service port in Marathon can be configured independently.
### Configuration
Service configuration lives in Marathon via labels.
Marathon-lb just needs to know where to find Marathon.
To run in listening mode you must also specify the address + port at
which marathon-lb can be reached by Marathon.

### Command Line Usage

```
usage: marathon_lb.py [-h] [--longhelp] [--marathon MARATHON [MARATHON ...]]
[--listening LISTENING] [--callback-url CALLBACK_URL]
[--haproxy-config HAPROXY_CONFIG] [--group GROUP]
[--command COMMAND] [--sse] [--health-check]
[--lru-cache-capacity LRU_CACHE_CAPACITY]
Expand All @@ -43,13 +40,6 @@ optional arguments:
[required] Marathon endpoint, eg. -m
http://marathon1:8080 http://marathon2:8080 (default:
['http://master.mesos:8080'])
--listening LISTENING, -l LISTENING
(deprecated) The address this script listens on for
marathon events (e.g., http://0.0.0.0:8080) (default:
None)
--callback-url CALLBACK_URL, -u CALLBACK_URL
The HTTP address that Marathon can call this script
back at (http://lb1:8080) (default: None)
--haproxy-config HAPROXY_CONFIG
Location of haproxy configuration (default:
/etc/haproxy/haproxy.cfg)
Expand All @@ -59,8 +49,7 @@ optional arguments:
--command COMMAND, -c COMMAND
If set, run this command to reload haproxy. (default:
None)
--sse, -s Use Server Sent Events instead of HTTP Callbacks
(default: False)
--sse, -s Use Server Sent Events (default: False)
--health-check, -H If set, respect Marathon's health check statuses
before adding the app instance into the backend pool.
(default: False)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ option `template-url` to a tarball containing a directory `templates/`.
See [comments in script](marathon_lb.py) on how to name those.

### Docker
Synopsis: `docker run -e PORTS=$portnumber --net=host mesosphere/marathon-lb sse|event|poll ...`
Synopsis: `docker run -e PORTS=$portnumber --net=host mesosphere/marathon-lb sse|poll ...`

You must set `PORTS` environment variable to allow haproxy bind to this port.
Syntax: `docker run -e PORTS=9090 mesosphere/marathon-lb sse [other args]`
Expand Down

0 comments on commit 5d6447b

Please sign in to comment.