Configuration settings

This page provides a complete reference to the Neo4j configuration settings, which can be set in neo4j.conf. Refer to The neo4j.conf file for details on how to use configuration settings.

Some of the settings are labeled Dynamic, which means that they can be changed at runtime, without restarting the service. For more information on how to update dynamic configuration settings, see Update dynamic settings.

Changes to the configuration at runtime are not persisted. To avoid losing changes when restarting Neo4j, make sure you update neo4j.conf as well.

In a clustered environment, CALL dbms.setConfigValue affects only the server it is run against, and it is not propagated to other members. If you want to change the configuration settings on all cluster members, you have to run the procedure against each of them and update their neo4j.conf file.

Checkpoint settings

Checkpointing is the process of flushing all pending page updates from the page cache to the store files. This is done periodically and is used to recover the database in case of a crash. The checkpoint settings control the frequency of checkpoints, and the amount of data that is written to disk in each checkpoint. See also, Transaction log settings.

db.checkpoint

Table 1. db.checkpoint

Description

Configures the general policy for when checkpoints should occur. The default policy is the 'periodic' checkpoint policy, as specified by the db.checkpoint.interval.tx and db.checkpoint.interval.time settings. The Neo4j Enterprise Edition provides two alternative policies: The first is the 'continuous' checkpoint policy, which will ignore those settings and run the checkpoint process all the time. The second is the 'volumetric' checkpoint policy, which makes a best-effort at checkpointing often enough so that the database doesn’t get too far behind on deleting old transaction logs in accordance with the db.tx_log.rotation.retention_policy setting.

Valid values

db.checkpoint, one of [PERIODIC, CONTINUOUS, VOLUME, VOLUMETRIC]

Default value

PERIODIC

db.checkpoint.interval.time

Table 2. db.checkpoint.interval.time

Description

Configures the time interval between checkpoints. The database will not checkpoint more often than this (unless checkpointing is triggered by a different event), but might checkpoint less often than this interval, if performing a checkpoint takes longer time than the configured interval. A checkpoint is a point in the transaction logs, which recovery would start from. Longer checkpoint intervals typically mean that recovery will take longer to complete in case of a crash. On the other hand, a longer checkpoint interval can also reduce the I/O load that the database places on the system, as each checkpoint implies a flushing and forcing of all the store files.

Valid values

db.checkpoint.interval.time, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

15m

db.checkpoint.interval.tx

Table 3. db.checkpoint.interval.tx

Description

Configures the transaction interval between checkpoints. The database will not checkpoint more often than this (unless check pointing is triggered by a different event), but might checkpoint less often than this interval, if performing a checkpoint takes longer time than the configured interval. A checkpoint is a point in the transaction logs, which recovery would start from. Longer checkpoint intervals typically mean that recovery will take longer to complete in case of a crash. On the other hand, a longer checkpoint interval can also reduce the I/O load that the database places on the system, as each checkpoint implies a flushing and forcing of all the store files. The default is '100000' for a checkpoint every 100000 transactions.

Valid values

db.checkpoint.interval.tx, an integer which is minimum 1

Default value

100000

db.checkpoint.interval.volume

Table 4. db.checkpoint.interval.volume

Description

Configures the volume of transaction logs between checkpoints. The database will not checkpoint more often than this (unless check pointing is triggered by a different event), but might checkpoint less often than this interval, if performing a checkpoint takes longer time than the configured interval. A checkpoint is a point in the transaction logs, which recovery would start from. Longer checkpoint intervals typically mean that recovery will take longer to complete in case of a crash. On the other hand, a longer checkpoint interval can also reduce the I/O load that the database places on the system, as each checkpoint implies a flushing and forcing of all the store files.

Valid values

db.checkpoint.interval.volume, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 1.00KiB

Default value

250.00MiB

db.checkpoint.iops.limit

Dynamic

Table 5. db.checkpoint.iops.limit

Description

Limit the number of IOs the background checkpoint process will consume per second. This setting is advisory, is ignored in Neo4j Community Edition, and is followed to best effort in Enterprise Edition. An IO is in this case a 8 KiB (mostly sequential) write. Limiting the write IO in this way will leave more bandwidth in the IO subsystem to service random-read IOs, which is important for the response time of queries when the database cannot fit entirely in memory. The only drawback of this setting is that longer checkpoint times may lead to slightly longer recovery times in case of a database or system crash. A lower number means lower IO pressure, and consequently longer checkpoint times. Set this to -1 to disable the IOPS limit and remove the limitation entirely; this will let the checkpointer flush data as fast as the hardware will go. Removing the setting, or commenting it out, will set the default value of 600.

Valid values

db.checkpoint.iops.limit, an integer

Default value

600

Cluster settings

db.cluster.catchup.pull_interval

Enterprise Edition

Table 6. db.cluster.catchup.pull_interval

Description

Interval of pulling updates from cores.

Valid values

db.cluster.catchup.pull_interval, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

1s

db.cluster.raft.apply.buffer.max_bytes

Enterprise Edition

Table 7. db.cluster.raft.apply.buffer.max_bytes

Description

The maximum number of bytes in the apply buffer. This parameter limits the amount of memory that can be consumed by the apply buffer. If the bytes limit is reached, buffer size will be limited even if max_entries is not exceeded.

Valid values

db.cluster.raft.apply.buffer.max_bytes, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

Default value

1.00GiB

db.cluster.raft.apply.buffer.max_entries

Enterprise Edition

Table 8. db.cluster.raft.apply.buffer.max_entries

Description

The maximum number of entries in the raft log entry prefetch buffer.

Valid values

db.cluster.raft.apply.buffer.max_entries, an integer

Default value

1024

db.cluster.raft.in_queue.batch.max_bytes

Enterprise Edition

Table 9. db.cluster.raft.in_queue.batch.max_bytes

Description

Largest batch processed by RAFT in bytes.

Valid values

db.cluster.raft.in_queue.batch.max_bytes, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

Default value

8.00MiB

db.cluster.raft.in_queue.max_bytes

Enterprise Edition

Table 10. db.cluster.raft.in_queue.max_bytes

Description

Maximum number of bytes in the RAFT in-queue.

Valid values

db.cluster.raft.in_queue.max_bytes, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

Default value

2.00GiB

db.cluster.raft.leader_transfer.priority_group

Enterprise Edition

Table 11. db.cluster.raft.leader_transfer.priority_group

Description

The name of a server_group whose members should be prioritized as leaders. This does not guarantee that members of this group will be leader at all times, but the cluster will attempt to transfer leadership to such a member when possible. If a database is specified using db.cluster.raft.leader_transfer.priority_group.<database> the specified priority group will apply to that database only. If no database is specified that group will be the default and apply to all databases which have no priority group explicitly set. Using this setting will disable leadership balancing.

Valid values

db.cluster.raft.leader_transfer.priority_group, a string identifying a Server Tag

Default value

db.cluster.raft.log.prune_strategy

Enterprise Edition

Table 12. db.cluster.raft.log.prune_strategy

Description

RAFT log pruning strategy that determines which logs are to be pruned. Neo4j only prunes log entries up to the last applied index, which guarantees that logs are only marked for pruning once the transactions within are safely copied over to the local transaction logs and safely committed by a majority of cluster members. Possible values are a byte size or a number of transactions (e.g., 200K txs).

Valid values

db.cluster.raft.log.prune_strategy, a string

Default value

1g size

db.cluster.raft.log_shipping.buffer.max_bytes

Enterprise Edition

Table 13. db.cluster.raft.log_shipping.buffer.max_bytes

Description

The maximum number of bytes in the in-flight cache. This parameter limits the amount of memory that can be consumed by cache. If the bytes limit is reached, cache size will be limited even if max_entries is not exceeded.

Valid values

db.cluster.raft.log_shipping.buffer.max_bytes, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

Default value

1.00GiB

db.cluster.raft.log_shipping.buffer.max_entries

Enterprise Edition

Table 14. db.cluster.raft.log_shipping.buffer.max_entries

Description

The maximum number of entries in the in-flight cache. Increasing size will require more memory but might improve performance in high load situations.

Valid values

db.cluster.raft.log_shipping.buffer.max_entries, an integer

Default value

1024

dbms.cluster.catchup.client_inactivity_timeout

Enterprise Edition

Table 15. dbms.cluster.catchup.client_inactivity_timeout

Description

The catch up protocol times out if the given duration elapses with no network activity. Every message received by the client from the server extends the time out duration.

Valid values

dbms.cluster.catchup.client_inactivity_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10m

dbms.cluster.discovery.endpoints

Enterprise Edition

Table 16. dbms.cluster.discovery.endpoints

Description

A comma-separated list of endpoints which a server should contact in order to discover other cluster members. Typically, all members of the cluster, including the current server, should be specified in this list.

Valid values

dbms.cluster.discovery.endpoints, a ',' separated list with elements of type 'a socket address in the format 'hostname:port', 'hostname' or ':port''.

dbms.cluster.discovery.log_level

Enterprise Edition

Table 17. dbms.cluster.discovery.log_level

Description

The level of middleware logging.

Valid values

dbms.cluster.discovery.log_level, one of [DEBUG, INFO, WARN, ERROR, NONE]

Default value

WARN

dbms.cluster.discovery.resolver_type

Enterprise Edition

Table 18. dbms.cluster.discovery.resolver_type

Description

Configure the discovery resolver type used for cluster member resolution.

Valid values

dbms.cluster.discovery.resolver_type, one of [DNS, LIST, SRV, K8S] which may require different settings depending on the discovery type: DNS requires [dbms.cluster.discovery.endpoints], LIST requires [], SRV requires [dbms.cluster.discovery.endpoints], K8S requires [dbms.kubernetes.label_selector, dbms.kubernetes.service_port_name]

Default value

LIST

dbms.cluster.minimum_initial_system_primaries_count

Enterprise Edition

Table 19. dbms.cluster.minimum_initial_system_primaries_count

Description

Minimum number of machines initially required to form a clustered DBMS. The cluster is considered formed when at least this many members have discovered each other, bound together and bootstrapped a highly available system database. As a result, at least this many of the cluster’s initial machines must have server.cluster.system_database_mode set to 'PRIMARY'.NOTE: If dbms.cluster.discovery.resolver_type is set to 'LIST' and dbms.cluster.discovery.endpoints is empty then the user is assumed to be deploying a standalone DBMS, and the value of this setting is ignored.

Valid values

dbms.cluster.minimum_initial_system_primaries_count, an integer which is minimum 2

Default value

3

dbms.cluster.network.handshake_timeout

Enterprise Edition

Table 20. dbms.cluster.network.handshake_timeout

Description

Time out for protocol negotiation handshake.

Valid values

dbms.cluster.network.handshake_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

20s

dbms.cluster.network.max_chunk_size

Enterprise Edition

Table 21. dbms.cluster.network.max_chunk_size

Description

Maximum chunk size allowable across network by clustering machinery.

Valid values

dbms.cluster.network.max_chunk_size, an integer which is in the range 4096 to 10485760

Default value

32768

dbms.cluster.network.supported_compression_algos

Enterprise Edition

Table 22. dbms.cluster.network.supported_compression_algos

Description

Network compression algorithms that this instance will allow in negotiation as a comma-separated list. Listed in descending order of preference for incoming connections. An empty list implies no compression. For outgoing connections this merely specifies the allowed set of algorithms and the preference of the remote peer will be used for making the decision. Allowable values: [Gzip, Snappy, Snappy_validating, LZ4, LZ4_high_compression, LZ_validating, LZ4_high_compression_validating]

Valid values

dbms.cluster.network.supported_compression_algos, a ',' separated list with elements of type 'a string'.

Default value

dbms.cluster.raft.binding_timeout

Enterprise Edition

Table 23. dbms.cluster.raft.binding_timeout

Description

The time allowed for a database on a Neo4j server to either join a cluster or form a new cluster with the other Neo4j Servers provided by dbms.cluster.discovery.endpoints.

Valid values

dbms.cluster.raft.binding_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10m

dbms.cluster.raft.client.max_channels

Enterprise Edition

Table 24. dbms.cluster.raft.client.max_channels

Description

The maximum number of TCP channels between two nodes to operate the raft protocol. Each database gets allocated one channel, but a single channel can be used by more than one database.

Valid values

dbms.cluster.raft.client.max_channels, an integer

Default value

8

dbms.cluster.raft.election_failure_detection_window

Enterprise Edition

Table 25. dbms.cluster.raft.election_failure_detection_window

Description

The rate at which leader elections happen. Note that due to election conflicts it might take several attempts to find a leader. The window should be significantly larger than typical communication delays to make conflicts unlikely.

Valid values

