aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-server
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2025-12-18 16:12:39 -0500
committerGitHub <noreply@github.com>2025-12-18 16:12:39 -0500
commit96e6bb23472735d4d1dec299d41e19a38f63adbd (patch)
tree4a18961d4f7ef39f2d4c1a88d0aad9e7db582719 /crates/atuin-server
parentfix: Move thorough search through search.filters w/ workspaces (#2703) (diff)
downloadatuin-96e6bb23472735d4d1dec299d41e19a38f63adbd.zip
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.
Diffstat (limited to 'crates/atuin-server')
-rw-r--r--crates/atuin-server/server.toml4
1 files changed, 4 insertions, 0 deletions
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