Skip to content

Commit 26ad9d3

Browse files
Update descriptions of the initial. settings (#2587) (#2637)
Improve the descriptions of the `initial..` settings to emphasize that they occur only in two cases: - When a DBMS is created (at the first DBMS startup) - When a server is enabled (when you add a new server to the existing cluster)
1 parent 717df66 commit 26ad9d3

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

modules/ROOT/pages/configuration/configuration-settings.adoc

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ m|+++20m+++
838838
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
839839
|===
840840
|Description
841-
a|Automatically enable free servers.
841+
a|Automatically enables servers that are in the `FREE` state - not only during the initial DBMS startup but also whenever a new server joins the cluster.
842842
|Valid values
843843
a|A boolean.
844844
|Default value
@@ -870,7 +870,7 @@ m|+++EQUAL_NUMBERS+++
870870
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
871871
|===
872872
|Description
873-
a|The initial default number of primary servers for the standard databases. If the user does not specify the number of primaries in `CREATE DATABASE`, this value will be used unless overwritten by the `dbms.setDefaultAllocationNumbers` procedure.
873+
a|The initial default number of primaries for the standard databases. Initialized at the first DBMS startup. If the user does not specify the number of primaries in `CREATE DATABASE`, this value will be used unless overwritten by the `dbms.setDefaultAllocationNumbers` procedure.
874874
|Valid values
875875
a|An integer that is minimum `1` and is maximum `11`.
876876
|Default value
@@ -886,7 +886,7 @@ m|+++1+++
886886
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
887887
|===
888888
|Description
889-
a|The initial default number of secondary servers for standard databases. If the user does not specify the number of secondaries in `CREATE DATABASE`, this value will be used unless overwritten by the `dbms.setDefaultAllocationNumbers` procedure.
889+
a|The initial default number of secondaries for the standard databases. Initialized at the first DBMS startup. If the user does not specify the number of secondaries in `CREATE DATABASE`, this value will be used unless overwritten by the `dbms.setDefaultAllocationNumbers` procedure.
890890
|Valid values
891891
a|An integer that is minimum `0` and is maximum `20`.
892892
|Default value
@@ -902,7 +902,7 @@ m|+++0+++
902902
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
903903
|===
904904
|Description
905-
a|Names of the databases allowed on this server; all others are denied. Empty means all are allowed. This configuration can be overridden when enabling the server or altered at runtime without changing this setting. Exclusive with `server.initial_denied_databases`.
905+
a|List of database names allowed on this server; all others are denied. Empty means all are allowed. This configuration is initialized at the first DBMS startup and/or when a newly added server is enabled. The setting is used as the default input for the `ENABLE SERVER` command; can be overriden when the command is executed. Exclusive with `server.initial_denied_databases`.
906906
|Valid values
907907
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name `system`.
908908
|Default value
@@ -918,7 +918,7 @@ m|++++++
918918
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
919919
|===
920920
|Description
921-
a|Names of the databases not allowed on this server. Empty means nothing is denied. This configuration can be overridden when enabling the server or altered at runtime without changing this setting. Exclusive with `server.initial_allowed_databases`.
921+
a|List of database names not allowed on this server. Empty means nothing is denied. This configuration is initialized at the first DBMS startup and/or when a newly added server is enabled. The setting is used as the default input for the `ENABLE SERVER` command; can be overriden when the command is executed. Exclusive with `server.initial_allowed_databases`.
922922
|Valid values
923923
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name `system`.
924924
|Default value
@@ -934,7 +934,9 @@ m|++++++
934934
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
935935
|===
936936
|Description
937-
a|An server can restrict itself to allow databases to be hosted only as primaries or secondaries. This setting is the default input for the `ENABLE SERVER` command - the user can overwrite it when executing the command.
937+
a|Determines whether the server is configured to host primary databases only, secondary databases only, or both.
938+
Initialized at the first DBMS startup and/or when a newly added server is enabled.
939+
The setting is used as the default input for the `ENABLE SERVER` command; can be overriden when the command is executed.
938940
|Valid values
939941
a|One of [PRIMARY, SECONDARY, NONE].
940942
|Default value
@@ -950,7 +952,7 @@ m|+++NONE+++
950952
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
951953
|===
952954
|Description
953-
a|A list of tag names for the server used by the database allocation and when configuring load balancing and replication policies. This setting is the default input for the `ENABLE SERVER` command - the user can overwrite it when executing the command.
955+
a|A list of server tag names used by the database allocation and when configuring load balancing and replication policies. Initialized at the first DBMS startup and/or when a newly added server is enabled. The setting is used as the default input for the `ENABLE SERVER` command; can be overriden when the command is executed.
954956
|Valid values
955957
a|A comma-separated list where each element is a string identifying a server tag, which contains no duplicate items.
956958
|Default value
@@ -2273,19 +2275,21 @@ The DBMS settings must be consistent across all configuration files in a cluster
22732275
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
22742276
|===
22752277
|Description
2276-
a|Name of the default database (aliases are not supported). +
2277-
NOTE: This setting is not the same as `dbms.default_database`, which was used to set the default database in Neo4j 4.x and earlier versions.
2278-
2279-
The `initial.dbms.default_database` setting is meant to set the default database *before* the creation of the DBMS.
2280-
Once it is created, the setting is not valid anymore.
2281-
2282-
To set the default database, use the xref:/clustering/databases.adoc#cluster-default-database[`dbms.setDefaultDatabase()`] procedure instead.
2278+
a|Specifies the default database name *before* the first DBMS startup.
2279+
After the initial default database is created, changing this setting has no effect.
22832280
|Valid values
22842281
a|A valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name system.
22852282
|Default value
22862283
m|+++neo4j+++
22872284
|===
22882285

2286+
[NOTE]
2287+
====
2288+
The `initial.dbms.default_database` is not the same as `dbms.default_database`, which was used to set the default database in Neo4j 4.x and earlier versions.
2289+
2290+
To change the default database, use the xref:/clustering/databases.adoc#cluster-default-database[`dbms.setDefaultDatabase()`] procedure.
2291+
====
2292+
22892293

22902294
[[config_dbms.db.timezone]]
22912295
=== `dbms.db.timezone`

0 commit comments

Comments
 (0)