Read-only web access to a read-write database in Neo4j 3.0

ぐ巨炮叔叔 提交于 2019-12-22 03:22:41

问题


There has been quite a few changes to the core of Neo4j in this new update, which is really exciting.

One thing that was lacking in previous Neo4j releases was the ability to let users use the web interface. Well, they could use it if you didn't mind them being able to delete everything, or you didn't mind making the whole database read-only to everyone, including yourself.

Is there a workaround now in 3.x? I see you've made some pretty awesome improvements to the web interface (which seem to have flown under the radar in all the conferences and YouTube videos) - however I can't let my users use any of this awesome because they might match (n) detach delete (n).

Thank you! :)


回答1:


If you have access to enterprise version or don't mind the AGPL license of neo4j-ha then you can create a read-only slave.

Have a look at neo4j high availability documentation for configuration.

In particular you want to have following properties set:

# Only allow read operations from this Neo4j instance. This mode still requires
# write access to the directory for lock purposes.
dbms.read_only=true

and

# Whether this instance should only participate as slave in cluster. If set to
# true, it will never be elected as master.
ha.slave_only=true


来源:https://stackoverflow.com/questions/37070585/read-only-web-access-to-a-read-write-database-in-neo4j-3-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!