diff --git a/src/main/asciidoc/how-to/operations/aws-marketplace.adoc b/src/main/asciidoc/how-to/operations/aws-marketplace.adoc index 1950cd0b..d7c1c072 100644 --- a/src/main/asciidoc/how-to/operations/aws-marketplace.adoc +++ b/src/main/asciidoc/how-to/operations/aws-marketplace.adoc @@ -53,6 +53,8 @@ cat ~/arcadedb-root-password.txt ---- Store the password in your secrets manager, then delete the file from the instance. +The server does not read that copy: it reads `/etc/arcadedb/root-password` (owned by the service, mode 400) through the +<> setting, so deleting the file in your home directory changes nothing for the server. [[aws-marketplace-connect]] ===== Connect @@ -84,11 +86,38 @@ The plain HTTP port is meant for private networks: for traffic that crosses the | Service status | `sudo systemctl status arcadedb` | Restart | `sudo systemctl restart arcadedb` | Database files | `/var/lib/arcadedb/databases` +| Backups | `/var/lib/arcadedb/backups` +| Server logs | `/var/log/arcadedb` |=== +The JVM heap is sized from the instance memory (initial 25%, maximum 50%), and remote JMX is turned off. + Keep the databases on the instance's EBS volume and back them up with <> or EBS snapshots. The software fee stops while the instance is stopped; EBS storage is still billed. +[[aws-marketplace-settings]] +===== Change server settings + +The server settings are JVM properties in the `ARCADEDB_SETTINGS` variable of the `arcadedb` systemd unit. +Override them with a systemd drop-in rather than by editing the unit file: + +[source,shell] +---- +sudo systemctl edit arcadedb +---- + +In the editor, set the whole variable again: the drop-in replaces it, so keep the three settings the image ships with and add yours after them. +For example, to enable the PostgreSQL protocol: + +[source,ini] +---- +[Service] +Environment="ARCADEDB_SETTINGS=-Darcadedb.server.rootPasswordPath=/etc/arcadedb/root-password -Darcadedb.server.databaseDirectory=/var/lib/arcadedb/databases -Darcadedb.server.backupDirectory=/var/lib/arcadedb/backups -Darcadedb.server.plugins=Postgres:com.arcadedb.postgres.PostgresProtocolPlugin" +---- + +Then apply it with `sudo systemctl restart arcadedb`, and open the protocol's port in the security group from your own IP range only. +See <> and the <> for the other settings. + [[aws-marketplace-upgrade]] ===== Upgrade