Persistence Backend
The Go-based setup uses PostgreSQL as the persistence backend for BaSyx core services.
Configure the PostgreSQL connection and pool settings below. These values are written to the AAS Environment and Configuration Service environment variables.
What these settings control
- POSTGRES_HOST and POSTGRES_PORT define the database endpoint.
- POSTGRES_DBNAME, POSTGRES_USER, and POSTGRES_PASSWORD define credentials.
- POSTGRES_MAXOPENCONNECTIONS limits total open DB connections.
- POSTGRES_MAXIDLECONNECTIONS controls how many idle connections are kept.
- POSTGRES_CONNMAXLIFETIMEMINUTES sets how long a connection can be reused.