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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
26b60607
Commit
26b60607
authored
8 years ago
by
David Garcia Quintas
Browse files
Options
Downloads
Patches
Plain Diff
Small tweaks in text and diagram
parent
54698a91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/images/load_balancing_design.png
+0
-0
0 additions, 0 deletions
doc/images/load_balancing_design.png
doc/load-balancing.md
+14
-12
14 additions, 12 deletions
doc/load-balancing.md
with
14 additions
and
12 deletions
doc/images/load_balancing_design.png
+
0
−
0
View replaced file @
54698a91
View file @
26b60607
37.3 KiB
|
W:
|
H:
39.4 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
doc/load-balancing.md
+
14
−
12
View file @
26b60607
...
...
@@ -89,26 +89,28 @@ servers.
client config.
2.
The gRPC client connects to a gRPC Server.
1.
If the name resolution has hinted that the endpoint is a load balancer,
the client will attempt to open a stream to the load balancer service. The
server may respond in only one of the following ways.
the client's gRPC LB policy will attempt to open a stream to the load
balancer service. The server may respond in only one of the following
ways.
1.
`status::UNIMPLEMENTED`
. There is no loadbalancing in use. The client
call will fail.
1
.
"I am a Load Balancer and here is the server list." (Goto Step 4.)
1
.
"Please contact Load Balancer X" (See Step 3.) The client will close
2
.
"I am a Load Balancer and here is the server list." (Goto Step 4.)
3
.
"Please contact Load Balancer X" (See Step 3.) The client will close
this connection and cancel the stream.
1
.
If the server fails to respond, the client will wait for some timeout
4
.
If the server fails to respond, the client will wait for some timeout
and then re-resolve the name (process to Step 1 above).
1
.
If the name resolution has not hinted that the endpoint is a load
2
.
If the name resolution has not hinted that the endpoint is a load
balancer, the client connects directly to the service it wants to talk to.
3.
The gRPC client opens a separate connection to the Load
Balancer. If this
fails, it will go back to step 1 and try another address.
3.
The gRPC client
's gRPC LB policy
opens a separate connection to the Load
Balancer. If this
fails, it will go back to step 1 and try another address.
1.
During channel initialization to the Load Balancer, the client will
attempt to open a stream to the Load Balancer service.
1.
The load balancer will return a server list to the gRPC client.
Optional: The load balancer will also open channels to the gRPC servers if
load reporting is needed.
2.
The Load Balancer will return a server list to the gRPC client. If the
server list is empty, the call will wait until a non-empty one is
received. Optional: The Load Balancer will also open channels to the gRPC
servers if load reporting is needed.
4.
The gRPC client will send RPCs to the gRPC servers contained in the server
list from the
l
oad
b
alancer.
list from the
L
oad
B
alancer.
5.
Optional: The gRPC servers may periodically report load to the Load Balancer.
## Client
...
...
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
register
or
sign in
to comment