Configuring the MySQL Connection

ToroDB Stampede uses the following defaults to connect to MySQL:

backend:
  mysql:
    host: localhost
    port: 5432
    database: torod
    user: torodb
    toropassFile: "~/.toropass"
    applicationName: "toro"
    ssl: false

The Options Reference explains these settings in detail.

Password Configuration

There are two ways to provide the MySQL password:

  • Use the --ask-for-password option to enter the password manually at startup
  • Use a toropassFile as as described in Creating a .toropass file

Backend Connection Pooling

ToroDB Stampede uses a connection pool for the backend connections. Its size and timeout (if no connection is available) can be adjusted. The default configuration is as follows:

backend:
  pool:
    connectionPoolTimeout: 10000
    connectionPoolSize: 30

The Options Reference explains these settings in detail.