dbms.cluster.raft.election_failure_detection_window, a duration-range <min-max> (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

3s-6s

dbms.cluster.raft.leader_failure_detection_window

Enterprise Edition

Table 26. dbms.cluster.raft.leader_failure_detection_window

Description

The time window within which the loss of the leader is detected and the first re-election attempt is held. The window should be significantly larger than typical communication delays to make conflicts unlikely.

Valid values

dbms.cluster.raft.leader_failure_detection_window, a duration-range <min-max> (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

20s-23s

dbms.cluster.raft.leader_transfer.balancing_strategy

Enterprise Edition

Table 27. dbms.cluster.raft.leader_transfer.balancing_strategy

Description

Which strategy to use when transferring database leaderships around a cluster. This can be one of equal_balancing or no_balancing. equal_balancing automatically ensures that each Core server holds the leader role for an equal number of databases.no_balancing prevents any automatic balancing of the leader role. Note that if a leadership_priority_group is specified for a given database, the value of this setting will be ignored for that database.

Valid values

dbms.cluster.raft.leader_transfer.balancing_strategy, one of [NO_BALANCING, EQUAL_BALANCING]

Default value

EQUAL_BALANCING

dbms.cluster.raft.log.pruning_frequency

Enterprise Edition

Table 28. dbms.cluster.raft.log.pruning_frequency

Description

RAFT log pruning frequency.

Valid values

dbms.cluster.raft.log.pruning_frequency, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10m

dbms.cluster.raft.log.reader_pool_size

Enterprise Edition

Table 29. dbms.cluster.raft.log.reader_pool_size

Description

RAFT log reader pool size.

Valid values

dbms.cluster.raft.log.reader_pool_size, an integer

Default value

8

dbms.cluster.raft.log.rotation_size

Enterprise Edition

Table 30. dbms.cluster.raft.log.rotation_size

Description

RAFT log rotation size.

Valid values

dbms.cluster.raft.log.rotation_size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 1.00KiB

Default value

250.00MiB

dbms.cluster.raft.membership.join_max_lag

Enterprise Edition

Table 31. dbms.cluster.raft.membership.join_max_lag

Description

Maximum amount of lag accepted for a new follower to join the Raft group.

Valid values

dbms.cluster.raft.membership.join_max_lag, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10s

dbms.cluster.raft.membership.join_timeout

Enterprise Edition

Table 32. dbms.cluster.raft.membership.join_timeout

Description

Time out for a new member to catch up.

Valid values

dbms.cluster.raft.membership.join_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10m

dbms.cluster.store_copy.max_retry_time_per_request

Enterprise Edition

Table 33. dbms.cluster.store_copy.max_retry_time_per_request

Description

Maximum retry time per request during store copy. Regular store files and indexes are downloaded in separate requests during store copy. This configures the maximum time failed requests are allowed to resend.

Valid values

dbms.cluster.store_copy.max_retry_time_per_request, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

20m

initial.dbms.database_allocator

Enterprise Edition

Table 34. initial.dbms.database_allocator

Description

Name of the initial database allocator. After the creation of the dbms it can be set with the 'dbms.setDatabaseAllocator' procedure.

Valid values

initial.dbms.database_allocator, a string

Default value

EQUAL_NUMBERS

initial.dbms.default_primaries_count

Enterprise Edition

Table 35. initial.dbms.default_primaries_count

Description

Initial default number of primary instances of user databases. If the user does not specify the number of primaries in 'CREATE DATABASE', this value will be used, unless it is overwritten with the 'dbms.setDefaultAllocationNumbers' procedure.

Valid values

initial.dbms.default_primaries_count, an integer which is minimum 1 and is maximum 11. The same value applies to runtime max number.

Default value

1

initial.dbms.default_secondaries_count

Enterprise Edition

Table 36. initial.dbms.default_secondaries_count

Description

Initial default number of secondary instances of user databases. If the user does not specify the number of secondaries in 'CREATE DATABASE', this value will be used, unless it is overwritten with the 'dbms.setDefaultAllocationNumbers' procedure.

Valid values

initial.dbms.default_secondaries_count, an integer which is minimum 0 and is maximum 20. The same value applies to runtime max number.

Default value

0

initial.server.allowed_databases

Enterprise Edition

Table 37. initial.server.allowed_databases

Description

The names of databases that are allowed on this server - all others are denied. Empty means all are allowed. Can be overridden when enabling the server, or altered at runtime, without changing this setting. Exclusive with 'server.initial_denied_databases'

Valid values

initial.server.allowed_databases, a ',' separated set with elements of type 'a string'.

Default value

initial.server.denied_databases

Enterprise Edition

Table 38. initial.server.denied_databases

Description

The names of databases that are not allowed on this server. Empty means nothing is denied. Can be overridden when enabling the server, or altered at runtime, without changing this setting. Exclusive with 'server.initial_allowed_databases'

Valid values

initial.server.denied_databases, a ',' separated set with elements of type 'a string'.

Default value

initial.server.mode_constraint

Enterprise Edition

Table 39. initial.server.mode_constraint

Description

An instance 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 procedure.

Valid values

initial.server.mode_constraint, one of [PRIMARY, SECONDARY, NONE]

Default value

NONE

initial.server.tags

Enterprise Edition

Table 40. initial.server.tags

Description

A list of tag names for the server used by database allocation and when configuring load balancing and replication policies.

Valid values

initial.server.tags, a ',' separated list with elements of type 'a string identifying a Server Tag'.

Default value

server.cluster.advertised_address

Enterprise Edition

Table 41. server.cluster.advertised_address

Description

Advertised hostname/IP address and port for the transaction shipping server.

Valid values

server.cluster.advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which accessible address. If missing port or hostname it is acquired from server.default_advertised_address

Default value

:6000

server.cluster.catchup.connect_randomly_to_server_group

Enterprise Edition Dynamic

Table 42. server.cluster.catchup.connect_randomly_to_server_group

Description

Comma separated list of groups to be used by the connect-randomly-to-server-group selection strategy. The connect-randomly-to-server-group strategy is used if the list of strategies (server.cluster.catchup.upstream_strategy) includes the value connect-randomly-to-server-group.

Valid values

server.cluster.catchup.connect_randomly_to_server_group, a ',' separated list with elements of type 'a string identifying a Server Tag'.

Default value

server.cluster.catchup.upstream_strategy

Enterprise Edition

Table 43. server.cluster.catchup.upstream_strategy

Description

An ordered list in descending preference of the strategy which secondaries use to choose the upstream server from which to pull transactional updates. If none are valid or the list is empty, there is a default strategy of typically-connect-to-random-secondary.

Valid values

server.cluster.catchup.upstream_strategy, a ',' separated list with elements of type 'a string'.

Default value

server.cluster.catchup.user_defined_upstream_strategy

Enterprise Edition

Table 44. server.cluster.catchup.user_defined_upstream_strategy

Description

Configuration of a user-defined upstream selection strategy. The user-defined strategy is used if the list of strategies (server.cluster.catchup.upstream_strategy) includes the value user_defined.

Valid values

server.cluster.catchup.user_defined_upstream_strategy, a string

Default value

server.cluster.listen_address

Enterprise Edition

Table 45. server.cluster.listen_address

Description

Network interface and port for the transaction shipping server to listen on. Please note that it is also possible to run the backup client against this port so always limit access to it via the firewall and configure an ssl policy.

Valid values

server.cluster.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:6000

server.cluster.network.native_transport_enabled

Enterprise Edition

Table 46. server.cluster.network.native_transport_enabled

Description

Use native transport if available. Epoll for Linux or Kqueue for MacOS/BSD. If this setting is set to false, or if native transport is not available, Nio transport will be used.

Valid values

server.cluster.network.native_transport_enabled, a boolean

Default value

true

server.cluster.raft.advertised_address

Enterprise Edition

Table 47. server.cluster.raft.advertised_address

Description

Advertised hostname/IP address and port for the RAFT server.

Valid values

server.cluster.raft.advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which accessible address. If missing port or hostname it is acquired from server.default_advertised_address

Default value

:7000

server.cluster.raft.listen_address

Enterprise Edition

Table 48. server.cluster.raft.listen_address

Description

Network interface and port for the RAFT server to listen on.

Valid values

server.cluster.raft.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:7000

server.cluster.system_database_mode

Enterprise Edition

Table 49. server.cluster.system_database_mode

Description

Users must manually specify the mode for the system database on each instance.

Valid values

server.cluster.system_database_mode, one of [PRIMARY, SECONDARY]

Default value

PRIMARY

server.discovery.listen_address

Enterprise Edition

Table 50. server.discovery.listen_address

Description

Host and port to bind the cluster member discovery management communication.

Valid values

server.discovery.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:5000

server.groups

Enterprise Edition Dynamic Deprecated in 5.4

Table 51. server.groups

Description

A list of tag names for the server used when configuring load balancing and replication policies.

Valid values

server.groups, a ',' separated list with elements of type 'a string identifying a Server Tag'.

Default value

Replaced by

initial.server.tags

Connection settings

server.bolt.advertised_address

Table 52. server.bolt.advertised_address

Description

Advertised address for this connector.

Valid values

server.bolt.advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which accessible address. If missing port or hostname it is acquired from server.default_advertised_address

Default value

:7687

server.bolt.connection_keep_alive

Table 53. server.bolt.connection_keep_alive

Description

The maximum time to wait before sending a NOOP on connections waiting for responses from active ongoing queries.The minimum value is 1 millisecond.

Valid values

server.bolt.connection_keep_alive, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s) which is minimum 1ms

Default value

1m

server.bolt.connection_keep_alive_for_requests

Table 54. server.bolt.connection_keep_alive_for_requests

Description

The type of messages to enable keep-alive messages for (ALL, STREAMING or OFF)

Valid values

server.bolt.connection_keep_alive_for_requests, one of [ALL, STREAMING, OFF]

Default value

STREAMING

server.bolt.connection_keep_alive_probes

Table 55. server.bolt.connection_keep_alive_probes

Description

The total amount of probes to be missed before a connection is considered stale.The minimum for this value is 1.

Valid values

server.bolt.connection_keep_alive_probes, an integer which is minimum 1

Default value

2

server.bolt.connection_keep_alive_streaming_scheduling_interval

Table 56. server.bolt.connection_keep_alive_streaming_scheduling_interval

Description

The interval between every scheduled keep-alive check on all connections with active queries. Zero duration turns off keep-alive service.

Valid values

server.bolt.connection_keep_alive_streaming_scheduling_interval, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s) which is minimum 0s

Default value

1m

server.bolt.enabled

Table 57. server.bolt.enabled

Description

Enable the bolt connector.

Valid values

server.bolt.enabled, a boolean

Default value

true

server.bolt.listen_address

Table 58. server.bolt.listen_address

Description

Address the connector should bind to.

Valid values

server.bolt.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:7687

server.bolt.ocsp_stapling_enabled

Table 59. server.bolt.ocsp_stapling_enabled

Description

Enable server OCSP stapling for bolt and http connectors.

Valid values

server.bolt.ocsp_stapling_enabled, a boolean

Default value

false

server.bolt.thread_pool_keep_alive

Table 60. server.bolt.thread_pool_keep_alive

Description

The maximum time an idle thread in the thread pool bound to this connector will wait for new tasks.

Valid values

server.bolt.thread_pool_keep_alive, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

5m

server.bolt.thread_pool_max_size

Table 61. server.bolt.thread_pool_max_size

Description

The maximum number of threads allowed in the thread pool bound to this connector.

Valid values

server.bolt.thread_pool_max_size, an integer

Default value

400

server.bolt.thread_pool_min_size

Table 62. server.bolt.thread_pool_min_size

Description

The number of threads to keep in the thread pool bound to this connector, even if they are idle.

Valid values

server.bolt.thread_pool_min_size, an integer

Default value

5

server.bolt.tls_level

Table 63. server.bolt.tls_level

Description

Encryption level to require this connector to use.

Valid values

server.bolt.tls_level, one of [REQUIRED, OPTIONAL, DISABLED]

Default value

DISABLED

server.http.advertised_address

Table 64. server.http.advertised_address

Description

Advertised address for this connector.

Valid values

server.http.advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which accessible address. If missing port or hostname it is acquired from server.default_advertised_address

Default value

:7474

server.http.enabled

Table 65. server.http.enabled

Description

Enable the http connector.

Valid values

server.http.enabled, a boolean

Default value

true

server.http.listen_address

Table 66. server.http.listen_address

Description

Address the connector should bind to.

Valid values

server.http.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:7474

server.http_enabled_modules

Table 67. server.http_enabled_modules

Description

Defines the set of modules loaded into the Neo4j web server. Options include TRANSACTIONAL_ENDPOINTS, BROWSER, UNMANAGED_EXTENSIONS and ENTERPRISE_MANAGEMENT_ENDPOINTS (if applicable).

Valid values

server.http_enabled_modules, a ',' separated set with elements of type 'one of [TRANSACTIONAL_ENDPOINTS, UNMANAGED_EXTENSIONS, BROWSER, ENTERPRISE_MANAGEMENT_ENDPOINTS]'.

Default value

TRANSACTIONAL_ENDPOINTS,UNMANAGED_EXTENSIONS,BROWSER,ENTERPRISE_MANAGEMENT_ENDPOINTS

server.https.advertised_address

Table 68. server.https.advertised_address

Description

Advertised address for this connector.

Valid values

server.https.advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which accessible address. If missing port or hostname it is acquired from server.default_advertised_address

Default value

:7473

server.https.enabled

Table 69. server.https.enabled

Description

Enable the https connector.

Valid values

server.https.enabled, a boolean

Default value

false

server.https.listen_address

Table 70. server.https.listen_address

Description

Address the connector should bind to.

Valid values

server.https.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:7473

server.default_advertised_address

Table 71. server.default_advertised_address

Description

Default hostname or IP address the server uses to advertise itself.

Valid values

server.default_advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which has no specified port and accessible address

Default value

localhost

server.default_listen_address

Table 72. server.default_listen_address

Description

Default network interface to listen for incoming connections. To listen for connections on all interfaces, use "0.0.0.0".

Valid values

server.default_listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which has no specified port

Default value

localhost

server.discovery.advertised_address

Enterprise Edition

