Skip to content
41 changes: 41 additions & 0 deletions modules/ROOT/pages/reference/procedures.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,16 @@ In 4.2, signature changed to `db.listLocks() :: (mode :: STRING, resourceType ::
| label:yes[]
| label:admin-only[]

| xref:reference/procedures.adoc#procedure_dbms_cluster_switchdiscoveryserviceversion[`dbms.cluster.switchDiscoveryServiceVersion()`]
| label:no[]
| label:yes[]
| label:admin-only[] label:new[Introduced in 5.22]

| xref:reference/procedures.adoc#procedure_dbms_cluster_showparalleldiscoverystate[`dbms.cluster.showParallelDiscoveryState()`]
| label:no[]
| label:yes[]
| label:admin-only[] label:new[Introduced in 5.22]

| xref:reference/procedures.adoc#procedure_dbms_components[`dbms.components()`]
| label:yes[]
| label:yes[]
Expand Down Expand Up @@ -1826,6 +1836,37 @@ m| dbms.cluster.uncordonServer(server :: STRING)
m|WRITE
|===

[[procedure_dbms_cluster_switchdiscoveryserviceversion]]
[role=label--enterprise-edition label--admin-only label--new-5.22]
.dbms.cluster.switchDiscoveryServiceVersion()
[cols="<15s,<85"]
|===
| Description
a| Allows you to select which discovery service should be started.
Possible values are:

* `V1_ONLY` -- it runs only discovery service v1.
* `V1_OVER_V2` -- it runs both Discovery Service V1 and Discovery Service V2, where V1 is the main service and V2 runs in the background.
* `V2_OVER_V1` -- it runs both Discovery Service V1 and Discovery Service V2, where V2 is the main service and V1 runs in the background.
* `V2_ONLY` -- it runs only discovery service v2.
| Signature
m| dbms.cluster.switchDiscoveryServiceVersion(mode :: STRING)
| Mode
m|DBMS
|===

[[procedure_dbms_cluster_showparalleldiscoverystate]]
[role=label--enterprise-edition label--admin-only label--new-5.22]
.dbms.cluster.showParallelDiscoveryState()
[cols="<15s,<85"]
|===
| Description
a| Compare the states of Discovery service V1 and Discovery service V2.
| Signature
m| dbms.cluster.showParallelDiscoveryState() :: (mode :: STRING, realServiceName :: STRING, shadowServiceName :: STRING, stateComparison :: STRING)
| Mode
m|DBMS
|===

[[procedure_dbms_components]]
.dbms.components()
Expand Down