知识库

手动将 Neo4j 2.x 的配置设置迁移到 Neo4j 3.x

Neo4j 3.0 的一个主要变化是重新设计了配置文件,并更改了单个配置设置命名约定,使其更一致和易于管理。Neo4j 3.0 中提供了一个 config-migrator 工具来帮助自动化此过程。但是,对于某些用户来说,这可能不是一种选择,或者不是理想的选择。对于这些用户,以下参考表列出了以前的配置设置名称、新名称以及与 3.0 之前设置相比的更改。

请注意,配置文件 conf/neo4j.propertiesconf/neo4j-server.properties 在 Neo4j 3.0 中合并为单个 conf/neo4j.confconf/neo4j-wrapper.conf 中的配置设置名称也已更改,但大多数仍保留在该配置文件中(将在 Neo4j 3.1 中合并到 neo4j.conf 中)。

3.0 之前的名称 3.0 名称 净变化

consistency_check_execution_order

 — 

已移除

consistency_check_report_file

 — 

已移除

dbms.querylog.filename

 — 

派生

ha.cluster_join_timeout

 — 

替换为 ha.join_timeout

ha.server_type

 — 

合并到 dbms.mode

logging.threshold_for_rotation

 — 

已移除

neo_store

 — 

已移除

org.neo4j.server.database.location

 — 

已移除

org.neo4j.server.db.tuning.properties

 — 

已移除

org.neo4j.server.http.log.config

 — 

已移除

org.neo4j.server.http.unsafe.content_log.enabled

 — 

已移除

org.neo4j.server.properties

 — 

已移除

org.neo4j.server.webadmin.rrdb.location

 — 

已移除

org.neo4j.server.webserver.https.cert.location

 — 

替换为 dbms.directories.certificates

org.neo4j.server.webserver.https.key.location

 — 

替换为 dbms.directories.certificates

org.neo4j.server.webserver.https.keystore.location

 — 

已移除

org.neo4j.server.webserver.statistics

 — 

已移除

relationship_grab_size

 — 

已移除

store.internal_log.location

 — 

已移除

wrapper.user

 — 

已移除

dbms.security.allow_outgoing_browser_connections

browser.allow_outgoing_connections

已重命名

dbms.browser.credential_timeout

browser.credential_timeout

已重命名

dbms.browser.remote_content_hostname_whitelist

browser.remote_content_hostname_whitelist

已重命名

dbms.browser.store_credentials

browser.retain_connection_credentials

已重命名

cypher_parser_version

cypher.default_language_version

已重命名

dbms.cypher.forbid.exhaustive.shortestpath

cypher.forbid_exhaustive_shortestpath

已重命名

dbms.cypher.hints.error

cypher.hints_error

已重命名

dbms.cypher.min_replan_interval

cypher.min_replan_interval

已重命名

dbms.cypher.planner

cypher.planner

已重命名

dbms.cypher.statistics_divergence_threshold

cypher.statistics_divergence_threshold

已重命名

dbms.active_database

dbms.active_database

 — 

allow_store_upgrade

dbms.allow_format_migration

已重命名

node_auto_indexing

dbms.auto_index.nodes.enabled

已重命名

node_keys_indexable

dbms.auto_index.nodes.keys

已重命名

relationship_auto_indexing

dbms.auto_index.relationships.enabled

已重命名

relationship_keys_indexable

dbms.auto_index.relationships.keys

已重命名

online_backup_server

dbms.backup.address

已重命名

online_backup_enabled

dbms.backup.enabled

已重命名

dbms.checkpoint.interval.time

dbms.checkpoint.interval.time

 — 

dbms.checkpoint.interval.tx

dbms.checkpoint.interval.tx

 — 

org.neo4j.server.webserver.address

dbms.connector.*

转换为 dbms.connector.*

org.neo4j.server.webserver.https.enabled

dbms.connector.*

转换为 dbms.connector.*

org.neo4j.server.webserver.https.port

dbms.connector.*

转换为 dbms.connector.*

org.neo4j.server.webserver.port

dbms.connector.*

转换为 dbms.connector.*

 — 

dbms.connector.<n>.address

 — 

 — 

dbms.connector.<n>.enabled

 — 

dbms.connector.<n>.tls.level

dbms.connector.<n>.tls_level

已重命名

 — 

dbms.directories.bin

已添加

dbms.directories.data

dbms.directories.data

 — 

dbms.security.load_csv_file_url_root

dbms.directories.import

已重命名

 — 

dbms.directories.lib

已添加

 — 

dbms.directories.logs

已添加

metrics.csv.path

dbms.directories.metrics

已重命名

dbms.plugin.directory

dbms.directories.plugins

已重命名

wrapper.pidfile

dbms.directories.run

转换为目录并重命名

index_background_sampling_enabled

dbms.index_sampling.background_enabled

已重命名