Table 73. server.discovery.advertised_address

Description

Advertised cluster member discovery management communication.

Valid values

server.discovery.advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which accessible address. If missing port or hostname it is acquired from server.default_advertised_address

Default value

:5000

server.routing.advertised_address

Enterprise Edition

Table 74. server.routing.advertised_address

Description

The advertised address for the intra-cluster routing connector.

Valid values

server.routing.advertised_address, a socket address in the format 'hostname:port', 'hostname' or ':port' which accessible address. If missing port or hostname it is acquired from server.default_advertised_address

Default value

:7688

server.routing.listen_address

Table 75. server.routing.listen_address

Description

The address the routing connector should bind to.

Valid values

server.routing.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:7688

dbms.routing.client_side.enforce_for_domains

Dynamic

Table 76. dbms.routing.client_side.enforce_for_domains

Description

Always use client side routing (regardless of the default router) for neo4j:// protocol connections to these domains. A comma separated list of domains. Wildcards (*) are supported.

Valid values

dbms.routing.client_side.enforce_for_domains, a ',' separated set with elements of type 'a string'.

Default value

dbms.routing.default_router

Table 77. dbms.routing.default_router

Description

Routing strategy for neo4j:// protocol connections. Default is CLIENT, using client-side routing, with server-side routing as a fallback (if enabled). When set to SERVER, client-side routing is short-circuited, and requests will rely on server-side routing (which must be enabled for proper operation, i.e. dbms.routing.enabled=true). Can be overridden by dbms.routing.client_side.enforce_for_domains.

Valid values

dbms.routing.default_router, one of [SERVER, CLIENT]

Default value

CLIENT

dbms.routing.driver.connection.connect_timeout

Table 78. dbms.routing.driver.connection.connect_timeout

Description

Socket connection timeout. A timeout of zero is treated as an infinite timeout and will be bound by the timeout configured on the operating system level.

Valid values

dbms.routing.driver.connection.connect_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

5s

dbms.routing.driver.connection.max_lifetime

Table 79. dbms.routing.driver.connection.max_lifetime

Description

Pooled connections older than this threshold will be closed and removed from the pool. Setting this option to a low value will cause a high connection churn and might result in a performance hit. It is recommended to set maximum lifetime to a slightly smaller value than the one configured in network equipment (load balancer, proxy, firewall, etc. can also limit maximum connection lifetime). Zero and negative values result in lifetime not being checked.

Valid values

dbms.routing.driver.connection.max_lifetime, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

1h

dbms.routing.driver.connection.pool.acquisition_timeout

Table 80. dbms.routing.driver.connection.pool.acquisition_timeout

Description

Maximum amount of time spent attempting to acquire a connection from the connection pool. This timeout only kicks in when all existing connections are being used and no new connections can be created because maximum connection pool size has been reached. Error is raised when connection can’t be acquired within configured time. Negative values are allowed and result in unlimited acquisition timeout. Value of 0 is allowed and results in no timeout and immediate failure when connection is unavailable.

Valid values

dbms.routing.driver.connection.pool.acquisition_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

1m

dbms.routing.driver.connection.pool.idle_test

Table 81. dbms.routing.driver.connection.pool.idle_test

Description

Pooled connections that have been idle in the pool for longer than this timeout will be tested before they are used again, to ensure they are still alive. If this option is set too low, an additional network call will be incurred when acquiring a connection, which causes a performance hit. If this is set high, no longer live connections might be used which might lead to errors. Hence, this parameter tunes a balance between the likelihood of experiencing connection problems and performance Normally, this parameter should not need tuning. Value 0 means connections will always be tested for validity.

Valid values

dbms.routing.driver.connection.pool.idle_test, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

No connection liveliness check is done by default.

dbms.routing.driver.connection.pool.max_size

Table 82. dbms.routing.driver.connection.pool.max_size

Description

Maximum total number of connections to be managed by a connection pool. The limit is enforced for a combination of a host and user. Negative values are allowed and result in unlimited pool. Value of 0is not allowed.

Valid values

dbms.routing.driver.connection.pool.max_size, an integer

Default value

Unlimited

dbms.routing.driver.logging.level

Table 83. dbms.routing.driver.logging.level

Description

Sets level for driver internal logging.

Valid values

dbms.routing.driver.logging.level, one of [DEBUG, INFO, WARN, ERROR, NONE]

Default value

INFO

dbms.routing.enabled

Table 84. dbms.routing.enabled

Description

Enable server-side routing in clusters using an additional bolt connector. When configured, this allows requests to be forwarded from one cluster member to another, if the requests can’t be satisfied by the first member (e.g. write requests received by a non-leader).

Valid values

dbms.routing.enabled, a boolean

Default value

true

dbms.routing.load_balancing.plugin

Enterprise Edition

Table 85. dbms.routing.load_balancing.plugin

Description

The load balancing plugin to use.

Valid values

dbms.routing.load_balancing.plugin, a string which specified load balancer plugin exist.

Default value

server_policies

dbms.routing.load_balancing.shuffle_enabled

Enterprise Edition

Table 86. dbms.routing.load_balancing.shuffle_enabled

Description

Enables shuffling of the returned load balancing result.

Valid values

dbms.routing.load_balancing.shuffle_enabled, a boolean

Default value

true

dbms.routing.reads_on_primaries_enabled

Enterprise Edition

Table 87. dbms.routing.reads_on_primaries_enabled

Description

Configure if the dbms.routing.getRoutingTable() procedure should include non-writer primaries as read endpoints or return only secondaries. Note: if there are no secondaries for the given database primaries are returned as read end points regardless the value of this setting. Defaults to true so that non-writer primaries are available for read-only queries in a typical heterogeneous setup.

Valid values

dbms.routing.reads_on_primaries_enabled, a boolean

Default value

true

dbms.routing.reads_on_writers_enabled

Enterprise Edition Dynamic

Table 88. dbms.routing.reads_on_writers_enabled

Description

Configure if the dbms.routing.getRoutingTable() procedure should include the writer as read endpoint or return only non-writers (non writer primaries and secondaries) Note: writer is returned as read endpoint if no other member is present all.

Valid values

dbms.routing.reads_on_writers_enabled, a boolean

Default value

false

dbms.routing_ttl

Table 89. dbms.routing_ttl

Description

How long callers should cache the response of the routing procedure dbms.routing.getRoutingTable()

Valid values

dbms.routing_ttl, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s) which is minimum 1s

Default value

5m

Cypher settings

dbms.cypher.forbid_exhaustive_shortestpath

Table 90. dbms.cypher.forbid_exhaustive_shortestpath

Description

This setting is associated with performance optimization. Set this to true in situations where it is preferable to have any queries using the 'shortestPath' function terminate as soon as possible with no answer, rather than potentially running for a long time attempting to find an answer (even if there is no path to be found). For most queries, the 'shortestPath' algorithm will return the correct answer very quickly. However there are some cases where it is possible that the fast bidirectional breadth-first search algorithm will find no results even if they exist. This can happen when the predicates in the WHERE clause applied to 'shortestPath' cannot be applied to each step of the traversal, and can only be applied to the entire path. When the query planner detects these special cases, it will plan to perform an exhaustive depth-first search if the fast algorithm finds no paths. However, the exhaustive search may be orders of magnitude slower than the fast algorithm. If it is critical that queries terminate as soon as possible, it is recommended that this option be set to true, which means that Neo4j will never consider using the exhaustive search for shortestPath queries. However, please note that if no paths are found, an error will be thrown at run time, which will need to be handled by the application.

Valid values

dbms.cypher.forbid_exhaustive_shortestpath, a boolean

Default value

false

dbms.cypher.forbid_shortestpath_common_nodes

Table 91. dbms.cypher.forbid_shortestpath_common_nodes

Description

This setting is associated with performance optimization. The shortest path algorithm does not work when the start and end nodes are the same. With this setting set to false no path will be returned when that happens. The default value of true will instead throw an exception. This can happen if you perform a shortestPath search after a cartesian product that might have the same start and end nodes for some of the rows passed to shortestPath. If it is preferable to not experience this exception, and acceptable for results to be missing for those rows, then set this to false. If you cannot accept missing results, and really want the shortestPath between two common nodes, then re-write the query using a standard Cypher variable length pattern expression followed by ordering by path length and limiting to one result.

Valid values

dbms.cypher.forbid_shortestpath_common_nodes, a boolean

Default value

true

dbms.cypher.hints_error

Table 92. dbms.cypher.hints_error

Description

Set this to specify the behavior when Cypher planner or runtime hints cannot be fulfilled. If true, then non-conformance will result in an error, otherwise only a warning is generated.

Valid values

dbms.cypher.hints_error, a boolean

Default value

false

dbms.cypher.lenient_create_relationship

Table 93. dbms.cypher.lenient_create_relationship

Description

Set this to change the behavior for Cypher create relationship when the start or end node is missing. By default this fails the query and stops execution, but by setting this flag the create operation is simply not performed and execution continues.

Valid values

dbms.cypher.lenient_create_relationship, a boolean

Default value

false

dbms.cypher.min_replan_interval

Table 94. dbms.cypher.min_replan_interval

Description

The minimum time between possible cypher query replanning events. After this time, the graph statistics will be evaluated, and if they have changed by more than the value set by dbms.cypher.statistics_divergence_threshold, the query will be replanned. If the statistics have not changed sufficiently, the same interval will need to pass before the statistics will be evaluated again. Each time they are evaluated, the divergence threshold will be reduced slightly until it reaches 10% after 7h, so that even moderately changing databases will see query replanning after a sufficiently long time interval.

Valid values

dbms.cypher.min_replan_interval, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10s

dbms.cypher.planner

Table 95. dbms.cypher.planner

Description

Set this to specify the default planner for the default language version.

Valid values

dbms.cypher.planner, one of [DEFAULT, COST]

Default value

DEFAULT

dbms.cypher.render_plan_description

Dynamic

Table 96. dbms.cypher.render_plan_description

Description

If set to true a textual representation of the plan description will be rendered on the server for all queries running with EXPLAIN or PROFILE. This allows clients such as the neo4j browser and Cypher shell to show a more detailed plan description.

Valid values

dbms.cypher.render_plan_description, a boolean

Default value

false

dbms.cypher.statistics_divergence_threshold

Table 97. dbms.cypher.statistics_divergence_threshold

Description

The threshold for statistics above which a plan is considered stale.

If any of the underlying statistics used to create the plan have changed more than this value, the plan will be considered stale and will be replanned. Change is calculated as abs(a-b)/max(a,b).

This means that a value of 0.75 requires the database to quadruple in size before query replanning. A value of 0 means that the query will be replanned as soon as there is any change in statistics and the replan interval has elapsed.

This interval is defined by dbms.cypher.min_replan_interval and defaults to 10s. After this interval, the divergence threshold will slowly start to decline, reaching 10% after about 7h. This will ensure that long running databases will still get query replanning on even modest changes, while not replanning frequently unless the changes are very large.

Valid values

dbms.cypher.statistics_divergence_threshold, a double which is in the range 0.0 to 1.0

Default value

0.75

Database settings

db.filewatcher.enabled

Table 98. db.filewatcher.enabled

Description

Allows the enabling or disabling of the file watcher service. This is an auxiliary service but should be left enabled in almost all cases.

Valid values

db.filewatcher.enabled, a boolean

Default value

true

db.format

Dynamic

Table 99. db.format

Description

Database format. This is the format that will be used for new databases. Valid values are standard, aligned, or high_limit.The aligned format is essentially the standard format with some minimal padding at the end of pages such that a single record will never cross a page boundary. The high_limit format is available for Enterprise Edition only. It is required if you have a graph that is larger than 34 billion nodes, 34 billion relationships, or 68 billion properties.

Valid values

db.format, a string

Default value

aligned

db.lock.acquisition.timeout

Dynamic

Table 100. db.lock.acquisition.timeout

Description

The maximum time interval within which lock should be acquired. Zero (default) means timeout is disabled.

Valid values

db.lock.acquisition.timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

0s

db.recovery.fail_on_missing_files

Table 101. db.recovery.fail_on_missing_files

Description

If true, Neo4j will abort recovery if transaction log files are missing. Setting this to false will allow Neo4j to create new empty missing files for the already existing database, but the integrity of the database might be compromised.

Valid values

db.recovery.fail_on_missing_files, a boolean

Default value

true

db.relationship_grouping_threshold

Table 102. db.relationship_grouping_threshold

Description

Relationship count threshold for considering a node to be dense.

Valid values

db.relationship_grouping_threshold, an integer which is minimum 1

Default value

50

db.shutdown_transaction_end_timeout

Table 103. db.shutdown_transaction_end_timeout

Description

The maximum amount of time to wait for running transactions to complete before allowing initiated database shutdown to continue.

Valid values

db.shutdown_transaction_end_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10s

db.store.files.preallocate

Table 104. db.store.files.preallocate

Description

Specify if Neo4j should try to preallocate store files as they grow.

Valid values

db.store.files.preallocate, a boolean

Default value

true

db.temporal.timezone

Table 105. db.temporal.timezone

Description

Database timezone for temporal functions. All Time and DateTime values that are created without an explicit timezone will use this configured default timezone.

Valid values

db.temporal.timezone, a string describing a timezone, either described by offset (e.g. +02:00) or by name (e.g. Europe/Stockholm)

Default value

Z

db.track_query_cpu_time

Enterprise Edition Dynamic

Table 106. db.track_query_cpu_time

Description

