Skip to content

Latest commit

 

History

History
56 lines (50 loc) · 2.15 KB

enterParallelV1.md

File metadata and controls

56 lines (50 loc) · 2.15 KB

enterParallel: Opens subconnections for parallel execution

This command opens subconnections, which are additional connections to other nodes in the cluster, for the purpose of parallel execution. If the requested number of subconnections is 0, all open subconnections are closed.

⚠️ This command has been deprecated. (see WebsocketAPIV4, requestParallelConnections).

Request fields:

  • command (string) => command name: "enterParallel"
  • attributes (object, optional) => attributes to set for the connection (see see Attributes)
  • hostIp (string) => IP address of the Exasol host to which the client is currently connected (i.e., the Exasol host used to create the connection; e.g., ws://<hostIp>:8563)
  • numRequestedConnections (number) => number of subconnections to open. If 0, all open subconnections are closed.

Request JSON format

 {
     "command": "enterParallel",
     "attributes": {
             // as defined separately
     },
     "hostIp": <string>,
     "numRequestedConnections": <number>
 }

Response fields:

  • status (string) => command status: "ok" or "error"
  • responseData (object, optional) => only present if status is "ok"
    • numOpenConnections (number) => number of subconnections actually opened
    • token (number) => token required for the login of subconnections
    • nodes (string[]) => IP addresses and ports of the nodes, to which subconnections may be established
  • exception (object, optional) => only present if status is "error"
    • text (string) => exception message which provides error details
    • sqlCode (string) => five-character exception code if known, otherwise "00000"

Response JSON format

 {
     "status": <"ok" | "error">,
     // in case of "ok"
     "responseData": {
             "numOpenConnections": <number>,
             "token": <number>,
             "nodes": [
                     <string>
             ]
     },
     // in case of "error"
     "exception": {
             "text": <string>,
             "sqlCode": <string>
     }
 }