Skip to content

Commit c5ee1d9

Browse files
mookkiahharsha509
andauthored
Event Bus is the first component that should be started. (SeleniumHQ#663)[deploy site]
* Event Buis is the first component that should be starded in distributed grid 4 * Event Bus is the first component that should be started * replaced changed section in english and requested for translation help Co-authored-by: Sri Harsha <[email protected]>
1 parent 6fda73f commit c5ee1d9

9 files changed

+112
-41
lines changed

docs_source_files/content/grid/grid_4/components_of_a_grid.de.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ whereas this would not be possible on Linux or Mac.
5959
The Session Map is a data store that keeps the information of the session id and the Node
6060
where the session is running. It serves as a support for the Router in the process of
6161
forwarding a request to the Node. The Router will ask the Session Map for the Node
62-
associated to a session id. When starting the Grid in its fully distributed mode, the
63-
Session Map is the first component that should be started.
62+
associated to a session id.
6463

6564
## Event Bus
6665

6766
The Event Bus serves as a communication path between the Nodes, Distributor, and Session Map.
68-
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
67+
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
68+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
6969

7070
## Roles in Grid
7171

docs_source_files/content/grid/grid_4/components_of_a_grid.en.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ whereas this would not be possible on Linux or Mac.
5656
The Session Map is a data store that keeps the information of the session id and the Node
5757
where the session is running. It serves as a support for the Router in the process of
5858
forwarding a request to the Node. The Router will ask the Session Map for the Node
59-
associated to a session id. When starting the Grid in its fully distributed mode, the
60-
Session Map is the first component that should be started.
59+
associated to a session id.
6160

6261
## New Session Queuer, New Session Queue
6362

@@ -89,7 +88,8 @@ receives the event.
8988
## Event Bus
9089

9190
The Event Bus serves as a communication path between the Nodes, Distributor, New Session Queuer, and Session Map.
92-
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
91+
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
92+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
9393

9494
## Roles in Grid
9595

docs_source_files/content/grid/grid_4/components_of_a_grid.es.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ whereas this would not be possible on Linux or Mac.
5959
The Session Map is a data store that keeps the information of the session id and the Node
6060
where the session is running. It serves as a support for the Router in the process of
6161
forwarding a request to the Node. The Router will ask the Session Map for the Node
62-
associated to a session id. When starting the Grid in its fully distributed mode, the
63-
Session Map is the first component that should be started.
62+
associated to a session id.
6463

6564
## Event Bus
6665

6766
The Event Bus serves as a communication path between the Nodes, Distributor, and Session Map.
68-
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
67+
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
68+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
6969

7070
## Roles in Grid
7171

docs_source_files/content/grid/grid_4/components_of_a_grid.fr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ whereas this would not be possible on Linux or Mac.
5959
The Session Map is a data store that keeps the information of the session id and the Node
6060
where the session is running. It serves as a support for the Router in the process of
6161
forwarding a request to the Node. The Router will ask the Session Map for the Node
62-
associated to a session id. When starting the Grid in its fully distributed mode, the
63-
Session Map is the first component that should be started.
62+
associated to a session id.
6463

6564
## Event Bus
6665

6766
The Event Bus serves as a communication path between the Nodes, Distributor, and Session Map.
6867
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
68+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
6969

7070
## Roles in Grid
7171

docs_source_files/content/grid/grid_4/components_of_a_grid.ja.md

+42-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "グリッドのコンポーネント"
33
weight: 1
44
---
55

6+
{{% notice info %}}
7+
<i class="fas fa-language"></i> There are certain paragaraphs needs translation from
8+
English to Japanese. Do you speak Japanese? Help us to translate
9+
it by sending us pull requests!
10+
{{% /notice %}}
11+
612
![Grid](/images/grid_4.png)
713

814
## ルーター
@@ -46,17 +52,45 @@ SafariおよびInternet Explorerの場合、作成されるスロットは1つ
4652
たとえば、WindowsノードにはInternet Explorerをブラウザーオプションとして提供する機能がありますが、
4753
これはLinuxまたはMacでは不可能です。
4854

49-
## セッションマップ
55+
## Session Map
56+
57+
The Session Map is a data store that keeps the information of the session id and the Node
58+
where the session is running. It serves as a support for the Router in the process of
59+
forwarding a request to the Node. The Router will ask the Session Map for the Node
60+
associated to a session id.
61+
62+
## New Session Queuer, New Session Queue
63+
64+
The New Session Queuer is the only
65+
component which can communicate with the New Session Queue. It handles all queue operations like
66+
add to manipulate the queue. It has configurable parameters for setting
67+
the request timeout and request retry interval.
68+
69+
The New Session Queuer receives the new session request from the Router and adds it to the queue.
70+
The queuer waits until it receives the response for the request.
71+
If the request times out, the request is rejected immediately and not added to the queue.
72+
73+
Upon successfully adding the request to the queue, Event Bus triggers an event.
74+
The Distributor picks up this event and polls the queue. It now attempts to create a session.
75+
76+
If the requested capabilities do not exist in any of the registered Nodes, then the request is rejected
77+
immediately and the client receives a response.
78+
79+
If the requested capabilities match the capabilities of any of Node slots, Distributor attempts to get the
80+
available slot. If all the slots are busy, the Distributor will ask the queuer to add the request
81+
to the front of the queue. The Distributor receives the request again after the request retry interval.
82+
It will attempt retries until the request is successful or has timed out.
83+
If request times out while retrying or adding to the front of the queue its rejected.
5084

51-
セッションマップは、セッションIDとセッションが実行されているノードの情報を保持するデータストアです。
52-
これは、リクエストをノードに転送するプロセスにおけるルーターのサポートとして機能します。
53-
ルーターは、セッションIDに関連付けられたノードをセッションマップに要求します。
54-
完全分散モードでGridを開始する場合、セッションマップは、開始する必要がある最初のコンポーネントです。
85+
After getting an available slot and session creation, the Distributor passes the new session response
86+
to the New Session Queuer via the Event Bus. The New Session Queuer will respond to the client when it
87+
receives the event.
5588

56-
## イベントバス
89+
## Event Bus
5790

58-
イベントバスは、ノード、ディストリビュータ、およびセッションマップ間の通信パスとして機能します。
59-
Gridは、メッセージを介して内部通信の大部分を行い、高価なHTTP呼び出しを回避します。
91+
The Event Bus serves as a communication path between the Nodes, Distributor, New Session Queuer, and Session Map.
92+
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
93+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
6094

6195
## Gridの役割
6296

docs_source_files/content/grid/grid_4/components_of_a_grid.ko.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ whereas this would not be possible on Linux or Mac.
5959
The Session Map is a data store that keeps the information of the session id and the Node
6060
where the session is running. It serves as a support for the Router in the process of
6161
forwarding a request to the Node. The Router will ask the Session Map for the Node
62-
associated to a session id. When starting the Grid in its fully distributed mode, the
63-
Session Map is the first component that should be started.
62+
associated to a session id.
6463

6564
## Event Bus
6665

6766
The Event Bus serves as a communication path between the Nodes, Distributor, and Session Map.
6867
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
68+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
6969

7070
## Roles in Grid
7171

docs_source_files/content/grid/grid_4/components_of_a_grid.nl.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ whereas this would not be possible on Linux or Mac.
5959
The Session Map is a data store that keeps the information of the session id and the Node
6060
where the session is running. It serves as a support for the Router in the process of
6161
forwarding a request to the Node. The Router will ask the Session Map for the Node
62-
associated to a session id. When starting the Grid in its fully distributed mode, the
63-
Session Map is the first component that should be started.
62+
associated to a session id.
6463

6564
## Event Bus
6665

6766
The Event Bus serves as a communication path between the Nodes, Distributor, and Session Map.
6867
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
68+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
6969

7070
## Roles in Grid
7171

docs_source_files/content/grid/grid_4/components_of_a_grid.pt-br.md

+15-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ title: "Componentes"
33
weight: 1
44
---
55

6+
{{% notice info %}}
7+
<i class="fas fa-language"></i> There are certain paragaraphs needs translation from
8+
English to Portuguese. Do you speak Portuguese? Help us to translate
9+
it by sending us pull requests!
10+
{{% /notice %}}
11+
12+
613
![Grid](/images/grid_4.png)
714

815
## Roteador
@@ -48,13 +55,12 @@ o mesmo sistema operacional que os outros componentes. Por exemplo, um nó do Wi
4855
pode ter a capacidade de oferecer o Internet Explorer como uma opção de navegador,
4956
considerando que isso não seria possível no Linux ou Mac.
5057

51-
## Mapa de Sessão
58+
## Session Map
5259

53-
O Mapa da Sessão é um armazenamento de dados que mantém as informações do ID da sessão e do Nó
54-
onde a sessão está sendo executada. Serve como suporte para o Roteador no processo de
55-
encaminhamento de uma solicitação para o Nó. O Roteador irá pedir o mapa da sessão para o nó
56-
associado a um ID de sessão. Ao iniciar a Grid em seu modo totalmente distribuído,
57-
o Mapa da Sessão é o primeiro componente que deve ser iniciado.
60+
The Session Map is a data store that keeps the information of the session id and the Node
61+
where the session is running. It serves as a support for the Router in the process of
62+
forwarding a request to the Node. The Router will ask the Session Map for the Node
63+
associated to a session id.
5864

5965
## Enfileirador de Sessão, Fila de Sessão
6066

@@ -85,8 +91,9 @@ recebe o evento.
8591

8692
## Event Bus
8793

88-
O Event Bus serve como um caminho de comunicação entre os nós, o distribuidor, o enfileirador de sessão e o mapa da sessão.
89-
A Grid faz a maior parte de sua comunicação interna por meio de mensagens, evitando chamadas HTTP caras.
94+
The Event Bus serves as a communication path between the Nodes, Distributor, New Session Queuer, and Session Map.
95+
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
96+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
9097

9198
## Funções na Grid
9299

docs_source_files/content/grid/grid_4/components_of_a_grid.zh-cn.md

+40-10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: "服务网格的组件"
33
weight: 1
44
---
55

6+
{{% notice info %}}
7+
<i class="fas fa-language"></i> There are certain paragaraphs needs translation from
8+
English to Chinese. Do you speak Chinese? Help us to translate
9+
it by sending us pull requests!
10+
{{% /notice %}}
11+
612

713
![Grid](/images/grid_4.png)
814

@@ -55,19 +61,43 @@ weight: 1
5561

5662
## Session Map
5763

58-
会话集合是一种数据存储的形式,
59-
用于保存会话ID和会话正在运行的节点的信息.
60-
它在将请求转发到节点的过程中为路由器提供支持.
61-
路由器将向会话集合询问与会话ID关联的节点.
62-
当以完全分布式模式启动Grid时,
63-
Session Map是应该启动的第一个组件.
64+
The Session Map is a data store that keeps the information of the session id and the Node
65+
where the session is running. It serves as a support for the Router in the process of
66+
forwarding a request to the Node. The Router will ask the Session Map for the Node
67+
associated to a session id.
68+
69+
## New Session Queuer, New Session Queue
70+
71+
The New Session Queuer is the only
72+
component which can communicate with the New Session Queue. It handles all queue operations like
73+
add to manipulate the queue. It has configurable parameters for setting
74+
the request timeout and request retry interval.
75+
76+
The New Session Queuer receives the new session request from the Router and adds it to the queue.
77+
The queuer waits until it receives the response for the request.
78+
If the request times out, the request is rejected immediately and not added to the queue.
79+
80+
Upon successfully adding the request to the queue, Event Bus triggers an event.
81+
The Distributor picks up this event and polls the queue. It now attempts to create a session.
82+
83+
If the requested capabilities do not exist in any of the registered Nodes, then the request is rejected
84+
immediately and the client receives a response.
85+
86+
If the requested capabilities match the capabilities of any of Node slots, Distributor attempts to get the
87+
available slot. If all the slots are busy, the Distributor will ask the queuer to add the request
88+
to the front of the queue. The Distributor receives the request again after the request retry interval.
89+
It will attempt retries until the request is successful or has timed out.
90+
If request times out while retrying or adding to the front of the queue its rejected.
91+
92+
After getting an available slot and session creation, the Distributor passes the new session response
93+
to the New Session Queuer via the Event Bus. The New Session Queuer will respond to the client when it
94+
receives the event.
6495

6596
## Event Bus
6697

67-
事件总线作为一种通讯的路径,
68-
服务于节点、分发服务器和会话集合之间.
69-
网格通过消息进行大部分内部通信,
70-
从而避免了昂贵的HTTP调用.
98+
The Event Bus serves as a communication path between the Nodes, Distributor, New Session Queuer, and Session Map.
99+
The Grid does most of its internal communication through messages, avoiding expensive HTTP calls.
100+
When starting the Grid in its fully distributed mode, the Event Bus is the first component that should be started.
71101

72102
## Roles in Grid
73103

0 commit comments

Comments
 (0)