Enables or disables tracking of how much time a query spends actively executing on the CPU. Calling SHOW TRANSACTIONS will display the time, but not in the query.log.
If you want the CPU time to be logged in the query.log, set db.track_query_cpu_time=true and db.logs.query.time_logging_enabled=true

Valid values

db.track_query_cpu_time, a boolean

Default value

false

DBMS settings

initial.dbms.default_database

Table 107. initial.dbms.default_database

Description

Name of the default database (aliases are not supported).

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.

The initial.dbms.default_database setting is meant to set the default database before the creation of the DBMS. Once it is created, the setting is not valid anymore.

To set the default database, use the dbms.setDefaultDatabase() procedure instead.

Valid values

initial.dbms.default_database, 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'

Default value

neo4j

dbms.db.timezone

Table 108. dbms.db.timezone

Description

Database timezone. Among other things, this setting influences the monitoring procedures.

Valid values

dbms.db.timezone, one of [UTC, SYSTEM]

Default value

UTC

dbms.databases.seed_from_uri_providers

Enterprise Edition

Table 109. dbms.databases.seed_from_uri_providers

Description

Databases may be created from an existing 'seed' (a database backup or dump) stored at some source URI. Different types of seed source are supported by different implementations of com.neo4j.dbms.seeding.SeedProvider. For example, seeds stored at s3:// and https:// URIs are supported by the builtin S3SeedProvider and URLConnectionSeedProvider respectively. This list specifies enabled seed providers. If a seed source (URI scheme) is supported by multiple providers in the list, the first matching provider will be used. If the list is set to empty, the seed from uri functionality is effectively disabled.

Valid values

dbms.databases.seed_from_uri_providers, a , separated list with elements of type a string.

Default value

S3SeedProvider

dbms.max_databases

Enterprise Edition

Table 110. dbms.max_databases

Description

The maximum number of databases.

Valid values

dbms.max_databases, a long which is minimum 2

Default value

100

Import settings

db.import.csv.buffer_size

Table 111. db.import.csv.buffer_size

Description

The size of the internal buffer in bytes used by LOAD CSV. If the csv file contains huge fields this value may have to be increased.

Valid values

db.import.csv.buffer_size, a long which is minimum 1

Default value

2097152

db.import.csv.legacy_quote_escaping

Table 112. db.import.csv.legacy_quote_escaping

Description

Selects whether to conform to the standard https://tools.ietf.org/html/rfc4180 for interpreting escaped quotation characters in CSV files loaded using LOAD CSV. Setting this to false will use the standard, interpreting repeated quotes '""' as a single in-lined quote, while true will use the legacy convention originally supported in Neo4j 3.0 and 3.1, allowing a backslash to include quotes in-lined in fields.

Valid values

db.import.csv.legacy_quote_escaping, a boolean

Default value

true

Index settings

db.index.fulltext.default_analyzer

Table 113. db.index.fulltext.default_analyzer

Description

The name of the analyzer that the fulltext indexes should use by default.

Valid values

db.index.fulltext.default_analyzer, a string

Default value

standard-no-stop-words

db.index.fulltext.eventually_consistent

Table 114. db.index.fulltext.eventually_consistent

Description

Whether or not fulltext indexes should be eventually consistent by default or not.

Valid values

db.index.fulltext.eventually_consistent, a boolean

Default value

false

db.index.fulltext.eventually_consistent_index_update_queue_max_length

Table 115. db.index.fulltext.eventually_consistent_index_update_queue_max_length

Description

The eventually_consistent mode of the fulltext indexes works by queueing up index updates to be applied later in a background thread. This newBuilder sets an upper bound on how many index updates are allowed to be in this queue at any one point in time. When it is reached, the commit process will slow down and wait for the index update applier thread to make some more room in the queue.

Valid values

db.index.fulltext.eventually_consistent_index_update_queue_max_length, an integer which is in the range 1 to 50000000

Default value

10000

db.index_sampling.background_enabled

Table 116. db.index_sampling.background_enabled

Description

Enable or disable background index sampling.

Valid values

db.index_sampling.background_enabled, a boolean

Default value

true

db.index_sampling.sample_size_limit

Table 117. db.index_sampling.sample_size_limit

Description

Index sampling chunk size limit.

Valid values

db.index_sampling.sample_size_limit, an integer which is in the range 1048576 to 2147483647

Default value

8388608

db.index_sampling.update_percentage

Table 118. db.index_sampling.update_percentage

Description

Percentage of index updates of total index size required before sampling of a given index is triggered.

Valid values

db.index_sampling.update_percentage, an integer which is minimum 0

Default value

5

Logging settings

db.logs.query.annotation_data_as_json_enabled

Dynamic

Table 119. db.logs.query.annotation_data_as_json_enabled

Description

Log the annotation data as JSON strings instead of a Cypher map. This configuration has an effect only when the query log is in JSON format.

Valid values

db.logs.query.annotation_data_as_json_enabled, a boolean

Default value

false

db.logs.query.early_raw_logging_enabled

Dynamic

Table 120. db.logs.query.early_raw_logging_enabled

Description

Log query text and parameters without obfuscating passwords. This allows queries to be logged earlier before parsing starts.

Valid values

db.logs.query.early_raw_logging_enabled, a boolean

Default value

false

db.logs.query.enabled

Dynamic

Table 121. db.logs.query.enabled

Description

Log executed queries. Valid values are OFF, INFO, or VERBOSE.

OFF

no logging.

INFO

log queries at the end of execution, that take longer than the configured threshold, db.logs.query.threshold.

VERBOSE

log queries at the start and end of execution, regardless of db.logs.query.threshold.

Log entries are written to the query log.

This feature is available in the Neo4j Enterprise Edition.

Valid values

db.logs.query.enabled, one of [OFF, INFO, VERBOSE]

Default value

VERBOSE

db.logs.query.max_parameter_length

Dynamic

Table 122. db.logs.query.max_parameter_length

Description

Sets a maximum character length use for each parameter in the log. This only takes effect if db.logs.query.parameter_logging_enabled = true.

Valid values

db.logs.query.max_parameter_length, an integer

Default value

2147483647

db.logs.query.obfuscate_literals

Dynamic

Table 123. db.logs.query.obfuscate_literals

Description

Obfuscates all literals of the query before writing to the log. Note that node labels, relationship types and map property keys are still shown. Changing the setting will not affect queries that are cached. So, if you want the switch to have immediate effect, you must also call CALL db.clearQueryCaches().

Valid values

db.logs.query.obfuscate_literals, a boolean

Default value

false

db.logs.query.parameter_logging_enabled

Dynamic

Table 124. db.logs.query.parameter_logging_enabled

Description

Log parameters for the executed queries being logged.

Valid values

db.logs.query.parameter_logging_enabled, a boolean

Default value

true

db.logs.query.plan_description_enabled

Dynamic

Table 125. db.logs.query.plan_description_enabled

Description

Log query plan description table, useful for debugging purposes.

Valid values

db.logs.query.plan_description_enabled, a boolean

Default value

false

db.logs.query.threshold

Dynamic

Table 126. db.logs.query.threshold

Description

If the execution of query takes more time than this threshold, the query is logged once completed - provided query logging is set to INFO. Defaults to 0 seconds, that is all queries are logged.

Valid values

db.logs.query.threshold, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

0s

db.logs.query.transaction.enabled

Dynamic

Table 127. db.logs.query.transaction.enabled

Description

Log the start and end of a transaction. Valid values are 'OFF', 'INFO', or 'VERBOSE'. OFF: no logging. INFO: log start and end of transactions that take longer than the configured threshold, db.logs.query.transaction.threshold. VERBOSE: log start and end of all transactions. Log entries are written to the query log. This feature is available in the Neo4j Enterprise Edition.

Valid values

db.logs.query.transaction.enabled, one of [OFF, INFO, VERBOSE]

Default value

OFF

db.logs.query.transaction.threshold

Dynamic

Table 128. db.logs.query.transaction.threshold

Description

If the transaction is open for more time than this threshold, the transaction is logged once completed - provided transaction logging (db.logs.query.transaction.enabled) is set to INFO. Defaults to 0 seconds (all transactions are logged).

Valid values

db.logs.query.transaction.threshold, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

0s

dbms.logs.http.enabled

Table 129. dbms.logs.http.enabled

Description

Enable HTTP request logging.

Valid values

dbms.logs.http.enabled, a boolean

Default value

false

server.logs.config

Table 130. server.logs.config

Description

Path to the logging configuration for debug, query, http and security logs.

Valid values

server.logs.config, a path. If relative it is resolved from server.directories.neo4j_home

Default value

conf/server-logs.xml

server.logs.debug.enabled

Table 131. server.logs.debug.enabled

Description

Enable the debug log.

Valid values

server.logs.debug.enabled, a boolean

Default value

true

server.logs.gc.enabled

Table 132. server.logs.gc.enabled

Description

Enable GC Logging.

Valid values

server.logs.gc.enabled, a boolean

Default value

false

server.logs.gc.options

Table 133. server.logs.gc.options

Description

GC Logging Options.

Valid values

server.logs.gc.options, a string

Default value

-Xlog:gc*,safepoint,age*=trace

server.logs.gc.rotation.keep_number

Table 134. server.logs.gc.rotation.keep_number

Description

Number of GC logs to keep.

Valid values

server.logs.gc.rotation.keep_number, an integer

Default value

5

server.logs.gc.rotation.size

Table 135. server.logs.gc.rotation.size

Description

Size of each GC log that is kept.

Valid values

server.logs.gc.rotation.size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

Default value

20.00MiB

server.logs.user.config

Table 136. server.logs.user.config

Description

Path to the logging configuration of user logs.

Valid values

server.logs.user.config, a path. If relative it is resolved from server.directories.neo4j_home

Default value

conf/user-logs.xml

Memory settings

db.memory.pagecache.warmup.enable

Table 137. db.memory.pagecache.warmup.enable

Description

Page cache can be configured to perform usage sampling of loaded pages that can be used to construct active load profile. According to that profile pages can be reloaded on the restart, replication, etc. This setting allows disabling that behavior. This feature is available in Neo4j Enterprise Edition.

Valid values

db.memory.pagecache.warmup.enable, a boolean

Default value

true

db.memory.pagecache.warmup.preload

Table 138. db.memory.pagecache.warmup.preload

Description

Page cache warmup can be configured to prefetch files, preferably when cache size is bigger than store size. Files to be prefetched can be filtered by 'dbms.memory.pagecache.warmup.preload.allowlist'. Enabling this disables warmup by profile.

Valid values

db.memory.pagecache.warmup.preload, a boolean

Default value

false

db.memory.pagecache.warmup.preload.allowlist

Table 139. db.memory.pagecache.warmup.preload.allowlist

Description

Page cache warmup prefetch file allowlist regex. By default matches all files.

Valid values

db.memory.pagecache.warmup.preload.allowlist, a string

Default value

.*

db.memory.pagecache.warmup.profile.interval

Table 140. db.memory.pagecache.warmup.profile.interval

Description

The profiling frequency for the page cache. Accurate profiles allow the page cache to do active warmup after a restart, reducing the mean time to performance. This feature is available in Neo4j Enterprise Edition.

Valid values

db.memory.pagecache.warmup.profile.interval, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

1m

db.memory.transaction.max

Dynamic

Table 141. db.memory.transaction.max

Description

