-
Couldn't load subscription status.
- Fork 83
Improve the page on managing servers in cluster #2686
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,23 @@ | ||
| :description: This section provides a summary of server management Cypher syntax. | ||
| [role=enterprise-edition] | ||
| [[server-commands-reference]] | ||
| = Server commands reference | ||
| = Server management command syntax | ||
|
|
||
| Servers can be added and managed using a set of Cypher administration commands executed against the `system` database. | ||
| Servers can be added and managed using a set of Cypher administrative commands executed against the `system` database. | ||
|
|
||
| When connected to the DBMS over `bolt`, administration commands are automatically routed to the `system` database. | ||
| When connected to the DBMS over `bolt`, administrative commands are automatically routed to the `system` database. | ||
|
|
||
|
|
||
| [[server-management-syntax]] | ||
| == Server management command syntax | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| More details about the syntax descriptions can be found xref:database-administration/syntax.adoc[here]. | ||
| More details about the syntax descriptions can be found on the page xref:database-administration/syntax.adoc#administration-syntax-reading[Database management command syntax -> Reading the administrative commands syntax]. | ||
| ==== | ||
|
|
||
| === Enable a server | ||
|
|
||
| [cols="<15s,<85"] | ||
| |=== | ||
| | Command | ||
|
|
@@ -38,73 +40,86 @@ a| `GRANT SERVER MANAGEMENT` | |
| (see xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-privilege-management[SERVER MANAGEMENT privileges]) | ||
| |=== | ||
|
|
||
|
|
||
| === List servers | ||
|
|
||
| [cols="<15s,<85"] | ||
| |=== | ||
| | Command | ||
| m| ALTER SERVER | ||
| m| SHOW SERVERS | ||
|
|
||
| | Syntax | ||
| a| | ||
| [source, syntax, role=noheader] | ||
| ---- | ||
| ALTER SERVER 'name' SET OPTIONS "{" option: value[,...] "}" | ||
| SHOW SERVER[S] | ||
| [YIELD { * \| field[, ...] } [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] | ||
| [WHERE expression] | ||
| [RETURN field[, ...] [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] | ||
| ---- | ||
|
|
||
| | Description | ||
| a| Changes the constraints for a server. | ||
| For more information see xref:clustering/servers.adoc#alter-server-options[Altering server options]. | ||
| a| Lists all servers visible to the cluster. | ||
| For more information see xref:clustering/servers.adoc#_listing_servers[Listing servers]. | ||
|
|
||
| | Required privilege | ||
| a| `GRANT SERVER MANAGEMENT` | ||
| a| `GRANT SHOW SERVERS` | ||
|
|
||
| (see xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-privilege-management[SERVER MANAGEMENT privileges]) | ||
| |=== | ||
|
|
||
|
|
||
| === Alter server's options | ||
|
|
||
| [cols="<15s,<85"] | ||
| |=== | ||
| | Command | ||
| m| RENAME SERVER | ||
| m| ALTER SERVER | ||
|
|
||
| | Syntax | ||
| a| | ||
| [source, syntax, role=noheader] | ||
| ---- | ||
| RENAME SERVER 'name' TO 'newName' | ||
| ALTER SERVER 'name' SET OPTIONS "{" option: value[,...] "}" | ||
| ---- | ||
|
|
||
| | Description | ||
| a| Changes the name of a server. | ||
| For more information see xref:clustering/servers.adoc#_renaming_a_server[Renaming a server]. | ||
| a| Changes the constraints for a server. | ||
| For more information see xref:clustering/servers.adoc#alter-server-options[Altering server options]. | ||
|
|
||
| | Required privilege | ||
| a| `GRANT SERVER MANAGEMENT` | ||
|
|
||
| (see xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-privilege-management[SERVER MANAGEMENT privileges]) | ||
| |=== | ||
|
|
||
| === Rename a server | ||
|
|
||
| [cols="<15s,<85"] | ||
| |=== | ||
| | Command | ||
| m| DEALLOCATE DATABASES | ||
| m| RENAME SERVER | ||
|
|
||
| | Syntax | ||
| a| | ||
| [source, syntax, role=noheader] | ||
| ---- | ||
| [DRYRUN] DEALLOCATE DATABASE[S] FROM SERVER[S] 'name'[, ...] | ||
| RENAME SERVER 'name' TO 'newName' | ||
| ---- | ||
|
|
||
| | Description | ||
| a| Removes all databases from the given servers. | ||
| For more information see xref:clustering/servers.adoc#_deallocating_databases_from_a_server[Deallocating databases from server]. | ||
| a| Changes the name of a server. | ||
| For more information see xref:clustering/servers.adoc#_renaming_a_server[Renaming a server]. | ||
|
|
||
| | Required privilege | ||
| a| `GRANT SERVER MANAGEMENT` | ||
|
|
||
| (see xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-privilege-management[SERVER MANAGEMENT privileges]) | ||
| |=== | ||
|
|
||
|
|
||
| === Remove a server | ||
|
|
||
| [cols="<15s,<85"] | ||
| |=== | ||
| | Command | ||
|
|
@@ -127,51 +142,55 @@ a| `GRANT SERVER MANAGEMENT` | |
| (see xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-privilege-management[SERVER MANAGEMENT privileges]) | ||
| |=== | ||
|
|
||
|
|
||
| === Reallocate databases in a cluster | ||
|
|
||
| [cols="<15s,<85"] | ||
| |=== | ||
| | Command | ||
| m| SHOW SERVERS | ||
| m| REALLOCATE DATABASES | ||
|
|
||
| | Syntax | ||
| a| | ||
| [source, syntax, role=noheader] | ||
| ---- | ||
| SHOW SERVER[S] | ||
| [YIELD { * \| field[, ...] } [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] | ||
| [WHERE expression] | ||
| [RETURN field[, ...] [ORDER BY field[, ...]] [SKIP n] [LIMIT n]] | ||
| [DRYRUN] REALLOCATE DATABASE[S] | ||
| ---- | ||
|
|
||
| | Description | ||
| a| Lists all servers visible to the cluster. | ||
| For more information see xref:clustering/servers.adoc#_listing_servers[Listing servers]. | ||
| a| Re-balances databases among the servers in the cluster. | ||
| For more information see xref:clustering/servers.adoc#_hosting_databases_on_added_servers[Hosting databases on added servers]. | ||
|
|
||
| Note that is a cluster-level command, not a server-level command. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we define anywhere what is meant by "cluster-level" and "server-level"? It makes sense to me, but possibly not to a user who is less familiar with clustering parlance. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good comment, but I will return to this page later, in another PR. I'd prefer to keep them and explain if it's needed. |
||
|
|
||
| | Required privilege | ||
| a| `GRANT SHOW SERVERS` | ||
| a| `GRANT SERVER MANAGEMENT` | ||
|
|
||
| (see xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-privilege-management[SERVER MANAGEMENT privileges]) | ||
| |=== | ||
|
|
||
|
|
||
| === Deallocate databases from a server | ||
|
|
||
| [cols="<15s,<85"] | ||
| |=== | ||
| | Command | ||
| m| REALLOCATE DATABASES | ||
| m| DEALLOCATE DATABASES | ||
|
|
||
| | Syntax | ||
| a| | ||
| [source, syntax, role=noheader] | ||
| ---- | ||
| [DRYRUN] REALLOCATE DATABASE[S] | ||
| [DRYRUN] DEALLOCATE DATABASE[S] FROM SERVER[S] 'name'[, ...] | ||
| ---- | ||
|
|
||
| | Description | ||
| a| Re-balances databases among the servers in the cluster. | ||
| For more information see xref:clustering/servers.adoc#_hosting_databases_on_added_servers[Hosting databases on added servers]. | ||
|
|
||
| Note that is a cluster-level command, not a server-level command. | ||
| a| Removes all databases from the given servers. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We possibly make this more precise by saying "all user databases", but I don't think that is super important. |
||
| For more information see xref:clustering/servers.adoc#_deallocating_databases_from_a_server[Deallocating databases from server]. | ||
|
|
||
| | Required privilege | ||
| a| `GRANT SERVER MANAGEMENT` | ||
|
|
||
| (see xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-privilege-management[SERVER MANAGEMENT privileges]) | ||
| |=== | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our position is that we try mention Raft as little as possible in the documentation as it is an implementation-level detail; in theory we could change consensus algorithms tomorrow. We don't mention Raft anywhere else in this page so I don't think we need to add this line, primarily as we then would need to explain "what is Raft".