Diagnose Spark connectivity

circle-info

If you are unsure about the environment parameter for your Spark to the Spark APIs, please see What is the link to my environment?.

Check server status

Every Spark environment has a health check endpoint. This can be accessed by visiting the address https://excel.{environment}.coherent.global/health in your web browser. If the environment is up, you should see the following response.

{"status":"UP"}

Time your connection to the Spark servers

To help diagnose any potential firewall or connectivity issues, you can use these curlarrow-up-right commands to time the connection to Spark to see if there are significant lags or connectivity issues.

Sample request

circle-exclamation
Bash
PowerShell

Note when using PowerShell, make sure you are using curl.exe and not curl which uses the Invoke-WebRequest command.

Sample response

{"status":"UP"}

---Coherent Spark connection details---
http_code: 200
local_ip: 192.168.1.107
local_port: 59899
num_connects: 1
num_redirects: 0
proxy_ssl_verify_result: 0
remote_ip: 172.26.35.63
remote_port: 443
response_code: 200
size_download: 15 B
size_header: 204 B
size_request: 0 B
size_upload: 0 B
speed_download: 51 Bps
speed_up: 0 Bps
---Coherent Spark connection time---
time_appconnect: 0.229670
time_connect: 0.080042
time_namelookup: 0.021973
time_pretransfer: 0.229767
time_redirect: 0.000000
time_starttransfer: 0.288606
---
time_total: 0.289149

Last updated