Limit the amount of memory that a single transaction can consume, in bytes (or kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g'). Zero means 'largest possible value'.

Valid values

db.memory.transaction.max, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 1.00MiB or is 0B

Default value

0B

db.memory.transaction.total.max

Dynamic

Table 142. db.memory.transaction.total.max

Description

Limit the amount of memory that all transactions in one database can consume, in bytes (or kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g'). Zero means 'unlimited'.

Valid values

db.memory.transaction.total.max, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 10.00MiB or is 0B

Default value

0B

db.tx_state.memory_allocation

Table 143. db.tx_state.memory_allocation

Description

Defines whether memory for transaction state should be allocated on- or off-heap. Note that for small transactions you can gain up to 25% write speed by setting it to ON_HEAP.

Valid values

db.tx_state.memory_allocation, one of [ON_HEAP, OFF_HEAP]

Default value

ON_HEAP

server.db.query_cache_size

Deprecated in 5.7

Table 144. server.db.query_cache_size

Description

The number of cached Cypher query execution plans per database. The max number of query plans that can be kept in cache is the number of databases * server.db.query_cache_size. With 10 databases and server.db.query_cache_size=1000, the caches can keep 10000 plans in total on the instance, assuming that each DB receives queries that fill up its cache.

Valid values

server.db.query_cache_size, an integer which is minimum 0

Default value

1000

Replaced by

dbms.memory.tracking.enable

Table 145. dbms.memory.tracking.enable

Description

Enable off heap and on heap memory tracking. Should not be set to false for clusters.

Valid values

dbms.memory.tracking.enable, a boolean

Default value

true

dbms.memory.transaction.total.max

Dynamic

Table 146. dbms.memory.transaction.total.max

Description

Limit the amount of memory that all of the running transactions can consume, in bytes (or kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g'). Zero means 'unlimited'.

Valid values

dbms.memory.transaction.total.max, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 10.00MiB or is 0B

Default value

70% of the heap size limit

server.memory.heap.initial_size

Table 147. server.memory.heap.initial_size

Description

Initial heap size. By default it is calculated based on available system resources.

Valid values

server.memory.heap.initial_size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

server.memory.heap.max_size

Table 148. server.memory.heap.max_size

Description

Maximum heap size. By default it is calculated based on available system resources.

Valid values

server.memory.heap.max_size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

server.memory.off_heap.block_cache_size

Table 149. server.memory.off_heap.block_cache_size

Description

Defines the size of the off-heap memory blocks cache. The cache will contain this number of blocks for each block size that is power of two. Thus, maximum amount of memory used by blocks cache can be calculated as 2 * server.memory.off_heap.max_cacheable_block_size * server.memory.off_heap.block_cache_size

Valid values

server.memory.off_heap.block_cache_size, an integer which is minimum 16

Default value

128

server.memory.off_heap.max_cacheable_block_size

Table 150. server.memory.off_heap.max_cacheable_block_size

Description

Defines the maximum size of an off-heap memory block that can be cached to speed up allocations. The value must be a power of 2.

Valid values

server.memory.off_heap.max_cacheable_block_size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 4.00KiB and is power of 2

Default value

512.00KiB

server.memory.off_heap.transaction_max_size

Table 151. server.memory.off_heap.transaction_max_size

Description

The maximum amount of off-heap memory that can be used to store transaction state data; it’s a total amount of memory shared across all active transactions. Zero means 'unlimited'. Used when db.tx_state.memory_allocation is set to 'OFF_HEAP'.

Valid values

server.memory.off_heap.transaction_max_size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 0B

Default value

2.00GiB

server.memory.pagecache.direction

Table 152. server.memory.pagecache.direction

Description

Use direct I/O for page cache. Setting is supported only on Linux and only for a subset of record formats that use platform aligned page size.

Valid values

server.memory.pagecache.directio, a boolean

Default value

false

server.memory.pagecache.flush.buffer.enabled

Dynamic

Table 153. server.memory.pagecache.flush.buffer.enabled

Description

Page cache can be configured to use a temporal buffer for flushing purposes. It is used to combine, if possible, sequence of several cache pages into one bigger buffer to minimize the number of individual IOPS performed and better utilization of available I/O resources, especially when those are restricted.

Valid values

server.memory.pagecache.flush.buffer.enabled, a boolean

Default value

false

server.memory.pagecache.flush.buffer.size_in_pages

Dynamic

Table 154. server.memory.pagecache.flush.buffer.size_in_pages

Description

Page cache can be configured to use a temporal buffer for flushing purposes. It is used to combine, if possible, sequence of several cache pages into one bigger buffer to minimize the number of individual IOPS performed and better utilization of available I/O resources, especially when those are restricted. Use this setting to configure individual file flush buffer size in pages (8KiB). To be able to utilize this buffer during page cache flushing, buffered flush should be enabled.

Valid values

server.memory.pagecache.flush.buffer.size_in_pages, an integer which is in the range 1 to 512

Default value

128

server.memory.pagecache.scan.prefetchers

Table 155. server.memory.pagecache.scan.prefetchers

Description

The maximum number of worker threads to use for pre-fetching data when doing sequential scans. Set to '0' to disable pre-fetching for scans.

Valid values

server.memory.pagecache.scan.prefetchers, an integer which is in the range 0 to 255

Default value

4

server.memory.pagecache.size

Table 156. server.memory.pagecache.size

Description

The amount of memory to use for mapping the store files. If Neo4j is running on a dedicated server, then it is generally recommended to leave about 2-4 gigabytes for the operating system, give the JVM enough heap to hold all your transaction state and query context, and then leave the rest for the page cache. If no page cache memory is configured, then a heuristic setting is computed based on available system resources.

Valid values

server.memory.pagecache.size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB)

Default value

By default the size of page cache will be 50% och available RAM minus the max heap size.The size of the page cache will also not be larger than 70x the max heap size (due to some overhead of the page cache in the heap.

server.memory.query_cache.sharing_enabled

Enterprise Edition

Table 157. server.memory.query_cache.sharing_enabled

Description

Enable sharing cache space between different databases. With this option turned on, databases will share cache space, but not cache entries. This means that a database may store and retrieve entries from the shared cache, but it may not retrieve entries produced by another database. The database may, however, evict entries from other databases as necessary, according to the constrained cache size and cache eviction policy. In essence, databases may compete for cache space, but may not observe each other’s entries.

When this option is turned on, the cache space available to all databases is configured with server.memory.query_cache.shared_cache_num_entries. With this option turned off, the cache space available to each individual database is configured with server.memory.query_cache.per_db_cache_num_entries.

Valid values

server.memory.query_cache.sharing_enabled, a boolean

Default value

false

server.memory.query_cache.shared_cache_num_entries

Enterprise Edition

Table 158. server.memory.query_cache.shared_cache_num_entries

Description

The number of cached queries for all databases. The maximum number of queries that can be kept in a cache is exactly server.memory.query_cache.shared_cache_num_entries. This setting is only deciding cache size when server.memory.query_cache.sharing_enabled is set to true.

Valid values

server.memory.query_cache.shared_cache_num_entries, a integer

Default value

1000

server.memory.query_cache.per_db_cache_num_entries

Table 159. server.memory.query_cache.per_db_cache_num_entries

Description

The number of cached queries per database. The maximum number of queries that can be kept in a cache is number of databases * server.memory.query_cache.per_db_cache_num_entries. With 10 databases and server.memory.query_cache.per_db_cache_num_entries=1000, the cache can keep 10000 plans in total. This setting is only deciding cache size when server.memory.query_cache.sharing_enabled is set to false.

Valid values

server.memory.query_cache.per_db_cache_num_entries, a integer

Default value

1000

Metrics settings

server.metrics.csv.enabled

Enterprise Edition

Table 160. server.metrics.csv.enabled

Description

Set to true to enable exporting metrics to CSV files.

Valid values

server.metrics.csv.enabled, a boolean

Default value

true

server.metrics.csv.interval

Enterprise Edition

Table 161. server.metrics.csv.interval

Description

The reporting interval for the CSV files. That is, how often new rows with numbers are appended to the CSV files.

Valid values

server.metrics.csv.interval, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s) which is minimum 1ms

Default value

30s

server.metrics.csv.rotation.compression

Enterprise Edition

Table 162. server.metrics.csv.rotation.compression

Description

Decides what compression to use for the csv history files.

Valid values

server.metrics.csv.rotation.compression, one of [NONE, ZIP, GZ]

Default value

NONE

server.metrics.csv.rotation.keep_number

Enterprise Edition

Table 163. server.metrics.csv.rotation.keep_number

Description

Maximum number of history files for the csv files.

Valid values

server.metrics.csv.rotation.keep_number, an integer which is minimum 1

Default value

7

server.metrics.csv.rotation.size

Enterprise Edition

Table 164. server.metrics.csv.rotation.size

Description

The file size in bytes at which the csv files will auto-rotate. If set to zero then no rotation will occur. Accepts a binary suffix k, m or g.

Valid values

server.metrics.csv.rotation.size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is in the range 0B to 8388608.00TiB

Default value

10.00MiB

server.metrics.enabled

Enterprise Edition

Table 165. server.metrics.enabled

Description

Enable metrics. Setting this to false will to turn off all metrics.

Valid values

server.metrics.enabled, a boolean

Default value

true

server.metrics.filter

Enterprise Edition

Table 166. server.metrics.filter

Description

Specifies which metrics should be enabled by using a comma separated list of globbing patterns. Only the metrics matching the filter will be enabled. For example *check_point*,neo4j.page_cache.evictions will enable any checkpoint metrics and the pagecache eviction metric.

Valid values

server.metrics.filter, a ',' separated list with elements of type 'A simple globbing pattern that can use * and ?.'.

Default value

*bolt.connections*,*bolt.messages_received*,*bolt.messages_started*,*dbms.pool.bolt.free,*dbms.pool.bolt.total_size,*dbms.pool.bolt.total_used,*dbms.pool.bolt.used_heap,*cluster.core.is_leader,*cluster.core.last_leader_message,*cluster.core.replication_attempt,*cluster.core.replication_fail,*cluster.core.last_applied,*cluster.core.last_appended,*check_point.duration,*check_point.total_time,*cypher.replan_events,*ids_in_use*,*pool.transaction.*.total_used,*pool.transaction.*.used_heap,*pool.transaction.*.used_native,*store.size*,*transaction.active_read,*transaction.active_write,*transaction.committed*,*transaction.last_committed_tx_id,*transaction.peak_concurrent,*transaction.rollbacks*,*page_cache.hit*,*page_cache.page_faults,*page_cache.usage_ratio,*vm.file.descriptors.count,*vm.gc.time.*,*vm.heap.used,*vm.memory.buffer.direct.used,*vm.memory.pool.g1_eden_space,*vm.memory.pool.g1_old_gen,*vm.pause_time,*vm.thread*,*db.query.execution*

server.metrics.graphite.enabled

Enterprise Edition

Table 167. server.metrics.graphite.enabled

Description

Set to true to enable exporting metrics to Graphite.

Valid values

server.metrics.graphite.enabled, a boolean

Default value

false

server.metrics.graphite.interval

Enterprise Edition

Table 168. server.metrics.graphite.interval

Description

The reporting interval for Graphite. That is, how often to send updated metrics to Graphite.

Valid values

server.metrics.graphite.interval, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

30s

server.metrics.graphite.server

Enterprise Edition

Table 169. server.metrics.graphite.server

Description

The hostname or IP address of the Graphite server.

Valid values

server.metrics.graphite.server, a socket address in the format 'hostname:port', 'hostname' or ':port'. If missing port or hostname it is acquired from server.default_listen_address

Default value

:2003

server.metrics.jmx.enabled

Enterprise Edition

Table 170. server.metrics.jmx.enabled

Description

Set to true to enable the JMX metrics endpoint.

Valid values

server.metrics.jmx.enabled, a boolean

Default value

true

server.metrics.prefix

Enterprise Edition

Table 171. server.metrics.prefix

Description

A common prefix for the reported metrics field names.

Valid values

server.metrics.prefix, a string

Default value

neo4j

server.metrics.prometheus.enabled

Enterprise Edition

Table 172. server.metrics.prometheus.enabled

Description

Set to true to enable the Prometheus endpoint.

Valid values

server.metrics.prometheus.enabled, a boolean

Default value

false

server.metrics.prometheus.endpoint

Enterprise Edition

Table 173. server.metrics.prometheus.endpoint

Description

The hostname and port to use as Prometheus endpoint.

Valid values

server.metrics.prometheus.endpoint, a socket address in the format hostname:port, hostname, or :port. If missing, port and hostname are acquired from server.default_listen_address.

Default value

localhost:2004

Neo4j Browser and client settings

browser.allow_outgoing_connections

Enterprise Edition

Table 174. browser.allow_outgoing_connections

Description

Configure the policy for outgoing Neo4j Browser connections.

Valid values

browser.allow_outgoing_connections, a boolean

Default value

true

browser.credential_timeout

Enterprise Edition

Table 175. browser.credential_timeout

Description

Configure the Neo4j Browser to time out logged in users after this idle period. Setting this to 0 indicates no limit.

Valid values

browser.credential_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

0s

browser.post_connect_cmd

Table 176. browser.post_connect_cmd

Description

Commands to be run when Neo4j Browser successfully connects to this server. Separate multiple commands with semi-colon.

Valid values

browser.post_connect_cmd, a string

Default value

browser.remote_content_hostname_whitelist

Table 177. browser.remote_content_hostname_whitelist

Description

Whitelist of hosts for the Neo4j Browser to be allowed to fetch content from.

Valid values

browser.remote_content_hostname_whitelist, a string

Default value

guides.neo4j.com,localhost

browser.retain_connection_credentials

Enterprise Edition

Table 178. browser.retain_connection_credentials

Description

Configure the Neo4j Browser to store or not store user credentials.

Valid values

browser.retain_connection_credentials, a boolean

Default value

true

browser.retain_editor_history

Enterprise Edition

Table 179. browser.retain_editor_history

Description

Configure the Neo4j Browser to store or not store user editor history.

Valid values

browser.retain_editor_history, a boolean

Default value

true

client.allow_telemetry

Table 180. client.allow_telemetry

Description

Configure client applications such as Browser and Bloom to send Product Analytics data.

Valid values

client.allow_telemetry, a boolean

Default value

true

Kubernetes settings

dbms.kubernetes.address

Kubernetes settings

Enterprise Edition

Table 181. dbms.kubernetes.address

Description

Address for Kubernetes API.

Valid values

dbms.kubernetes.address, a socket address in the format hostname:port, hostname or :port

Default value

kubernetes.default.svc:443

dbms.kubernetes.ca_crt

Enterprise Edition

Table 182. dbms.kubernetes.ca_crt

Description

File location of CA certificate for Kubernetes API.

Valid values

dbms.kubernetes.ca_crt, a path

Default value

/var/run/secrets/kubernetes.io/serviceaccount/ca.crt

dbms.kubernetes.cluster_domain

Enterprise Edition

Table 183. dbms.kubernetes.cluster_domain

Description

Kubernetes cluster domain.

Valid values

dbms.kubernetes.cluster_domain, a string

Default value

cluster.local

dbms.kubernetes.label_selector

Enterprise Edition

Table 184. dbms.kubernetes.label_selector

Description

LabelSelector for Kubernetes API.

Valid values

dbms.kubernetes.label_selector, a string

dbms.kubernetes.namespace

Enterprise Edition

Table 185. dbms.kubernetes.namespace

Description

File location of namespace for Kubernetes API.

Valid values

dbms.kubernetes.namespace, a path

Default value

/var/run/secrets/kubernetes.io/serviceaccount/namespace

dbms.kubernetes.service_port_name

Enterprise Edition

Table 186. dbms.kubernetes.service_port_name

Description

Service port name for discovery for Kubernetes API.

Valid values

dbms.kubernetes.service_port_name, a string

dbms.kubernetes.token

Enterprise Edition

Table 187. dbms.kubernetes.token

Description

File location of token for Kubernetes API.

Valid values

dbms.kubernetes.token, a path

Default value

/var/run/secrets/kubernetes.io/serviceaccount/token

Security settings

dbms.security.allow_csv_import_from_file_urls

Table 188. dbms.security.allow_csv_import_from_file_urls

Description

Determines if Cypher will allow using file URLs when loading data using LOAD CSV. Setting this value to false will cause Neo4j to fail LOAD CSV clauses that load data from the file system.

Valid values

dbms.security.allow_csv_import_from_file_urls, a boolean

Default value

true

dbms.security.auth_cache_max_capacity

Enterprise Edition

Table 189. dbms.security.auth_cache_max_capacity

Description

The maximum capacity for authentication and authorization caches (respectively).

Valid values

dbms.security.auth_cache_max_capacity, an integer

Default value

10000

dbms.security.auth_cache_ttl

Enterprise Edition

Table 190. dbms.security.auth_cache_ttl

Description

The time to live (TTL) for cached authentication and authorization info when using external auth providers (LDAP or plugin). Setting the TTL to 0 will disable auth caching. Disabling caching while using the LDAP auth provider requires the use of an LDAP system account for resolving authorization information.

Valid values

dbms.security.auth_cache_ttl, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

10m

dbms.security.auth_cache_use_ttl

Enterprise Edition

Table 191. dbms.security.auth_cache_use_ttl

Description

Enable time-based eviction of the authentication and authorization info cache for external auth providers (LDAP or plugin). Disabling this setting will make the cache live forever and only be evicted when dbms.security.auth_cache_max_capacity is exceeded.

Valid values

dbms.security.auth_cache_use_ttl, a boolean

Default value

true

dbms.security.auth_enabled

Table 192. dbms.security.auth_enabled

Description

Enable auth requirement to access Neo4j.

Valid values

dbms.security.auth_enabled, a boolean

Default value

true

dbms.security.auth_minimum_password_length

Neo4j v5.3

Table 193. dbms.security.auth_minimum_password_length

Description

The minimum number of characters required in a password.

Valid values

dbms.security.auth_minimum_password_length, an integer

Default value

8

dbms.security.auth_lock_time

Table 194. dbms.security.auth_lock_time

Description

The amount of time user account should be locked after a configured number of unsuccessful authentication attempts. The locked out user will not be able to log in until the lock period expires, even if correct credentials are provided. Setting this configuration option to a low value is not recommended because it might make it easier for an attacker to brute force the password.

Valid values

dbms.security.auth_lock_time, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s) which is minimum 0s

Default value

5s

dbms.security.auth_max_failed_attempts

Table 195. dbms.security.auth_max_failed_attempts

Description

The maximum number of unsuccessful authentication attempts before imposing a user lock for the configured amount of time, as defined by dbms.security.auth_lock_time.The locked out user will not be able to log in until the lock period expires, even if correct credentials are provided. Setting this configuration option to values less than 3 is not recommended because it might make it easier for an attacker to brute force the password.

Valid values

dbms.security.auth_max_failed_attempts, an integer which is minimum 0

Default value

3

dbms.security.authentication_providers

Enterprise Edition

Table 196. dbms.security.authentication_providers

Description

A list of security authentication providers containing the users and roles. This can be any of the built-in native or ldap providers, or it can be an externally provided plugin, with a custom name prefixed by plugin-, i.e. plugin-<AUTH_PROVIDER_NAME>. They will be queried in the given order when login is attempted.

Valid values

dbms.security.authentication_providers, a ',' separated list with elements of type 'a string'.

Default value

native

dbms.security.authorization_providers

Enterprise Edition

Table 197. dbms.security.authorization_providers

Description

A list of security authorization providers containing the users and roles. This can be any of the built-in native or ldap providers, or it can be an externally provided plugin, with a custom name prefixed by plugin-, i.e. plugin-<AUTH_PROVIDER_NAME>. They will be queried in the given order when login is attempted.

Valid values

dbms.security.authorization_providers, a ',' separated list with elements of type 'a string'.

Default value

native

dbms.security.cluster_status_auth_enabled

Enterprise Edition

Table 198. dbms.security.cluster_status_auth_enabled

Description

Require authorization for access to the Causal Clustering status endpoints.

Valid values

dbms.security.cluster_status_auth_enabled, a boolean

Default value

true

dbms.security.http_access_control_allow_origin

Table 199. dbms.security.http_access_control_allow_origin

Description

Value of the Access-Control-Allow-Origin header sent over any HTTP or HTTPS connector. This defaults to '*', which allows broadest compatibility. Note that any URI provided here limits HTTP/HTTPS access to that URI only.

Valid values

dbms.security.http_access_control_allow_origin, a string

Default value

*

dbms.security.http_auth_allowlist

Table 200. dbms.security.http_auth_allowlist

Description

Defines an allowlist of http paths where Neo4j authentication is not required.

Valid values

dbms.security.http_auth_allowlist, a ',' separated list with elements of type 'a string'.

Default value

/,/browser.*

dbms.security.http_strict_transport_security

Table 201. dbms.security.http_strict_transport_security

Description

Value of the HTTP Strict-Transport-Security (HSTS) response header. This header tells browsers that a webpage should only be accessed using HTTPS instead of HTTP. It is attached to every HTTPS response. Setting is not set by default so 'Strict-Transport-Security' header is not sent. Value is expected to contain directives like 'max-age', 'includeSubDomains' and 'preload'.

Valid values

dbms.security.http_strict_transport_security, a string

dbms.security.key.name

Enterprise Edition Dynamic

Table 202. dbms.security.key.name

Description

Name of the 256 length AES encryption key, which is used for the symmetric encryption.

Valid values

dbms.security.key.name, a string

Default value

aesKey

dbms.security.keystore.password

Enterprise Edition Dynamic

Table 203. dbms.security.keystore.password

Description

Password for accessing the keystore holding a 256 length AES encryption key, which is used for the symmetric encryption.

Valid values

dbms.security.keystore.password, a secure string

dbms.security.keystore.path

Enterprise Edition Dynamic

Table 204. dbms.security.keystore.path

Description

Location of the keystore holding a 256 length AES encryption key, which is used for the symmetric encryption of secrets held in system database.

Valid values

dbms.security.keystore.path, a path

dbms.security.ldap.authentication.attribute

Enterprise Edition Dynamic

Table 205. dbms.security.ldap.authentication.attribute

Description

The attribute to use when looking up users. Using this setting requires dbms.security.ldap.authentication.search_for_attribute to be true and thus dbms.security.ldap.authorization.system_username and dbms.security.ldap.authorization.system_password to be configured.

Valid values

dbms.security.ldap.authentication.attribute, a string which matches the pattern [A-Za-z0-9-]* (has to be a valid LDAP attribute name, only containing letters [A-Za-z], digits [0-9] and hyphens [-].)

Default value

samaccountname

dbms.security.ldap.authentication.cache_enabled

Enterprise Edition

Table 206. dbms.security.ldap.authentication.cache_enabled

Description

Determines if the result of authentication via the LDAP server should be cached or not. Caching is used to limit the number of LDAP requests that have to be made over the network for users that have already been authenticated successfully. A user can be authenticated against an existing cache entry (instead of via an LDAP server) as long as it is alive (see dbms.security.auth_cache_ttl). An important consequence of setting this to true is that Neo4j then needs to cache a hashed version of the credentials in order to perform credentials matching. This hashing is done using a cryptographic hash function together with a random salt. Preferably a conscious decision should be made if this method is considered acceptable by the security standards of the organization in which this Neo4j instance is deployed.

Valid values

dbms.security.ldap.authentication.cache_enabled, a boolean

Default value

true

dbms.security.ldap.authentication.mechanism

Enterprise Edition

Table 207. dbms.security.ldap.authentication.mechanism

Description

LDAP authentication mechanism. This is one of simple or a SASL mechanism supported by JNDI, for example DIGEST-MD5. simple is basic username and password authentication and SASL is used for more advanced mechanisms. See RFC 2251 LDAPv3 documentation for more details.

Valid values

dbms.security.ldap.authentication.mechanism, a string

Default value

simple

dbms.security.ldap.authentication.search_for_attribute

Enterprise Edition

Table 208. dbms.security.ldap.authentication.search_for_attribute

Description

Perform authentication by searching for an unique attribute of a user. Using this setting requires dbms.security.ldap.authorization.system_username and dbms.security.ldap.authorization.system_password to be configured.

Valid values

dbms.security.ldap.authentication.search_for_attribute, a boolean

Default value

false

dbms.security.ldap.authentication.user_dn_template

Enterprise Edition Dynamic

Table 209. dbms.security.ldap.authentication.user_dn_template

Description

LDAP user DN template. An LDAP object is referenced by its distinguished name (DN), and a user DN is an LDAP fully-qualified unique user identifier. This setting is used to generate an LDAP DN that conforms with the LDAP directory’s schema from the user principal that is submitted with the authentication token when logging in. The special token {0} is a placeholder where the user principal will be substituted into the DN string.

Valid values

dbms.security.ldap.authentication.user_dn_template, a string which Must be a string containing '{0}' to understand where to insert the runtime authentication principal.

Default value

uid={0},ou=users,dc=example,dc=com

dbms.security.ldap.authorization.access_permitted_group

Enterprise Edition Dynamic

Table 210. dbms.security.ldap.authorization.access_permitted_group

Description

The LDAP group to which a user must belong to get any access to the system.Set this to restrict access to a subset of LDAP users belonging to a particular group. If this is not set, any user to successfully authenticate via LDAP will have access to the PUBLIC role and any other roles assigned to them via dbms.security.ldap.authorization.group_to_role_mapping.

Valid values

dbms.security.ldap.authorization.access_permitted_group, a string

Default value

dbms.security.ldap.authorization.group_membership_attributes

Enterprise Edition Dynamic

Table 211. dbms.security.ldap.authorization.group_membership_attributes

Description

A list of attribute names on a user object that contains groups to be used for mapping to roles when LDAP authorization is enabled. This setting is ignored when dbms.ldap_authorization_nested_groups_enabled is true.

Valid values

dbms.security.ldap.authorization.group_membership_attributes, a ',' separated list with elements of type 'a string'. which Can not be empty

Default value

memberOf

dbms.security.ldap.authorization.group_to_role_mapping

Enterprise Edition Dynamic

Table 212. dbms.security.ldap.authorization.group_to_role_mapping

Description

An authorization mapping from LDAP group names to Neo4j role names. The map should be formatted as a semicolon separated list of key-value pairs, where the key is the LDAP group name and the value is a comma separated list of corresponding role names. For example: group1=role1;group2=role2;group3=role3,role4,role5 You could also use whitespaces and quotes around group names to make this mapping more readable, for example:

`dbms.security.ldap.authorization.group_to_role_mapping`=\
         "cn=Neo4j Read Only,cn=users,dc=example,dc=com"      = reader;    \
         "cn=Neo4j Read-Write,cn=users,dc=example,dc=com"     = publisher; \
         "cn=Neo4j Schema Manager,cn=users,dc=example,dc=com" = architect; \
         "cn=Neo4j Administrator,cn=users,dc=example,dc=com"  = admin

Valid values

dbms.security.ldap.authorization.group_to_role_mapping, a string which must be semicolon separated list of key-value pairs or empty

Default value

dbms.security.ldap.authorization.nested_groups_enabled

Enterprise Edition Dynamic

Table 213. dbms.security.ldap.authorization.nested_groups_enabled

Description

This setting determines whether multiple LDAP search results will be processed (as is required for the lookup of nested groups). If set to true then instead of using attributes on the user object to determine group membership (as specified by dbms.security.ldap.authorization.group_membership_attributes), the user object will only be used to determine the user’s Distinguished Name, which will subsequently be used with dbms.security.ldap.authorization.user_search_filter in order to perform a nested group search. The Distinguished Names of the resultant group search results will be used to determine roles.

Valid values

dbms.security.ldap.authorization.nested_groups_enabled, a boolean

Default value

false

dbms.security.ldap.authorization.nested_groups_search_filter

Enterprise Edition Dynamic

Table 214. dbms.security.ldap.authorization.nested_groups_search_filter

Description

The search template which will be used to find the nested groups which the user is a member of. The filter should contain the placeholder token {0} which will be substituted with the user’s Distinguished Name (which is found for the specified user principle using dbms.security.ldap.authorization.user_search_filter). The default value specifies Active Directory’s LDAP_MATCHING_RULE_IN_CHAIN (aka 1.2.840.113556.1.4.1941) implementation which will walk the ancestry of group membership for the specified user.

Valid values

dbms.security.ldap.authorization.nested_groups_search_filter, a string

Default value

(&(objectclass=group)(member:1.2.840.113556.1.4.1941:={0}))

dbms.security.ldap.authorization.system_password

Enterprise Edition

Table 215. dbms.security.ldap.authorization.system_password

Description

An LDAP system account password to use for authorization searches when dbms.security.ldap.authorization.use_system_account is true.

Valid values

dbms.security.ldap.authorization.system_password, a secure string

dbms.security.ldap.authorization.system_username

Enterprise Edition

Table 216. dbms.security.ldap.authorization.system_username

Description

An LDAP system account username to use for authorization searches when dbms.security.ldap.authorization.use_system_account is true. Note that the dbms.security.ldap.authentication.user_dn_template will not be applied to this username, so you may have to specify a full DN.

Valid values

dbms.security.ldap.authorization.system_username, a string

dbms.security.ldap.authorization.use_system_account

Enterprise Edition

Table 217. dbms.security.ldap.authorization.use_system_account

Description

Perform LDAP search for authorization info using a system account instead of the user’s own account. If this is set to false (default), the search for group membership will be performed directly after authentication using the LDAP context bound with the user’s own account. The mapped roles will be cached for the duration of dbms.security.auth_cache_ttl, and then expire, requiring re-authentication. To avoid frequently having to re-authenticate sessions you may want to set a relatively long auth cache expiration time together with this option. NOTE: This option will only work if the users are permitted to search for their own group membership attributes in the directory. If this is set to true, the search will be performed using a special system account user with read access to all the users in the directory. You need to specify the username and password using the settings dbms.security.ldap.authorization.system_username and dbms.security.ldap.authorization.system_password with this option. Note that this account only needs read access to the relevant parts of the LDAP directory and does not need to have access rights to Neo4j, or any other systems.

Valid values

dbms.security.ldap.authorization.use_system_account, a boolean

Default value

false

dbms.security.ldap.authorization.user_search_base

Enterprise Edition Dynamic

Table 218. dbms.security.ldap.authorization.user_search_base

Description

The name of the base object or named context to search for user objects when LDAP authorization is enabled. A common case is that this matches the last part of dbms.security.ldap.authentication.user_dn_template.

Valid values

dbms.security.ldap.authorization.user_search_base, a string which Can not be empty

Default value

ou=users,dc=example,dc=com

dbms.security.ldap.authorization.user_search_filter

Enterprise Edition Dynamic

Table 219. dbms.security.ldap.authorization.user_search_filter

Description

The LDAP search filter to search for a user principal when LDAP authorization is enabled. The filter should contain the placeholder token {0} which will be substituted for the user principal.

Valid values

dbms.security.ldap.authorization.user_search_filter, a string

Default value

(&(objectClass=*)(uid={0}))

dbms.security.ldap.connection_timeout

Enterprise Edition

Table 220. dbms.security.ldap.connection_timeout

Description

The timeout for establishing an LDAP connection. If a connection with the LDAP server cannot be established within the given time the attempt is aborted. A value of 0 means to use the network protocol’s (i.e., TCP’s) timeout value.

Valid values

dbms.security.ldap.connection_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

30s

dbms.security.ldap.host

Enterprise Edition

Table 221. dbms.security.ldap.host

Description

URL of LDAP server to use for authentication and authorization. The format of the setting is <protocol>://<hostname>:<port>, where hostname is the only required field. The supported values for protocol are ldap (default) and ldaps. The default port for ldap is 389 and for ldaps 636. For example: ldaps://ldap.example.com:10389. You may want to consider using STARTTLS (dbms.security.ldap.use_starttls) instead of LDAPS for secure connections, in which case the correct protocol is ldap.

Valid values

dbms.security.ldap.host, a string

Default value

localhost

dbms.security.ldap.read_timeout

Enterprise Edition

Table 222. dbms.security.ldap.read_timeout

Description

The timeout for an LDAP read request (i.e. search). If the LDAP server does not respond within the given time the request will be aborted. A value of 0 means wait for a response indefinitely.

Valid values

dbms.security.ldap.read_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

30s

dbms.security.ldap.referral

Enterprise Edition

Table 223. dbms.security.ldap.referral

Description

The LDAP referral behavior when creating a connection. This is one of follow, ignore or throw.

  • follow automatically follows any referrals

  • ignore ignores any referrals

  • throw throws an exception, which will lead to authentication failure.

Valid values

dbms.security.ldap.referral, a string

Default value

follow

dbms.security.ldap.use_starttls

Enterprise Edition

Table 224. dbms.security.ldap.use_starttls

Description

Use secure communication with the LDAP server using opportunistic TLS. First an initial insecure connection will be made with the LDAP server, and a STARTTLS command will be issued to negotiate an upgrade of the connection to TLS before initiating authentication.

Valid values

dbms.security.ldap.use_starttls, a boolean

Default value

false

dbms.security.log_successful_authentication

Enterprise Edition

Table 225. dbms.security.log_successful_authentication

Description

Set to log successful authentication events to the security log. If this is set to false only failed authentication events will be logged, which could be useful if you find that the successful events spam the logs too much, and you do not require full auditing capability.

Valid values

dbms.security.log_successful_authentication, a boolean

Default value

true

dbms.security.oidc.<provider>.audience

Enterprise Edition Dynamic

Table 226. dbms.security.oidc.<provider>.audience

Description

Expected values of the Audience (aud) claim in the id token.

Valid values

dbms.security.oidc.<provider>.audience, a ',' separated list with elements of type 'a string'. which Can not be empty

dbms.security.oidc.<provider>.auth_endpoint

Enterprise Edition Dynamic

Table 227. dbms.security.oidc.<provider>.auth_endpoint

Description

The OIDC authorization endpoint. If this is not supplied Neo4j will attempt to discover it from the well_known_discovery_uri.

Valid values

dbms.security.oidc.<provider>.auth_endpoint, a URI

dbms.security.oidc.<provider>.auth_flow

Enterprise Edition Dynamic

Table 228. dbms.security.oidc.<provider>.auth_flow

Description

The OIDC flow to use. This is exposed to clients via the discovery endpoint. Supported values are pkce and implicit

Valid values

dbms.security.oidc.<provider>.auth_flow, one of [PKCE, IMPLICIT]

Default value

PKCE

dbms.security.oidc.<provider>.auth_params

Enterprise Edition Dynamic Deprecated

Table 229. dbms.security.oidc.<provider>.auth_params

Description

Optional additional parameters that the auth endpoint requires. Please use params instead. The map is a semicolon separated list of key-value pairs. For example: k1=v1;k2=v2.

Valid values

dbms.security.oidc.<provider>.auth_params, A simple key value map pattern k1=v1;k2=v2.

Default value

{}

dbms.security.oidc.<provider>.authorization.group_to_role_mapping

Enterprise Edition Dynamic

Table 230. dbms.security.oidc.<provider>.authorization.group_to_role_mapping

Description

An authorization mapping from IdP group names to Neo4j role names. The map should be formatted as a semicolon separated list of key-value pairs, where the key is the IdP group name and the value is a comma separated list of corresponding role names. For example: group1=role1;group2=role2;group3=role3,role4,role5 You could also use whitespaces and quotes around group names to make this mapping more readable, for example:

dbms.security.oidc.<provider>.authorization.group_to_role_mapping=\
         "Neo4j Read Only"      = reader;    \
         "Neo4j Read-Write"     = publisher; \
         "Neo4j Schema Manager" = architect; \
         "Neo4j Administrator"  = admin

Valid values

dbms.security.oidc.<provider>.authorization.group_to_role_mapping, a string which must be semicolon separated list of key-value pairs or empty

dbms.security.oidc.<provider>.claims.groups

Enterprise Edition Dynamic

Table 231. dbms.security.oidc.<provider>.claims.groups

Description

The claim to use as the list of groups in Neo4j. These could be Neo4J roles directly, or can be mapped using dbms.security.oidc.<provider>.authorization.group_to_role_mapping.

Valid values

dbms.security.oidc.<provider>.claims.groups, a string

dbms.security.oidc.<provider>.claims.username

Enterprise Edition Dynamic

Table 232. dbms.security.oidc.<provider>.claims.username

Description

The claim to use as the username in Neo4j. This would typically be sub, but in some situations it may be be desirable to use something else such as email.

Valid values

dbms.security.oidc.<provider>.claims.username, a string

Default value

sub

dbms.security.oidc.<provider>.client_id

Enterprise Edition Dynamic

Table 233. dbms.security.oidc.<provider>.client_id

Description

Client id needed if token contains multiple Audience (aud) claims.

Valid values

dbms.security.oidc.<provider>.client_id, a string

dbms.security.oidc.<provider>.config

Enterprise Edition Dynamic

Table 234. dbms.security.oidc.<provider>.config

Description

The accepted values (all optional) are:

  • principal: in which JWT claim the user’s email address is specified, email is the default. This is the value that will be shown in browser.

  • code_challenge_method: default is S256 and it’s the only supported method at this moment. This setting applies only for pkce auth flow

  • token_type_principal: the options are almost always either access_token, which is the default, or id_token.

  • token_type_authentication: the options are almost always either access_token, which is the default, or id_token.

  • implicit_flow_requires_nonce: true or false. Defaults to false.

Valid values

dbms.security.oidc.<provider>.config, A simple key value map pattern k1=v1;k2=v2. Valid key options are: [implicit_flow_requires_nonce, token_type_authentication, token_type_principal, principal, code_challenge_method].

Default value

{}

dbms.security.logs.oidc.jwt_claims_at_debug_level_enabled

Table 235. dbms.security.logs.oidc.jwt_claims_at_debug_level_enabled

Description

When set to true, it logs the claims from the JWT. This will only take effect when the security log level is set to DEBUG.
WARNING: It is strongly advised that this is set to false when running in a production environment in order to prevent logging of sensitive information. Also note that the contents of the JWT claims set can change over time because they are dependent entirely upon the ID provider.

Valid values

dbms.security.logs.oidc.jwt_claims_at_debug_level_enabled, a boolean

Default value

false

dbms.security.oidc.<provider>.display_name

Enterprise Edition

Table 236. dbms.security.oidc.<provider>.display_name

Description

The user-facing name of the provider as provided by the discovery endpoint to clients (Bloom, Browser etc.).

Valid values

dbms.security.oidc.<provider>.display_name, a string

dbms.security.oidc.<provider>.get_groups_from_user_info

Enterprise Edition Dynamic

Table 237. dbms.security.oidc.<provider>.get_groups_from_user_info

Description

When turned on, Neo4j gets the groups from the provider user info endpoint.

Valid values

dbms.security.oidc.<provider>.get_groups_from_user_info, a boolean

Default value

false

dbms.security.oidc.<provider>.get_username_from_user_info

Enterprise Edition Dynamic

Table 238. dbms.security.oidc.<provider>.get_username_from_user_info

Description

When turned on, Neo4j gets the username from the provider user info endpoint.

Valid values

dbms.security.oidc.<provider>.get_username_from_user_info, a boolean

Default value

false

dbms.security.oidc.<provider>.issuer

Enterprise Edition Dynamic

Table 239. dbms.security.oidc.<provider>.issuer

Description

The expected value of the iss claim in the id token. If this is not supplied Neo4j will attempt to discover it from the well_known_discovery_uri.

Valid values

dbms.security.oidc.<provider>.issuer, a string

dbms.security.oidc.<provider>.jwks_uri

Enterprise Edition Dynamic

Table 240. dbms.security.oidc.<provider>.jwks_uri

Description

The location of the JWK public key set for the identity provider. If this is not supplied Neo4j will attempt to discover it from the well_known_discovery_uri.

Valid values

dbms.security.oidc.<provider>.jwks_uri, a URI

dbms.security.oidc.<provider>.params

Enterprise Edition Dynamic

Table 241. dbms.security.oidc.<provider>.params

Description

The map is a semicolon separated list of key-value pairs. For example: k1=v1;k2=v2. The user should at least provide:

  client_id: the SSO Idp client idenfifier.
  response_type: code if auth_flow is pkce or token for implicit auth_flow.
  scope: often containing a subset of 'email profile openid groups'.

For example: client_id=my-client-id;response_type=code;scope=openid profile email.

Valid values

dbms.security.oidc.<provider>.params, A simple key value map pattern k1=v1;k2=v2. Required key options are: [scope, client_id, response_type].

Default value

{}

dbms.security.oidc.<provider>.token_endpoint

Enterprise Edition Dynamic

Table 242. dbms.security.oidc.<provider>.token_endpoint

Description

The OIDC token endpoint. If this is not supplied Neo4j will attempt to discover it from the well_known_discovery_uri.

Valid values

dbms.security.oidc.<provider>.token_endpoint, a URI

dbms.security.oidc.<provider>.token_params

Enterprise Edition Dynamic

Table 243. dbms.security.oidc.<provider>.token_params

Description

Optional query parameters that the token endpoint requires. The map is a semicolon separated list of key-value pairs. For example: k1=v1;k2=v2.If the token endpoint requires a client_secret then this parameter should contain client_secret=super-secret

Valid values

dbms.security.oidc.<provider>.token_params, A simple key value map pattern k1=v1;k2=v2.

Default value

{}

dbms.security.oidc.<provider>.user_info_uri

Enterprise Edition Dynamic

Table 244. dbms.security.oidc.<provider>.user_info_uri

Description

The identity providers user info uri.

Valid values

dbms.security.oidc.<provider>.user_info_uri, a URI

dbms.security.oidc.<provider>.well_known_discovery_uri

Enterprise Edition Dynamic

Table 245. dbms.security.oidc.<provider>.well_known_discovery_uri

Description

The 'well known' OpenID Connect Discovery endpoint used to fetch identity provider settings. If not provided, issuer, jwks_uri, auth_endpoint should be present. If the auth_flow is pkce, token_endpoint should also be provided.

Valid values

dbms.security.oidc.<provider>.well_known_discovery_uri, a URI

dbms.security.procedures.allowlist

Table 246. dbms.security.procedures.allowlist

Description

A list of procedures (comma separated) that are to be loaded. The list may contain both fully-qualified procedure names, and partial names with the wildcard . The default () loads all procedures. If no value is specified, no procedures will be loaded.

Valid values

dbms.security.procedures.allowlist, a ',' separated list with elements of type 'a string'.

Default value

*

dbms.security.procedures.unrestricted

Table 247. dbms.security.procedures.unrestricted

Description

A list of procedures and user defined functions (comma separated) that are allowed full access to the database. The list may contain both fully-qualified procedure names, and partial names with the wildcard *. Note that this enables these procedures to bypass security. Use with caution.

Valid values

dbms.security.procedures.unrestricted, a ',' separated list with elements of type 'a string'.

Default value

Table 248. dbms.netty.ssl.provider

Description

Netty SSL provider.

Valid values

dbms.netty.ssl.provider, one of [JDK, OPENSSL, OPENSSL_REFCNT]

Default value

JDK

Server directories settings

server.directories.cluster_state

Enterprise Edition

Table 249. server.directories.cluster_state

Description

Directory to hold cluster state including Raft log.

Valid values

server.directories.cluster_state, a path. If relative it is resolved from server.directories.data

Default value

cluster-state

server.directories.data

Table 250. server.directories.data

Description

Path of the data directory. You must not configure more than one Neo4j installation to use the same data directory.

Valid values

server.directories.data, a path. If relative it is resolved from server.directories.neo4j_home

Default value

data

server.directories.dumps.root

Table 251. server.directories.dumps.root

Description

Root location where Neo4j will store database dumps optionally produced when dropping said databases.

Valid values

server.directories.dumps.root, a path. If relative it is resolved from server.directories.data

Default value

dumps

server.directories.import

Table 252. server.directories.import

Description

Sets the root directory for file URLs used with the Cypher LOAD CSV clause. This should be set to a directory relative to the Neo4j installation path, restricting access to only those files within that directory and its subdirectories. For example the value "import" will only enable access to files within the 'import' folder. Removing this setting will disable the security feature, allowing all files in the local system to be imported. Setting this to an empty field will allow access to all files within the Neo4j installation folder.

Valid values

server.directories.import, a path. If relative it is resolved from server.directories.neo4j_home

server.directories.lib

Table 253. server.directories.lib

Description

Path of the lib directory.

Valid values

server.directories.lib, a path. If relative it is resolved from server.directories.neo4j_home

Default value

lib

server.directories.licenses

Table 254. server.directories.licenses

Description

Path of the licenses directory.

Valid values

server.directories.licenses, a path. If relative it is resolved from server.directories.neo4j_home

Default value

licenses

server.directories.logs

Table 255. server.directories.logs

Description

Path of the logs directory.

Valid values

server.directories.logs, a path. If relative it is resolved from server.directories.neo4j_home

Default value

logs

server.directories.metrics

Enterprise Edition

Table 256. server.directories.metrics

Description

The target location of the CSV files: a path to a directory wherein a CSV file per reported field will be written.

Valid values

server.directories.metrics, a path. If relative it is resolved from server.directories.neo4j_home

Default value

metrics

server.directories.neo4j_home

Table 257. server.directories.neo4j_home

Description

Root relative to which directory settings are resolved. Calculated and set by the server on startup.

Valid values

server.directories.neo4j_home, a path which is absolute

Default value

Defaults to current working directory

server.directories.plugins

Table 258. server.directories.plugins

Description

Location of the database plugin directory. Compiled Java JAR files that contain database procedures will be loaded if they are placed in this directory.

Valid values

server.directories.plugins, a path. If relative it is resolved from server.directories.neo4j_home

Default value

plugins

server.directories.run

Table 259. server.directories.run

Description

Path of the run directory. This directory holds Neo4j’s runtime state, such as a pidfile when it is running in the background. The pidfile is created when starting neo4j and removed when stopping it. It may be placed on an in-memory filesystem such as tmpfs.

Valid values

server.directories.run, a path. If relative it is resolved from server.directories.neo4j_home

Default value

run

server.directories.script.root

Table 260. server.directories.script.root

Description

Root location where Neo4j will store scripts for configured databases.

Valid values

server.directories.script.root, a path. If relative it is resolved from server.directories.data

Default value

scripts

server.directories.transaction.logs.root

Table 261. server.directories.transaction.logs.root

Description

Root location where Neo4j will store transaction logs for configured databases.

Valid values

server.directories.transaction.logs.root, a path. If relative it is resolved from server.directories.data

Default value

transactions

Server settings

server.backup.enabled

Enterprise Edition

Table 262. server.backup.enabled

Description

Enable support for running online backups.

Valid values

server.backup.enabled, a boolean

Default value

true

server.backup.listen_address

Enterprise Edition

Table 263. server.backup.listen_address

Description

Network interface and port for the backup server to listen on.

Valid values

server.backup.listen_address, a socket address in the format 'hostname:port', 'hostname' or ':port'

Default value

127.0.0.1:6362

server.backup.store_copy_max_retry_time_per_request

Enterprise Edition

Table 264. server.backup.store_copy_max_retry_time_per_request

Description

Maximum retry time per request during store copy. Regular store files and indexes are downloaded in separate requests during store copy. This configures the maximum time failed requests are allowed to resend.

Valid values

server.backup.store_copy_max_retry_time_per_request, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

20m

server.config.strict_validation.enabled

Table 265. server.config.strict_validation.enabled

Description

A strict configuration validation will prevent the database from starting up if unknown configuration options are specified in the neo4j settings namespace (such as dbms., cypher., etc) or if settings are declared multiple times.

Valid values

server.config.strict_validation.enabled, a boolean

Default value

true

server.databases.default_to_read_only

Dynamic

Table 266. server.databases.default_to_read_only

Description

Whether or not any database on this instance are read_only by default. If false, individual databases may be marked as read_only using server.database.read_only. If true, individual databases may be marked as writable using server.databases.writable.

Valid values

server.databases.default_to_read_only, a boolean

Default value

false

server.databases.read_only

Dynamic

Table 267. server.databases.read_only

Description

List of databases for which to prevent write queries. Databases not included in this list maybe read_only anyway depending upon the value of server.databases.default_to_read_only.

Valid values

server.databases.read_only, a ',' separated set with elements of type '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''. which Value 'system' can’t be included in read only databases collection!

Default value

server.databases.writable

Dynamic

Table 268. server.databases.writable

Description

List of databases for which to allow write queries. Databases not included in this list will allow write queries anyway, unless server.databases.default_to_read_only is set to true.

Valid values

server.databases.writable, a ',' separated set with elements of type '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''.

Default value

server.dynamic.setting.allowlist

Enterprise Edition

Table 269. server.dynamic.setting.allowlist

Description

A list of setting name patterns (comma separated) that are allowed to be dynamically changed. The list may contain both full setting names, and partial names with the wildcard *. If this setting is left empty all dynamic settings updates will be blocked.

Valid values

server.dynamic.setting.allowlist, a ',' separated list with elements of type 'a string'.

Default value

*

server.jvm.additional

Table 270. server.jvm.additional

Description

Additional JVM arguments. Argument order can be significant. To use a Java commercial feature, the argument to unlock commercial features must precede the argument to enable the specific feature in the config value string.

Valid values

server.jvm.additional, one or more jvm arguments

server.max_databases

Enterprise Edition Deprecated in 5.6

Table 271. server.max_databases

Description

The maximum number of databases.

Valid values

server.max_databases, a long which is minimum 2

Default value

100

Replaced by

server.panic.shutdown_on_panic

Enterprise Edition

Table 272. server.panic.shutdown_on_panic

Description

If there is a Database Management System Panic (an irrecoverable error) should the neo4j process shut down or continue running. Following a DbMS panic it is likely that a significant amount of functionality will be lost. Recovering full functionality will require a Neo4j restart. This feature is available in Neo4j Enterprise Edition.

Valid values

server.panic.shutdown_on_panic, a boolean

Default value

false except for Neo4j Enterprise Edition deployments running on Kubernetes where it is true.

server.threads.worker_count

Table 273. server.threads.worker_count

Description

Number of Neo4j worker threads. This setting is only valid for REST, and does not influence bolt-server. It sets the amount of worker threads for the Jetty server used by neo4j-server. This option can be tuned when you plan to execute multiple, concurrent REST requests, with the aim of getting more throughput from the database. Your OS might enforce a lower limit than the maximum value specified here.

Valid values

server.threads.worker_count, an integer which is in the range 1 to 44738

Default value

Number of available processors, or 500 for machines which have more than 500 processors.

server.unmanaged_extension_classes

Table 274. server.unmanaged_extension_classes

Description

Comma-separated list of <classname>=<mount point> for unmanaged extensions.

Valid values

server.unmanaged_extension_classes, a ',' separated list with elements of type '<classname>=<mount point> string'.

Default value

server.windows_service_name

Table 275. server.windows_service_name

Description

Name of the Windows Service managing Neo4j when installed using neo4j install-service. Only applicable on Windows OS. Note: This must be unique for each individual installation.

Valid values

server.windows_service_name, a string

Default value

neo4j

Transaction settings

db.transaction.bookmark_ready_timeout

Dynamic

Table 276. db.transaction.bookmark_ready_timeout

Description

The maximum amount of time to wait for the database state represented by the bookmark.

Valid values

db.transaction.bookmark_ready_timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s) which is minimum 1s

