From 96e6bb23472735d4d1dec299d41e19a38f63adbd Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 18 Dec 2025 16:12:39 -0500 Subject: feat: add support for read replicas to postgres (#3029) Support for routing read queries to read replicas for Postgres We have very high database usage these days, and now run shell history sync off of [Planetscale](https://planetscale.com/) This setup gives us 2x read replicas, meaning we can reduce load on the primary I doubt this is required for anyone else's setup - lmk if so. --- crates/atuin-server/server.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/atuin-server/server.toml') diff --git a/crates/atuin-server/server.toml b/crates/atuin-server/server.toml index 1eff5b72..6212de00 100644 --- a/crates/atuin-server/server.toml +++ b/crates/atuin-server/server.toml @@ -11,6 +11,10 @@ # db_uri="postgres://username:password@localhost/atuin" # db_uri="sqlite:///config/atuin-server.db" +## Optional: URI for read replica database +## If set, read-only queries will be routed to this database +# read_db_uri="postgres://username:password@localhost-replica/atuin" + ## Maximum size for one history entry # max_history_length = 8192 -- cgit v1.3.1