database.properties Reference
plugins/AstralCore/database.properties configures the HikariCP JDBC connection pool used by DatabaseService. All keys follow standard HikariCP naming conventions.
Default file
Connection Settings
Key | Type | Default | Description |
|---|---|---|---|
| String |
| Full JDBC URL. Supports MariaDB, MySQL, PostgreSQL, and H2. |
| String |
| JDBC driver class. Set automatically for bundled drivers. |
| String | — | Database username. |
| String | — | Database password. |
| String |
| Label shown in thread names and JVM monitoring tools. |
Pool Size
Key | Type | Default | Recommended |
|---|---|---|---|
| int |
| Number of idle connections always maintained. |
| int |
| Maximum total connections in the pool. |
Scaling Guidelines
Server size |
|
|
|---|---|---|
Small (<50 players) | 2 | 3 |
Medium (50–200 players) | 3 | 5 |
Large (200+ players) | 5 | 8 |
Lifecycle Settings
Key | Type | Default | Description |
|---|---|---|---|
| ms |
| Maximum age of a connection before it is retired. |
| ms |
| How long an idle connection can sit before being removed. |
| ms |
| Maximum time to wait when acquiring a connection from the pool. |
Diagnostics
Key | Type | Default | Description |
|---|---|---|---|
| ms |
| If a connection is held longer than this threshold a warning is logged. Set to |
Supported Databases
Database | Driver class | URL format |
|---|---|---|
MariaDB |
|
|
MySQL |
|
|
PostgreSQL |
|
|
H2 (in-memory) |
|
|