Default value

30s

db.transaction.concurrent.maximum

Dynamic

Table 277. db.transaction.concurrent.maximum

Description

The maximum number of concurrently running transactions. If set to 0, limit is disabled.

Valid values

db.transaction.concurrent.maximum, an integer

Default value

1000

db.transaction.monitor.check.interval

Table 278. db.transaction.monitor.check.interval

Description

Configures the time interval between transaction monitor checks. Determines how often monitor thread will check transaction for timeout.

Valid values

db.transaction.monitor.check.interval, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

2s

db.transaction.sampling.percentage

Dynamic

Table 279. db.transaction.sampling.percentage

Description

Transaction sampling percentage.

Valid values

db.transaction.sampling.percentage, an integer which is in the range 1 to 100

Default value

5

db.transaction.timeout

Dynamic

Table 280. db.transaction.timeout

Description

The maximum time interval of a transaction within which it should be completed.

Valid values

db.transaction.timeout, a duration (Valid units are: ns, μs, ms, s, m, h and d; default unit is s)

Default value

0s

db.transaction.tracing.level

Dynamic

Table 281. db.transaction.tracing.level

Description

Transaction creation tracing level.

Valid values

db.transaction.tracing.level, one of [DISABLED, SAMPLE, ALL]

Default value

DISABLED

