Security Disclosure Recommendation: Rotate Redis Database Credentials
Railway users whose Redis password or REDIS_URL may have been exposed in the October 21, 2026 security disclosure should use Regenerate in the Database View.
Railway users whose Redis password or REDIS_URL may have been exposed in the October 21, 2026 security disclosure should use Regenerate in the Database View.
Railway MongoDB users whose password or MONGO_URL may have been exposed should rotate it with Regenerate in the Database View, which changes the password inside MongoDB and updates the service variables together.
A schema migration that added an indexed column to a ~1 billion-row Postgres table without `CREATE INDEX CONCURRENTLY` took an exclusive table lock, queuing nearly all backend API queries and taking down Railway's dashboard, CLI, Public API and GitHub webhook deploys for about 40 minutes.
Connection pooling keeps a set of reusable database connections open, so requests check one out and return it instead of opening and closing a connection per query.
Railway replaced its bespoke per-database Plugins (Postgres, Redis, Mongo, MySQL) with databases deployed as ordinary services, built from general-purpose primitives: ZFS-backed NVMe volumes, Docker image deploys, port-based TCP proxies per region, private networking, cross-service variable references, and a `${{ secret() }}` template function for generated passwords.
Postgres databases on Railway can be backed up with pg_dump using tar format (-F t) and the PGUSER, PGHOST, PGPORT, PGDATABASE and PGPASSWORD values from the project's variables, then restored into another Railway Postgres instance with pg_restore.
A Railway-hosted Redis instance can be backed up by running a local redis-server, setting masterauth to the Railway Redis password, and issuing SLAVEOF <host> <port> so the local instance replicates the remote one.