You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process of registering a new Node to the Grid is lightweight.
114
+
O processo de registar um Node na Grid é um processo "leve".
131
115
132
-
1.When the Node starts, it should emit a "heart beat" event on a
133
-
regular basis. This heartbeat contains the [node status].
134
-
2.The Distributor listens for the heart beat events. When it sees
135
-
one, it attempts to `GET`the `/status`endpoint of the Node. It
136
-
is from this information that the Grid is set up.
116
+
1.Quando um Node inicia, vai publicar um evento "heart beat" numa
117
+
base regular. Este evento contém o estado do Node.
118
+
2.O Distributor escuta os eventos "heart beat" e quando obtém um,
119
+
tenta um `GET`ao endpoint `/status`do Node. A Grid é
120
+
preparada com base nesta informação.
137
121
138
-
The Distributor will use the same `/status` endpoint to check the Node
139
-
on a regular basis, but the Node should continue sending heart beat
140
-
events even after started so that a Distributor without a persistent
141
-
store of the Grid state can be restarted and will (eventually) be up
142
-
to date and correct.
122
+
O Distributor irá usar regularmente o endpoint `/status` para continuar
123
+
a obter o estado do Node. Por seu lado, o Node continua a publicar um
124
+
evento "heart beat" mesmo depois do registo ter sido concluído com
125
+
sucesso.
126
+
Isto é feito para que mesmo que um Distributor não tenha um estado
127
+
da Grid possa reiniciar e assim obter novamente uma visão do estado
128
+
da Grid e assim ficar actualizado.
143
129
144
-
### The Node Status Object
130
+
### Objecto Node Status
145
131
146
-
The Node Status is a JSON blob with the following fields:
132
+
O Node Status é um blob JSON com os seguintes campos:
147
133
148
-
|Name|Type|Description|
134
+
|Nome|Tipo|Descrição|
149
135
|------|------|-------------|
150
-
| availability | string | A string which is one of `up`, `draining`, or `down`. The important one is `draining`, which indicates that no new sessions should be sent to the Node, and once the last session on it closes, the Node will exit or restart. |
151
-
| externalUrl | string | The URI that the other components in the Grid should connect to. |
152
-
| lastSessionCreated | integer | The epoch timestamp of when the last session was created on this Node. The Distributor will attempt to send new sessions to the Node that has been idle longest if all other things are equal. |
153
-
| maxSessionCount | integer | Although a session count can be inferred by counting the number of available slots, this integer value is used to determine the maximum number of sessions that should be running simultaneously on the Node before it is considered "full". |
154
-
| nodeId | string | A UUID used to identify this instance of the Node. |
155
-
| osInfo | object | An object with `arch`, `name`, and `version` fields. This is used by the Grid UI and the GraphQL queries. |
156
-
| slots | array | An array of Slot objects (described below) |
157
-
| version | string | The version of the Node (for Selenium, this will match the Selenium version number) |
158
-
159
-
It is recommended to put values in all fields.
160
-
161
-
### The Slot Object
162
-
163
-
The Slot object represents a single slot within a Node. A "slot" is
164
-
where a single session may be run. It is possible that a Node will
165
-
have more slots than it can run concurrently. For example, a node may
166
-
be able to run up 10 sessions, but they could be any combination of
167
-
Chrome, Edge, or Firefox; in this case, the Node would indicate a "max
168
-
session count" of 10, and then also say it has 10 slots for Chrome, 10
169
-
for Edge, and 10 for Firefox.
170
-
171
-
| Name | Type | Description |
136
+
| availability | string | Uma string com `up`, `draining`, ou `down`. A mais importante é `draining`, que indica que não devem ser enviados novos pedidos de sessão para o Node e assim que a última sessão termine, o Node irá reiniciar ou concluir. |
137
+
| externalUrl | string | Uma URI que os outros componentes da Grid se devem ligar. |
138
+
| lastSessionCreated | integer | Um timestamp da última sessão que foi criada neste Node. O Distributor irá tentar enviar novos pedidos de sessão para o Node que esteja parado há mais tempo. |
139
+
| maxSessionCount | integer | Embora seja possível inferir o número máximo de sessões a partir da lista de slots disponíveis, este número é usado para determinar qual é o máximo de sessões que este Node pode executar em simultâneo antes que se considere que está "cheio". |
140
+
| nodeId | string | Um identificador UUID para esta instância do Node. |
141
+
| osInfo | object | Um objecto contendo os campos `arch`, `name`, e `version`. Isto é usado pela Grid UI e pelas queries GraphQL. |
142
+
| slots | array | Um array de objectos Slot (descritos na secção seguinte) |
143
+
| version | string | A versão do Node (para Selenium, será igual à versão do Selenium) |
144
+
145
+
É recomendado que todos os campos tenham valores.
146
+
147
+
### O Objecto Slot
148
+
149
+
O objecto Slot representa um slot dentro de um Node. Um "slot" é onde uma sessão consegue ser executada. É possível que um Node tenha mais do que um Slot capaz de executar ao mesmo tempo.
150
+
Por exemplo, um Node pode ser capaz de executar até 10 sessões em simultâneo, mas podem ser uma qualquer combinação de Chrome, Firefox ou Edge e neste caso, o Node irá indicar 10 como o
151
+
número máximo de sessões, indicando que podem ser 10 Chrome, 10 Firefox e 10 Edge.
152
+
153
+
| Nome | Tipo | Descrição |
172
154
|------|------|-------------|
173
-
| id | string |UUID to refer to the slot |
174
-
| lastStarted | string |When the slot last had a session started, in ISO-8601 format|
175
-
| stereotype | object |The minimal set of [capabilities][capabilities]this slot will match against. A minimal example is`{"browserName": "firefox"}`|
176
-
| session | object |The Session object (see below) |
155
+
| id | string |Um identificador UUID para este slot |
156
+
| lastStarted | string |timestamp no formato ISO-8601 contendo a data em que a última sessão iniciou|
157
+
| stereotype | object |Conjunto mínimo de [capacidades][capabilities]que fazem match com este slot. O exemplo mínimo será por exemplo`{"browserName": "firefox"}`|
Representa uma sessão em execução dentro de um Slot
181
163
182
-
|Name|Type|Description|
164
+
|Nome|Tipo|Descrição|
183
165
|------|------|-------------|
184
-
| capabilities | object |The actual capabilities provided by the session. Will match the return value from the [new session][new session] command|
185
-
| startTime | string |The start time of the session in ISO-8601 format|
186
-
| stereotype | object |The minimal set of [capabilities][capabilities]this slot will match against. A minimal example is`{"browserName": "firefox"}`|
187
-
| uri | string |The URI used by the Node to communicate with the session|
166
+
| capabilities | object |A lista de capacidades fornecidas pela sessão. Irá coincidir com o valor obtido pelo comando [nova sessão][new session]|
167
+
| startTime | string |timestamp no formato ISO-8601 contendo a data em que a última sessão iniciou|
168
+
| stereotype | object |Conjunto mínimo de [capacidades][capabilities]que fazem match com este slot. O exemplo mínimo será por exemplo`{"browserName": "firefox"}`|
169
+
| uri | string |A URI usada pelo Node para comunicar com a sessão|
0 commit comments