-
Notifications
You must be signed in to change notification settings - Fork 25
Add stream upstream, stream server zones metrics support #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3955897
Add stream upstream/server zone metrics support
Dean-Coakley 0c34234
Fix response typo. reponse->response
Dean-Coakley 2b059ca
Fix Makefile docker port mapping. Fix comments
Dean-Coakley 6adc4f1
Handle missing stream block
06d8dbe
Add stream healthcheck test
2745a45
Add sleep to wait for health checks to pass
1ae242a
Simplify internal error handling
fbe16c5
Fix copy/paste typos
94ad6a0
Cache client unit tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,17 +1,24 @@ | ||
NGINX_PLUS_VERSION=15-2 | ||
NGINX_IMAGE=nginxplus:$(NGINX_PLUS_VERSION) | ||
|
||
test: docker-build run-nginx-plus test-run clean | ||
test: docker-build run-nginx-plus test-run configure-no-stream-block test-run-no-stream-block clean | ||
|
||
docker-build: | ||
docker build --build-arg NGINX_PLUS_VERSION=$(NGINX_PLUS_VERSION)~stretch -t $(NGINX_IMAGE) docker | ||
|
||
run-nginx-plus: | ||
docker run -d --name nginx-plus-test --rm -p 8080:8080 $(NGINX_IMAGE) | ||
docker run -d --name nginx-plus-test --rm -p 8080:8080 -p 8081:8081 $(NGINX_IMAGE) | ||
|
||
test-run: | ||
go test client/* | ||
go test tests/client_test.go | ||
GOCACHE=off go test tests/client_test.go | ||
|
||
configure-no-stream-block: | ||
docker cp docker/nginx_no_stream.conf nginx-plus-test:/etc/nginx/nginx.conf | ||
docker exec nginx-plus-test nginx -s reload | ||
|
||
test-run-no-stream-block: | ||
GOCACHE=off go test tests/client_no_stream_test.go | ||
|
||
clean: | ||
docker kill nginx-plus-test |
This file contains hidden or 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 hidden or 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 hidden or 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,32 @@ | ||
|
||
user nginx; | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
|
||
keepalive_timeout 65; | ||
|
||
#gzip on; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
} |
This file contains hidden or 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 |
---|---|---|
|
@@ -22,4 +22,4 @@ server { | |
health_check interval=10 fails=3 passes=1; | ||
} | ||
status_zone test; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.