Transaction log settings

Transaction logs keep the list of transactions that have not yet been applied to the store files. This is necessary for recovery. The following settings configure the amount of transaction logs left after a pruning operation and the size of the transaction log files.

db.tx_log.buffer.size

Table 282. db.tx_log.buffer.size

Description

On serialization of transaction logs, they will be temporary stored in the byte buffer that will be flushed at the end of the transaction or at any moment when buffer will be full.

Valid values

db.tx_log.buffer.size, a long which is minimum 131072

Default value

By default the size of byte buffer is based on number of available cpu’s with minimal buffer size of 512KB. Every another 4 cpu’s will add another 512KB into the buffer size. Maximal buffer size in this default scheme is 4MB taking into account that we can have one transaction log writer per database in multi-database env.For example, runtime with 4 cpus will have buffer size of 1MB; runtime with 8 cpus will have buffer size of 1MB 512KB; runtime with 12 cpus will have buffer size of 2MB.

db.tx_log.preallocate

Dynamic

Table 283. db.tx_log.preallocate

Description

Specify if Neo4j should try to preallocate the logical log file in advance. It optimizes filesystem by ensuring there is room to accommodate newly generated files and avoid file-level fragmentation.

Valid values

db.tx_log.preallocate, a boolean

Default value

true

db.tx_log.rotation.retention_policy