index_sampling_buffer_size

dbms.index_sampling.buffer_size

已重命名

index_sampling_update_percentage

dbms.index_sampling.update_percentage

已重命名

lucene_searcher_cache_size

dbms.index_searcher_cache_size

已重命名

wrapper.java.additional

dbms.jvm.additional

已重命名

store.internal_log.level

dbms.logs.debug.level

已重命名

store.internal_log.rotation_delay

dbms.logs.debug.rotation.delay

已重命名

store.internal_log.max_archives

dbms.logs.debug.rotation.keep_number

已重命名

store.internal_log.rotation_threshold

dbms.logs.debug.rotation.size

已重命名

 — 

dbms.logs.gc.enabled

从 wrapper.java.additional 转换而来

 — 

dbms.logs.gc.options

从 wrapper.java.additional 转换而来

 — 

dbms.logs.gc.rotation.keep_number

从 wrapper.java.additional 转换而来

 — 

dbms.logs.gc.rotation.size

从 wrapper.java.additional 转换而来

org.neo4j.server.http.log.enabled

dbms.logs.http.enabled

已重命名

 — 

dbms.logs.http.rotation.keep_number

已添加

 — 

dbms.logs.http.rotation.size

已添加

dbms.querylog.enabled

dbms.logs.query.enabled

已重命名

dbms.querylog.max_archives

dbms.logs.query.rotation.keep_number

已重命名

dbms.querylog.rotation.threshold

dbms.logs.query.rotation.size

已重命名

dbms.querylog.threshold

dbms.logs.query.threshold

已重命名

wrapper.java.initmemory

dbms.memory.heap.initial_size

已重命名

wrapper.java.maxmemory

dbms.memory.heap.max_size

已重命名

dbms.pagecache.memory

dbms.memory.pagecache.size

已重命名

dbms.pagecache.swapper

dbms.memory.pagecache.swapper

已重命名

org.neo4j.server.database.mode

dbms.mode

已重命名

query_cache_size

dbms.query_cache_size

已重命名

read_only

dbms.read_only

已重命名

dense_node_threshold

dbms.relationship_grouping_threshold

已重命名

allow_file_urls

dbms.security.allow_csv_import_from_file_urls

已重命名

dbms.security.auth_enabled

dbms.security.auth_enabled

 — 

 — 

dbms.security.ha_status_auth_enabled

 — 

org.neo4j.server.rest.security_rules

dbms.security.http_authorization_classes

已重命名

remote_shell_enabled

dbms.shell.enabled

已重命名

remote_shell_host

dbms.shell.host

已重命名

remote_shell_port

dbms.shell.port

已重命名

remote_shell_read_only

dbms.shell.read_only

已重命名

remote_shell_name

dbms.shell.rmi_name

已重命名

org.neo4j.server.webserver.maxthreads

dbms.threads.worker_count

已重命名

org.neo4j.server.transaction.timeout

dbms.transaction_timeout

已重命名

keep_logical_logs

dbms.tx_log.rotation.retention_policy

已重命名

logical_log_rotation_threshold

dbms.tx_log.rotation.size

已重命名

neo4j.ext.udc.enabled

dbms.udc.enabled

已重命名

org.neo4j.server.thirdparty_jaxrs_classes

dbms.unmanaged_extension_classes

已重命名

wrapper.name

dbms.windows_service_name

已重命名

ha.allow_init_cluster

ha.allow_init_cluster

 — 

ha.branched_data_policy

ha.branched_data_policy

 — 

ha.broadcast_timeout

ha.broadcast_timeout

 — 

ha.configuration_timeout

ha.configuration_timeout

 — 

ha.com_chunk_size

ha.data_chunk_size

已重命名

ha.default_timeout

ha.default_timeout

 — 

ha.election_timeout

ha.election_timeout

 — 

ha.heartbeat_interval

ha.heartbeat_interval

 — 

ha.heartbeat_timeout

ha.heartbeat_timeout

 — 

ha.cluster_server

ha.host.coordination

已重命名

ha.server

ha.host.data

已重命名

ha.initial_hosts

ha.initial_hosts

 — 

ha.internal_state_switch_timeout

ha.internal_role_switch_timeout

已重命名

ha.join_timeout

ha.join_timeout

 — 

ha.learn_timeout

ha.learn_timeout

 — 

ha.leave_timeout

ha.leave_timeout

 — 

ha.max_concurrent_channels_per_slave

ha.max_channels_per_slave

已重命名

ha.paxos_timeout

ha.paxos_timeout

 — 

ha.phase1_timeout

ha.phase1_timeout

 — 

ha.phase2_timeout

ha.phase2_timeout

 — 

ha.pull_apply_batch_size

ha.pull_batch_size

已重命名

ha.pull_interval

ha.pull_interval

 — 

ha.state_switch_timeout

ha.role_switch_timeout

已重命名

