-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce terminate-after flag, graceful shutdown
This introduces a `--terminate-after` flag, which instructs a server to gracefully shutdown after a specified number of requests. The atomic counter logic lives in RequestHandler. When RequestHandler detects the terminate limit has been hit, it sends a message to main, which in turn shuts down all the servers and exits. Signed-off-by: Andrew Seigner <siggy@buoyant.io>
- Loading branch information
Showing
12 changed files
with
168 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
## v0.0.2 | ||
|
||
* Introduce `terminate-after` flag, which instructs the process to shutdown | ||
after a specified number of requests. | ||
* Introduce graceful shutdown. Upon receiving a shutdown message via SIGTERM, or | ||
via `terminate-after`, call shutdown on each server, allowing requests to | ||
drain. | ||
|
||
## v0.0.1 | ||
|
||
bb 0.0.1 is the first public release of bb | ||
|
||
* This release supports HTTP 1.1 and gRPC. | ||
* Available strategies are: broadcast channel, point-to-point channel, terminus, and HTTP egress | ||
* Allows users tio define a percentage of requests that should fail and a duration to wait for | ||
* Allows users tio define a percentage of requests that should fail and a duration to wait for | ||
before processing requests. | ||
* This release has been tested locally on Mac OS and on both Google Kubernetes Engine and | ||
* This release has been tested locally on Mac OS and on both Google Kubernetes Engine and | ||
Minikube. |
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
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
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
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
Oops, something went wrong.