Dynamic

Table 284. db.tx_log.rotation.retention_policy

Description

Tell Neo4j how long logical transaction logs should be kept to backup the database.For example, "10 days" will prune logical logs that only contain transactions older than 10 days.Alternatively, "100k txs" will keep the 100k latest transactions from each database and prune any older transactions.

Valid values

db.tx_log.rotation.retention_policy, a string which matches the pattern ^(true|keep_all|false|keep_none|(\d+[KkMmGg]?( (files|size|txs|entries|hours|days))))$ (Must be true or keep_all, false or keep_none, or of format <number><optional unit> <type>. Valid units are K, M and G. Valid types are files, size, txs, entries, hours and days. For example, 100M size will limit logical log space on disk to 100MB per database,and 200K txs will limit the number of transactions kept to 200 000 per database.)

Default value

2 days

db.tx_log.rotation.size

Dynamic

Table 285. db.tx_log.rotation.size

Description

Specifies at which file size the logical log will auto-rotate. Minimum accepted value is 128 KiB.

Valid values

db.tx_log.rotation.size, a byte size (valid multipliers are B, KiB, KB, K, kB, kb, k, MiB, MB, M, mB, mb, m, GiB, GB, G, gB, gb, g, TiB, TB, PiB, PB, EiB, EB) which is minimum 128.00KiB

Default value

256.00MiB