Skip to content

Add docs for check external connection #19642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

katmayb
Copy link
Contributor

@katmayb katmayb commented May 23, 2025

Fixes DOC-10392

This PR adds SQL syntax page for the CHECK EXTERNAL CONNECTION statement, which tests the connection from each node to a provided URI.

Also, adds a tip to check/use the tool on relevant pages.

Added to v25.1 and v25.2 docs.

Preview

https://deploy-preview-19642--cockroachdb-docs.netlify.app/docs/v25.2/check-external-connection.html

Copy link

github-actions bot commented May 23, 2025

Copy link

netlify bot commented May 23, 2025

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit f714b9c
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/68472c7de8ebce000872c5bb

Copy link

netlify bot commented May 23, 2025

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit f714b9c
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/68472c7d1188c2000847e3d8

Copy link

netlify bot commented May 23, 2025

Netlify Preview

Name Link
🔨 Latest commit f714b9c
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/68472c7d4c1a8f0008776022
😎 Deploy Preview https://deploy-preview-19642--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@katmayb katmayb force-pushed the check-external-connection-docs branch from c6c4daf to eb4a848 Compare May 29, 2025 14:50
@katmayb katmayb marked this pull request as ready for review May 29, 2025 15:26
@katmayb katmayb requested a review from kev-cao May 29, 2025 15:26
@katmayb
Copy link
Contributor Author

katmayb commented May 29, 2025

cc @alicia-l2

@katmayb
Copy link
Contributor Author

katmayb commented May 29, 2025

Note, the updated SQL diagram will pull through in an upcoming release.

@katmayb
Copy link
Contributor Author

katmayb commented Jun 4, 2025

@kev-cao Just a friendly ping to review this, thanks!

@katmayb katmayb requested a review from kev-cao June 5, 2025 14:07
@katmayb
Copy link
Contributor Author

katmayb commented Jun 5, 2025

@kev-cao Fixed, thanks!

Copy link

@alicia-l2 alicia-l2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small comment - otherwise LGTM! thank you!

@katmayb
Copy link
Contributor Author

katmayb commented Jun 9, 2025

@kev-cao can you PTAL when you're ready, thanks!

@katmayb katmayb requested a review from rmloveland June 9, 2025 14:15
Copy link
Contributor

@rmloveland rmloveland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, small non-blocking comments


Option | Value | Description
--------+-------+------------
`concurrently` | `INT` | Run multiple connection tests concurrently. If you also set the `time` option, it will run the specified number of concurrent tests until the time has elapsed. By default, only `1` connection test will run.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i assume concurrentLY is intentional and is not concurrenCY ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, it's concurrently!

Option | Value | Description
--------+-------+------------
`concurrently` | `INT` | Run multiple connection tests concurrently. If you also set the `time` option, it will run the specified number of concurrent tests until the time has elapsed. By default, only `1` connection test will run.
`time` | `STRING` | Run the test repeatedly until the duration has elapsed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is an actual DURATION it would be good to link to those docs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a duration string, which we don't have type docs for

--------+-------+------------
`concurrently` | `INT` | Run multiple connection tests concurrently. If you also set the `time` option, it will run the specified number of concurrent tests until the time has elapsed. By default, only `1` connection test will run.
`time` | `STRING` | Run the test repeatedly until the duration has elapsed.
`transfer` | `STRING` | The size of the file that is written and read during each iteration of the connection test. By default, this will transfer a `32MiB` file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was curious if we have docs somewhere on how we format file sizes in the STRING data type, e.g. what if i type 32MB instead of 32MiB - i just looked and we don't, but we do pass values like this as strings in a bunch of places so it's hopefully obvious

------|-------|------------
`node` | `INT` | The node ID.
`locality` | `STRING` | The [locality]({% link {{ page.version.version }}/cockroach-start.md %}#locality) of the node.
`ok` | `BOOL` | The success of the test run.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small but i would find this clearer as "whether the test run succeeded"

`transferred` | `STRING` | The size of the file transferred during the test.
`read_speed` | `STRING` | The speed at which the node read the test file.
`write_speed` | `STRING` | The speed at which the node wrote the test file.
`can_delete` | `BOOL` | The success of file deletion.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest "whether file deletion succeeded" (if accurate)

`write_speed` | `STRING` | The speed at which the node wrote the test file.
`can_delete` | `BOOL` | The success of file deletion.

## Examples
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: singular 'example'

OR

could create a subheading 'Test an external connection', which would leave room for adding examples in future if desired

i slightly lean latter but either would work i think

---
title: CHECK EXTERNAL CONNECTION
summary: Test the connection of each node to your cloud storage location.
toc: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest adding docs_area: reference.sql to the frontmatter so this matches our other pages

(PS i should probably go look if this still matters? ISTR Jesse was doing this for "reasons" but i no longer remember why)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't think we had to use this anymore, and checked in with Mike and he confirmed it's ok to drop that in the FM.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I filed https://cockroachlabs.atlassian.net/browse/DOC-13935 for us to remove them

@katmayb katmayb force-pushed the check-external-connection-docs branch from 682d7ca to f714b9c Compare June 9, 2025 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants