forked from youtube/doorman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all documentation to use YAML for the config file.
- Loading branch information
Showing
10 changed files
with
64 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM golang:1.5 | ||
ADD config.prototext . | ||
ADD config.yml . | ||
RUN go get github.com/youtube/doorman/go/cmd/doorman |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
resources: | ||
- identifier_glob: "proportional" | ||
capacity: 5000 | ||
safe_capacity: 10 | ||
description: "proportional example" | ||
algorithm: | ||
kind: PROPORTIONAL_SHARE | ||
lease_length: 60 | ||
refresh_interval: 15 | ||
- identifier_glob: "fair" | ||
capacity: 5000 | ||
safe_capacity: 10 | ||
description: "fair share example" | ||
algorithm: | ||
kind: FAIR_SHARE | ||
lease_length: 60 | ||
refresh_interval: 15 | ||
- identifier_glob: "*" | ||
capacity: 1000 | ||
safe_capacity: 10 | ||
description: "test" | ||
algorithm: | ||
kind: FAIR_SHARE | ||
lease_length: 60 | ||
refresh_interval: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
etcd: etcd --data-dir /tmp/etcd.data$PORT | ||
doorman: $GOPATH/bin/doorman -logtostderr -config=./config.prototext -port=$PORT -debug_port=$(expr $PORT + 50) -etcd_endpoints=http://localhost:2379 -master_election_lock=/doorman.master -hostname=localhost | ||
doorman: $GOPATH/bin/doorman -logtostderr -config=./config.yml -port=$PORT -debug_port=$(expr $PORT + 50) -etcd_endpoints=http://localhost:2379 -master_election_lock=/doorman.master -hostname=localhost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
resources: | ||
- identifier_glob: proportional | ||
capacity: 100 | ||
safe_capacity: 10 | ||
description: proportional example | ||
algorithm: | ||
kind: PROPORTIONAL_SHARE | ||
lease_length: 15 | ||
refresh_interval: 5 | ||
- identifier_glob: fair | ||
capacity: 1000 | ||
safe_capacity: 10 | ||
description: fair share example | ||
algorithm: | ||
kind: FAIR_SHARE | ||
lease_length: 15 | ||
refresh_interval: 5 | ||
- identifier_glob: "*" | ||
capacity: 1000 | ||
safe_capacity: 10 | ||
description: default | ||
algorithm: | ||
kind: FAIR_SHARE | ||
lease_length: 60 | ||
refresh_interval: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters