Make Postgres optional on substrate deployments#236
Conversation
| echo "Options:" | ||
| echo " --deploy-ax-server Build images and deploy AX server and components" | ||
| echo " --delete-ax-server Delete AX server and components, preserving the event-log database" | ||
| echo " --no-postgres With --deploy-ax-server: use an ephemeral SQLite event log instead of Postgres" |
There was a problem hiding this comment.
If it's --no-postgres, it should look for credentials to connect to an existing Postgres deployment and should never rely on SQLite in Substrate deployments.
There was a problem hiding this comment.
Done. Updated the flag name as well.
|
What about making --no-progress the default. Progress deployment is only for people who are testing this on Substrate, no real production user will use the Postgres deployment we provide from the |
Make sense. I updated the PR with user-provided DSN by default, and |
Changes
Adds a
--no-postgresflag tohack/install-ax.shso a substrate deployment canskip the Postgres StatefulSet and run with an ephemeral SQLite event log
instead. Fix #168.
StatefulSet, applied only in the default (Postgres) mode.
--no-postgresflag.AX_SERVER_REPLICAS=3, resolves/generates the Postgres password, and waits
for the Postgres StatefulSet.
--no-postgres: applies only ax-deployment.yaml withAX_SERVER_REPLICAS=1, rewriting the ConfigMap's eventlog block to
sqlite: filename: "/tmp/ax-eventlog/log.sqlite".
Tested