Reload Neo4j using Systemd

systemd

(Mike Blum+Neo4j) #1

When running neo4j as a systemd service is there any way to reload the configuration and certificates in particular without a full restart of the db?

Here is the documentation (little sparse?):

https://neo4j.com/docs/operations-manual/current/installation/linux/systemd/

And here is my config:

[Unit]
Description=a graph database
Documentation=https://neo4j.com/docs/operations-manual/3.4
After=network.target

[Service]
User=neo4j
Group=neo4j
Type=forking
ExecStart=/usr/local/bin/neo4j start
ExecReload=/usr/local/bin/neo4j restart
TimeoutSec=120
KillMode=process
Restart=on-failure
RestartSec=10
RuntimeDirectory=neo4j
LimitMEMLOCK=infinity
LimitNOFILE=60000
SecureBits=keep-caps
NoNewPrivileges=yes
Environment=NEO4J_HOME=/opt/neo4j

[Install]
WantedBy=multi-user.target

Any thoughts on how to reload certificates in neo4j without a full restart? As this triggers an outage and a page cache reload.


(M. David Allen) #2

Unfortunately, no. Reloading certificates and configuration requires a full restart.

There are a handful of neo4j dynamic configuration options that can be changed while the server runs, but many system-critical ones are not included in the dynamic set.

https://neo4j.com/docs/operations-manual/current/configuration/dynamic-settings/