ha.server_id

ha.server_id

 — 

ha.lock_read_timeout

ha.slave_lock_timeout

已重命名

ha.slave_only

ha.slave_only

 — 

ha.read_timeout

ha.slave_read_timeout

已重命名

ha.tx_push_factor

ha.tx_push_factor

 — 

ha.tx_push_strategy

ha.tx_push_strategy

 — 

consistency_check_graph

tools.consistency_checker.check_graph

已重命名

consistency_check_indexes

tools.consistency_checker.check_indexes

已重命名

consistency_check_label_scan_store

tools.consistency_checker.check_label_scan_store

已重命名

consistency_check_property_owners

tools.consistency_checker.check_property_owners

已重命名

dbms.cypher.compiler_tracing

unsupported.cypher.compiler_tracing

已重命名

dbms.cypher.idp_solver_duration_threshold

unsupported.cypher.idp_solver_duration_threshold

已重命名

dbms.cypher.idp_solver_table_threshold

unsupported.cypher.idp_solver_table_threshold

已重命名

dbms.cypher.non_indexed_label_warning_threshold

unsupported.cypher.non_indexed_label_warning_threshold

已重命名

dbms.cypher.runtime

unsupported.cypher.runtime

已重命名

array_block_size

unsupported.dbms.block_size.array_properties

已重命名

label_block_size

unsupported.dbms.block_size.labels

已重命名

string_block_size

unsupported.dbms.block_size.strings

已重命名

dbms.webadmin.enabled

unsupported.dbms.console_module.enabled

已重命名

org.neo4j.server.manage.console_engines

unsupported.dbms.console_module.engines

已重命名

store.interval.log.rotation

unsupported.dbms.counts_store_rotation_timeout

已重命名

dbms.internal.derived.directories.database

unsupported.dbms.directories.database

已重命名

edition

unsupported.dbms.edition

已重命名

ephemeral

unsupported.dbms.ephemeral

已重命名

execution_guard_enabled

unsupported.dbms.executiontime_limit.enabled

已重命名

org.neo4j.server.webserver.limit.executiontime

unsupported.dbms.executiontime_limit.time

已重命名

gc_monitor_threshold

unsupported.dbms.gc_monitor_threshold

已重命名

gc_monitor_wait_time

unsupported.dbms.gc_monitor_wait_time

已重命名

rebuild_idgenerators_fast

unsupported.dbms.id_generator_fast_rebuild_enabled

已重命名

forced_kernel_id

unsupported.dbms.kernel_id

已重命名

lock_manager

unsupported.dbms.lock_manager

已重命名

store.internal_log.debug_contexts

unsupported.dbms.logs.debug.debug_loggers

已重命名

org.neo4j.server.webserver.max.request.header

unsupported.dbms.max_http_request_header_size

已重命名

org.neo4j.server.webserver.max.response.header

unsupported.dbms.max_http_response_header_size

已重命名

dbms.pagecache.pagesize

unsupported.dbms.memory.pagecache.pagesize

已重命名

multi_threaded_schema_index_population_enabled

unsupported.dbms.multi_threaded_schema_index_population_enabled

已重命名

record_format

unsupported.dbms.record_format

已重命名

dump_configuration

unsupported.dbms.report_configuration

已重命名

dbms.security.auth_store.location

unsupported.dbms.security.auth_store.location

已重命名

org.neo4j.server.script.sandboxing.enabled

unsupported.dbms.security.script_sandboxing_enabled

已重命名

shutdown_transaction_end_timeout

unsupported.dbms.shutdown_transaction_end_timeout

已重命名

dbms.tracer

unsupported.dbms.tracer

已重命名

transaction_start_timeout

unsupported.dbms.transaction_start_timeout

已重命名

neo4j.ext.udc.first_delay

不支持.dbms.udc.first_delay

已重命名

neo4j.ext.udc.host

不支持.dbms.udc.host

已重命名

neo4j.ext.udc.interval

不支持.dbms.udc.interval

已重命名

neo4j.ext.udc.reg

不支持.dbms.udc.reg

已重命名

neo4j.ext.udc.source

不支持.dbms.udc.source

已重命名

org.neo4j.server.webadmin.browser.uri

不支持.dbms.uris.browser

已重命名

org.neo4j.server.webadmin.management.uri

不支持.dbms.uris.management

已重命名

org.neo4j.server.webadmin.data.uri

不支持.dbms.uris.rest

已重命名

experimental.use_read_locks_on_property_reads

不支持.dbms.use_read_locks_on_property_reads

已重命名

不支持_wadl_generation_enabled

不支持.dbms.wadl_generation_enabled

已重命名

ha.cluster_name

不支持.ha.cluster_name

已重命名

ha.instance_name

不支持.ha.instance_name

已重命名

batch_inserter_batch_size

不支持.tools.batch_inserter.batch_size

已重命名