Skip to content

Commit 5b76a82

Browse files
committed
Document new NO_CHECK for SPD offline seeding
1 parent bc3c52b commit 5b76a82

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

modules/ROOT/pages/scalability/sharded-property-databases/data-ingestion.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,32 @@ OPTIONS {
5050
};
5151
----
5252

53+
It is also possible to perform the import on a cluster that has no access to any kind of block storage.
54+
55+
. Using the `neo4j-admin database import` command, import data into the `foo-sharded` database, creating one graph shard and three property shards.
56+
If the process is running on the same server as another Neo4j DBMS process, the latter must be stopped.
57+
+
58+
[source, shell]
59+
----
60+
neo4j-admin database import full foo-sharded --nodes=nodes.csv --nodes=movies.csv --relationships=relationships.csv --input-type=csv --property-shard-count=3 --schema=schema.cypher
61+
----
62+
63+
. using allow and deny database allocate a single shard to each server in the cluster.
64+
See xref:clustering/databases.adoc#cluster-allow-deny-db[allow and deny database]
65+
. Move the produced backups from the local file system on the machine used to run the import onto the server that is hosting each of the shards so that each server has 1 backup and they reside in the same path on each server.
66+
. On each server, update the neo4j.conf to include the correct settings for file seeding as outlined in xref:database-administration/standard-databases/seed-from-uri.adoc[Create a database from a URI].
67+
. Create the database foo-sharded as a sharded property database by seeding it from your backups in the servers file systems:
68+
+
69+
[source, cypher]
70+
----
71+
CREATE DATABASE `foo-sharded`
72+
DEFAULT LANGUAGE CYPHER 25
73+
PROPERTY SHARDS { COUNT 3 }
74+
OPTIONS {
75+
seedUri: `file:/backusp/`, seedOptions: 'NO_CHECK'
76+
};
77+
----
78+
5379
The cluster automatically distributes the data across its servers.
5480
For more information on seed providers, see xref:database-administration/standard-databases/seed-from-uri.adoc[Create a database from a URI].
5581

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@
2323
"author": "Neo4j",
2424
"license": "ISC",
2525
"dependencies": {
26-
"antora": "^3.1.10",
2726
"@neo4j-antora/antora-add-notes": "^0.3.2",
2827
"@neo4j-antora/antora-page-roles": "^0.3.2",
2928
"@neo4j-antora/antora-unlisted-pages": "^0.1.0",
3029
"@neo4j-antora/roles-labels": "^0.1.1",
3130
"@neo4j-antora/table-footnotes": "^1.0.0",
3231
"@neo4j-antora/xref-hash-validator": "^0.1.3",
3332
"@neo4j-documentation/macros": "^1.0.4",
34-
"@neo4j-documentation/remote-include": "^1.0.0"
33+
"@neo4j-documentation/remote-include": "^1.0.0",
34+
"antora": "^3.1.10"
3535
},
3636
"devDependencies": {
3737
"express": "^5.1.0",
3838
"nodemon": "^3.1.0"
3939
},
40-
"nodemonConfig": {
40+
"nodemonConfig": {
4141
"watch": [
4242
"**/modules/**",
4343
"**/antora.yml",

0 commit comments

Comments
 (0)