FIX: cache_critical_dns was never caching pg replica (#7461)

FIX: cache_critical_dns was never caching pg replica (#7461)

  • it’s DISCOURSE_DB_REPLICA_HOST not DISCOURSE_DB_BACKUP_HOST
diff --git a/script/cache_critical_dns b/script/cache_critical_dns
index 613a3c7..ce032c4 100755
--- a/script/cache_critical_dns
+++ b/script/cache_critical_dns
@@ -11,7 +11,7 @@ HOSTS_PATH = "/etc/hosts"
 
 CRITICAL_HOST_ENV_VARS = %w{
   DISCOURSE_DB_HOST
-  DISCOURSE_DB_BACKUP_HOST
+  DISCOURSE_DB_REPLICA_HOST
   DISCOURSE_REDIS_HOST
   DISCOURSE_REDIS_SLAVE_HOST
 }

GitHub sha: 7b1783ba

2 Likes

Ooooops, thanks for catching this.

Replica/slave/backup … so many names. Too many names.

2 Likes