Leader node in Neo4j5.26.6

Hi Team,

Before upgrade of neo4j from 4.4 to 5.26.0, we have leader and follower concept. When we try to load the data, we will place the file in leader node import folder and load the data.

Now in newer version the leader and follower concept changed to primary and secondary. As per the documentation if we are running 3 node cluster, they recommended to maintain all as primary nodes. So now which node will act as leader is my doubt. In which server I need to place the file to import the data. How can I identify the leader node.

1 Like

show databases neo4j where writer = true and role = "primary"

this should give you the LEADER

you should not care which node is leader
when installing Neo4j, neo4j creates a data-4.4-migration-folder

you can create the database with the copy command. You can even use the copy schema. At the startup it will automatically recreate range indexes

@gedala.kumar.ext

the leader/follower concepts still exits in v5 though its somewhat different compared to v4. With v4 a single server could host N databases and that server was defined as either a LEADER or FOLLOWER for all N databases. With v5, the leader / follower concept is no longer tied to the server itself but rather to a database. For example server A could host 5 database of which database A and D are in leader mode and database B, C and E are in follower mode. Also a show databases will report a writer boolean representing if the member is a leader or not