Skip to content

Commit 6e05f22

Browse files
author
Ash
committed
rename imports
1 parent 6816c95 commit 6e05f22

File tree

25 files changed

+56
-56
lines changed

25 files changed

+56
-56
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Doorman requires the clients to inform it of the desired capacity (the so-called
5959
- Read a [Kubernetes deployment tutorial](doc/loadtest).
6060
- Read about Doorman's [configuration](doc/configuration.md).
6161
- Read the in-depth [design doc](doc/design.md).
62-
- Read the [client documentation](https://godoc.org/github.com/youtube/doorman/go/client/doorman).
62+
- Read the [client documentation](https://godoc.org/github.com/Pythonista7/doorman/go/client/doorman).
6363

6464
## Status and Plans
6565

@@ -89,7 +89,7 @@ export GOPATH=...
8989
With this out of the way, Doorman is just one go get away:
9090

9191
```sh
92-
go get github.com/youtube/doorman/go/cmd/doorman
92+
go get github.com/Pythonista7/doorman/go/cmd/doorman
9393
```
9494

9595
If you are interested in a checkout of Doorman that you can modify, you can do:

doc/loadtest/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Again, we are exposing an HTTP port and exporting metrics (we will use them to f
152152

153153
### Doorman Server
154154

155-
This is the the regular [doorman server](https://github.com/youtube/doorman/tree/master/go/cmd/doorman), whose address we will give to the client. The way we'll run the server differs significantly from how we would run it in a real world setting. We are running just one process. If it dies, the client won't be able to get new resource leases. For production, we would run 3 processes, and they would use [etcd](https://github.com/coreos/etcd/) to elect a leader among themselves. We are skipping this step for the sake of simplicity.
155+
This is the the regular [doorman server](https://github.com/Pythonista7/doorman/tree/master/go/cmd/doorman), whose address we will give to the client. The way we'll run the server differs significantly from how we would run it in a real world setting. We are running just one process. If it dies, the client won't be able to get new resource leases. For production, we would run 3 processes, and they would use [etcd](https://github.com/coreos/etcd/) to elect a leader among themselves. We are skipping this step for the sake of simplicity.
156156

157157
## Kubernetes
158158

@@ -358,7 +358,7 @@ Stir things up a bit. Add more clients! A lot more clients, say, instruct the cl
358358
$ kubectl scale --replicas=100 replicationcontrollers doorman-client-proportional
359359
```
360360

361-
What happens with the number of requests the server is doing? How about the QPS that `target` is receiving? Is it behaving the way you expected? (Hint: if your cluster is small, and there's many clients, they will eventuall become starved for resources, and not be able to use all the capacity they got. Take a look at the [adaptive rate limiter](https://godoc.org/github.com/youtube/doorman/go/ratelimiter#AdaptiveQPS) for a workaround.) How about the client latencies? Can you make them better by giving Doorman more CPU?
361+
What happens with the number of requests the server is doing? How about the QPS that `target` is receiving? Is it behaving the way you expected? (Hint: if your cluster is small, and there's many clients, they will eventuall become starved for resources, and not be able to use all the capacity they got. Take a look at the [adaptive rate limiter](https://godoc.org/github.com/Pythonista7/doorman/go/ratelimiter#AdaptiveQPS) for a workaround.) How about the client latencies? Can you make them better by giving Doorman more CPU?
362362

363363
### Different Algorithms
364364

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM golang:1.5
2-
RUN go get "github.com/golang/glog" "github.com/pborman/uuid" "github.com/youtube/doorman/go/client/doorman" \
2+
RUN go get "github.com/golang/glog" "github.com/pborman/uuid" "github.com/Pythonista7/doorman/go/client/doorman" \
33
golang.org/x/net/context google.golang.org/grpc google.golang.org/grpc/examples/helloworld/helloworld \
4-
github.com/youtube/doorman/go/ratelimiter
4+
github.com/Pythonista7/doorman/go/ratelimiter
55

6-
RUN mkdir -p $GOPATH/src/github.com/youtube/doorman/doc/loadtest/docker/client/doorman_client
7-
ADD doorman_client.go $GOPATH/src/github.com/youtube/doorman/doc/loadtest/docker/client
8-
RUN cd $GOPATH/src/github.com/youtube/doorman/doc/loadtest/docker/client && go install
6+
RUN mkdir -p $GOPATH/src/github.com/Pythonista7/doorman/doc/loadtest/docker/client/doorman_client
7+
ADD doorman_client.go $GOPATH/src/github.com/Pythonista7/doorman/doc/loadtest/docker/client
8+
RUN cd $GOPATH/src/github.com/Pythonista7/doorman/doc/loadtest/docker/client && go install
99

doc/loadtest/docker/client/doorman_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"net/http"
99
"time"
1010

11+
"github.com/Pythonista7/doorman/go/client/doorman"
12+
"github.com/Pythonista7/doorman/go/ratelimiter"
1113
log "github.com/golang/glog"
1214
"github.com/pborman/uuid"
1315
"github.com/prometheus/client_golang/prometheus/promhttp" // Add this line
14-
"github.com/youtube/doorman/go/client/doorman"
15-
"github.com/youtube/doorman/go/ratelimiter"
1616
"golang.org/x/net/context"
1717
"google.golang.org/grpc"
1818

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM golang:1.5
22
ADD config.yml .
3-
RUN go get github.com/youtube/doorman/go/cmd/doorman
3+
RUN go get github.com/Pythonista7/doorman/go/cmd/doorman

doc/loadtest/docker/target/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM golang:1.5
22
RUN go get github.com/golang/glog github.com/prometheus/client_golang/prometheus \
33
golang.org/x/net/context google.golang.org/grpc \
44
google.golang.org/grpc/examples/helloworld/helloworld
5-
RUN mkdir -p ${GOPATH}/src/github.com/youtube/doorman/doc/loadtest/docker/target
6-
ADD ./target.go ${GOPATH}/src/github.com/youtube/doorman/doc/loadtest/docker/target
7-
RUN go install github.com/youtube/doorman/doc/loadtest/docker/target
5+
RUN mkdir -p ${GOPATH}/src/github.com/Pythonista7/doorman/doc/loadtest/docker/target
6+
ADD ./target.go ${GOPATH}/src/github.com/Pythonista7/doorman/doc/loadtest/docker/target
7+
RUN go install github.com/Pythonista7/doorman/doc/loadtest/docker/target
88

doc/simplecluster/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ sudo gem install foreman
2323

2424
### Doorman binaries
2525
```sh
26-
go get github.com/youtube/doorman/go/cmd/doorman_shell
27-
go get github.com/youtube/doorman/go/cmd/doorman
26+
go get github.com/Pythonista7/doorman/go/cmd/doorman_shell
27+
go get github.com/Pythonista7/doorman/go/cmd/doorman
2828
```
2929

3030
## Preparing the configuration
@@ -43,7 +43,7 @@ We will use Foreman to start an Etcd service and 3 doorman processes. Take a loo
4343
It should look like this:
4444

4545
```console
46-
$ cd $GOPATH/src/github.com/youtube/doorman/doc/simplecluster
46+
$ cd $GOPATH/src/github.com/Pythonista7/doorman/doc/simplecluster
4747

4848
$ foreman start
4949
15:14:34 etcd.1 | started with pid 2057

go/client/doorman/client.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ import (
2929
"sync"
3030
"time"
3131

32+
"github.com/Pythonista7/doorman/go/connection"
33+
"github.com/Pythonista7/doorman/go/timeutil"
3234
log "github.com/golang/glog"
3335
"github.com/golang/protobuf/proto"
3436
"github.com/prometheus/client_golang/prometheus"
35-
"github.com/youtube/doorman/go/connection"
36-
"github.com/youtube/doorman/go/timeutil"
3737
"golang.org/x/net/context"
3838
rpc "google.golang.org/grpc"
3939

40-
pb "github.com/youtube/doorman/proto/doorman"
40+
pb "github.com/Pythonista7/doorman/proto/doorman"
4141
)
4242

4343
const (
@@ -202,11 +202,11 @@ func NewWithID(addr string, id string, opts ...Option) (*Client, error) {
202202

203203
// GetMaster returns the address of the Doorman master we are connected to.
204204
func (client *Client) GetMaster() string {
205-
if client.conn == nil {
206-
return ""
207-
}
205+
if client.conn == nil {
206+
return ""
207+
}
208208

209-
return client.conn.String()
209+
return client.conn.String()
210210
}
211211

212212
// run is the client's main loop. It takes care of requesting new

go/client/doorman/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import (
2626
"github.com/golang/protobuf/proto"
2727
rpc "google.golang.org/grpc"
2828

29-
server "github.com/youtube/doorman/go/server/doorman"
29+
server "github.com/Pythonista7/doorman/go/server/doorman"
3030

31-
pb "github.com/youtube/doorman/proto/doorman"
31+
pb "github.com/Pythonista7/doorman/proto/doorman"
3232
)
3333

3434
var (

go/cmd/doorman/doorman_server.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ import (
3030
"github.com/prometheus/client_golang/prometheus/promhttp" // Add this line
3131
rpc "google.golang.org/grpc"
3232

33+
"github.com/Pythonista7/doorman/go/configuration"
34+
"github.com/Pythonista7/doorman/go/connection"
35+
"github.com/Pythonista7/doorman/go/flagenv"
36+
"github.com/Pythonista7/doorman/go/server/doorman"
37+
"github.com/Pythonista7/doorman/go/server/election"
38+
"github.com/Pythonista7/doorman/go/status"
3339
"github.com/ghodss/yaml"
34-
"github.com/youtube/doorman/go/configuration"
35-
"github.com/youtube/doorman/go/connection"
36-
"github.com/youtube/doorman/go/flagenv"
37-
"github.com/youtube/doorman/go/server/doorman"
38-
"github.com/youtube/doorman/go/server/election"
39-
"github.com/youtube/doorman/go/status"
40-
41-
pb "github.com/youtube/doorman/proto/doorman"
40+
41+
pb "github.com/Pythonista7/doorman/proto/doorman"
4242

4343
_ "expvar"
4444
_ "net/http/pprof"

0 commit comments

Comments
 (0)