Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
a5510dec
Commit
a5510dec
authored
Jul 28, 2015
by
yang-g
Browse files
Options
Downloads
Patches
Plain Diff
Update spec per offline discussion
parent
334f52ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/connection-backoff-interop-test-description.md
+15
-8
15 additions, 8 deletions
doc/connection-backoff-interop-test-description.md
with
15 additions
and
8 deletions
doc/connection-backoff-interop-test-description.md
+
15
−
8
View file @
a5510dec
...
@@ -11,10 +11,10 @@ The test has the following flow:
...
@@ -11,10 +11,10 @@ The test has the following flow:
1.
The server starts listening on control_port.
1.
The server starts listening on control_port.
2.
The client calls Start rpc on server control_port.
2.
The client calls Start rpc on server control_port.
3.
The server starts listening on retry_port.
3.
The server starts listening on retry_port.
4.
The client c
alls Start rpc on
server retry_port
with a deadline of
540s
.
4.
The client c
onnects to
server retry_port
and retries with backoff for
540s
,
5.
The client waits until the rpc finish
es.
which translates to about 13 retri
es.
6
.
The client calls Stop rpc on server control port.
5
.
The client calls Stop rpc on server control port.
7
.
The client checks the response to see whether the server thinks the backoffs
6
.
The client checks the response to see whether the server thinks the backoffs
are conforming the spec or do its own check on the backoffs in the response.
are conforming the spec or do its own check on the backoffs in the response.
Client and server use
Client and server use
...
@@ -37,9 +37,11 @@ backoffs on its own.
...
@@ -37,9 +37,11 @@ backoffs on its own.
Procedure of client:
Procedure of client:
1.
Calls Start on server control port and checks it succeeded.
1.
Calls Start on server control port with a large deadline or no deadline,
2.
Calls Start on server retry port with a deadline of 540s. Waits and checks it
waits for its finish and checks it succeeded.
got deadline exceeded status.
2.
Initiates a channel connection to server retry port, which should perform
reconnections with proper backoffs. A convienent way to achieve this is to
call Start with a deadline of 540s. The rpc should fail with deadline exceeded.
3.
Calls Stop on server control port and checks it succeeded.
3.
Calls Stop on server control port and checks it succeeded.
4.
Checks the response to see whether the server thinks the backoffs passed the
4.
Checks the response to see whether the server thinks the backoffs passed the
test.
test.
...
@@ -60,7 +62,12 @@ all the reconnection timestamps and return the connection backoffs in the
...
@@ -60,7 +62,12 @@ all the reconnection timestamps and return the connection backoffs in the
response in milliseconds. The server also checks the backoffs to see whether
response in milliseconds. The server also checks the backoffs to see whether
they conform the spec and returns whether the client passes the test.
they conform the spec and returns whether the client passes the test.
Servers should accept these arguments:
If the server receives a Start call when another client is being tested, it
finishes the call when the other client is done. If some other host connects
to the server retry_port when a client is being tested, the server will log an
error but likely would think the client fails the test.
The server accepts these arguments:
*
--control_port=PORT
*
--control_port=PORT
*
The port to listen on for control rpcs. For example, "8080"
*
The port to listen on for control rpcs. For example, "8080"
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment