Skip to content

Commit

Permalink
GDB-10540: Renamed proxy service name
Browse files Browse the repository at this point in the history
- Renamed `graphdb_cluster_proxy` service to `graphdb-cluster-proxy`
  for consistency with the rest of our VMs
- Provisioned `/etc/graphdb-cluster-proxy/graphdb-cluster-proxy.env`
  • Loading branch information
mihailradkov committed Jul 23, 2024
1 parent d6a7a9b commit 93c22cc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to the Packer configuration for creating GraphDB Google Cloud VM images will be documented in this file.

## 1.0.1

- Renamed `graphdb_cluster_proxy` service to `graphdb-cluster-proxy` for consistency with the rest of our VMs
- Provisioned `/etc/graphdb-cluster-proxy/graphdb-cluster-proxy.env`

## 1.0.0

- Initial release of the Packer configuration
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ systemctl restart graphdb.service
## GraphDB Cluster Proxy

By default, the VM will start only the GraphDB systemd service `graphdb.service` on port `7200`. The image has a second systemd service
definition `graphdb_cluster_proxy.service` for a second GraphDB process in cluster proxy mode on port `7201`.
definition `graphdb-cluster-proxy.service` for a second GraphDB process in cluster proxy mode on port `7201`.

This proxy is used in the clustered setup of GraphDB, see https://graphdb.ontotext.com/documentation/10.7/cluster-basics.html for more
information.

To start the cluster proxy process, use:

```shell
systemctl enable graphdb_cluster_proxy.service
systemctl start graphdb_cluster_proxy.service
systemctl enable graphdb-cluster-proxy.service
systemctl start graphdb-cluster-proxy.service
```

## Support
Expand Down
4 changes: 2 additions & 2 deletions build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ build {
"./files/google-cloud-ops-agent-config.yaml",
"./files/graphdb.env",
"./files/graphdb.service",
"./files/graphdb_cluster_proxy.env",
"./files/graphdb_cluster_proxy.service",
"./files/graphdb-cluster-proxy.env",
"./files/graphdb-cluster-proxy.service",
"./files/install_graphdb.sh"
]
destination = "/tmp/"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Restart=on-failure
RestartSec=5s
User=graphdb
Group=graphdb
EnvironmentFile=/etc/graphdb/graphdb_cluster_proxy.env
EnvironmentFile=/etc/graphdb-cluster-proxy/graphdb-cluster-proxy.env
ExecStart="/opt/graphdb/bin/cluster-proxy"
TimeoutSec=120
SuccessExitStatus=143
Expand Down
3 changes: 2 additions & 1 deletion files/install_graphdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ mv graphdb-"${GRAPHDB_VERSION}" /opt/graphdb-"${GRAPHDB_VERSION}"
ln -s /opt/graphdb-"${GRAPHDB_VERSION}" /opt/graphdb

mv /tmp/graphdb.env /etc/graphdb/graphdb.env
mv /tmp/graphdb-cluster-proxy.env /etc/graphdb-cluster-proxy/graphdb-cluster-proxy.env

chown -R graphdb:graphdb /etc/graphdb \
/etc/graphdb-cluster-proxy \
Expand All @@ -78,7 +79,7 @@ chown -R graphdb:graphdb /etc/graphdb \
/var/opt/graphdb

mv /tmp/graphdb.service /lib/systemd/system/graphdb.service
mv /tmp/graphdb_cluster_proxy.service /lib/systemd/system/graphdb_cluster_proxy.service
mv /tmp/graphdb-cluster-proxy.service /lib/systemd/system/graphdb-cluster-proxy.service

systemctl daemon-reload
systemctl enable graphdb.service
Expand Down

0 comments on commit 93c22cc

Please sign in to comment.