{"id":"6b03743f88b1341886d3f5c1","title":"2026 11 22 Issue 424","path":"how-to/committee/release-notes/2026-11-22-issue-424","contentMarkdown":"# 22-Nov-2026 — stop Atlas connection floods, watch connections, move sites between clusters and clean up [#424](https://github.com/Ramblers-GB/ngx-ramblers/issues/424)\n\n## [build 1114](https://github.com/Ramblers-GB/ngx-ramblers/actions/runs/45079159536) — [commit 262162a](https://github.com/Ramblers-GB/ngx-ramblers/commit/262162a284b7e4c8efeacf179976afb5d7c92bad)\n\n_____\n\n## What's new\n\n- Opening or refreshing Platform [Admin → MongoDB Atlas](https://ngx-ramblers.org.uk/admin/platform-admin/atlas \"{{siteUrl}}\") no longer pushes a shared cluster towards its connection limit. Each site's database is counted with one short-lived connection, at most three sites per cluster at a time. Previously one visit could open several hundred connections to a cluster holding many sites, which set off Atlas's \"nearing the maximum connections threshold\" alert.\n- Each cluster shows its busiest minute of connections over the last 24 hours against its Atlas limit, with how many are open now, and lists Atlas alerts from the last 7 days with when they were raised and resolved.\n- A banner at the top names any cluster at 70% or more of its connection limit, or with an open Atlas alert.\n- A new scheduled task, MongoDB Atlas connections check, runs every 10 minutes on platform-admin environments and emails the admin alert recipients when a cluster reaches 70% of its connection limit or has an open Atlas alert, at most once every 6 hours per cluster.\n- The page has four tabs: Cluster inventory (opened by default), New cluster, Environments and Provisioning. The old Cluster inventory / New cluster switch and its box are gone. New cluster suggests the next ngx-shared-sites-NN name.\n- The cluster that is the default for new sites shows a filled star in the actions column, with \"Default for new sites\" as its tooltip, in place of the badge under its name. Cluster names stay on one line.\n- While the page loads, its tables are replaced by a loading indicator instead of an empty table saying there are no clusters.\n- Each site has a small arrows icon beside it that opens Environment Migration with that site chosen.\n- Databases left behind by moves show as small dashed pills under their cluster's sites, named after the site that left them, with the detail in a tooltip. Their collections count towards how full the cluster is. Deleting one removes the database, its unused logins and the old login, using a temporary login that expires within a day. A database already removed by hand is simply cleared from the list.\n- Database logins nothing uses show as keys: inside the pill of the left-behind database they open, or as one pill per site with a count. Their bin adds them to the deletion list. A login only counts as unused when it matches a known NGX site, no site uses it through its settings or stored connection, no move in progress needs it, and it is not the login the platform itself is connected with.\n\n- Every table that fills the window has a grip under it: drag to make it taller or shorter, double-click to fit the window again. The chosen height is remembered per table in the browser and is never taller than the window, so rows scroll inside the table with the header pinned at the top.\n- A table column can be pinned to the right edge, so it stays visible when the table scrolls sideways. The MongoDB Atlas star and bin use it, and the \"How full\" labels wrap so the table fits.\n\n- The screen asks one question, \"Where do you want to move to?\", and one button runs the whole move: login, check, copy and switch over. The button names what it moves: the database, the photos and files, or both.\n- Choosing a server always moves the database there, including for a site whose database has been moved before. With no server chosen, the button moves the photos and files only, and says so. A site can be moved again later.\n- If any stage fails, the move stops there and shows why. The site is never switched over after a copy that failed or did not finish, and a copy is given up after an hour. The button can only be pressed once while a move runs. An interrupted move is only picked up when it is a real unfinished move to the same server.\n- A retried move reuses the site's move login instead of creating another, and never the login the site is running on. When a move finishes, that site's unused logins are removed.\n- The heading says what kind of move it is: \"Move to Ramblers hosting\" for a first move, \"Move to another database server\" or \"Move photos and files to Ramblers storage\" for a site already moved. While a move runs, the notice shows \"Moving <site>\" with the current stage underneath.\n- A Back button returns to the page you came from, such as the MongoDB Atlas cluster inventory.\n\n### Integration worker\n\n- Moves now run on the integration worker, as backups already do, so a restart or deploy of the web server no longer interrupts a move part way through. MongoDB restores from S3 backups run there too. Without a configured worker, both run on the web server as before.\n\n- The Delete cluster confirmation appears at the top of the cluster inventory, above the table, and the page scrolls up to it.\n- Left-behind databases and unused logins can be deleted several at a time. Clicking a pill's bin adds it to a list at the top of the cluster inventory; clicking it again takes it off. One confirmation deletes them all in turn (typing delete once when databases are included), carries on past any that fail and reports each, then refreshes the cluster inventory once at the end.\n\n### Connection spikes\n\n- The scheduled Estate Health Check no longer wakes sites that sleep when idle. Every alert this week came a few minutes after a run, because it woke every sleeping site at once and each reconnected to its database together. It now reads the machine state from Fly and only visits sites that are already running, as the in-app health view already did.\n- A site holds no spare database connections while idle (`minPoolSize` 0).\n\n### Moves confirm the database\n\n- Each site reports a fingerprint of the database it is actually connected to in its deployment details: a short hash of cluster and database, never the host or login.\n- After switching a site over and restarting it, a move waits for the site to confirm the new database. If it is still on the old one, the move is undone and says why. The finished message says whether the site confirmed. The old database login is deleted only when the site confirms; if it is asleep or cannot be reached, the login is kept and the message says to delete it from the Atlas page after checking.\n- The MongoDB Atlas page checks each running site the same way, without waking sleeping ones, and marks any site whose running database differs from its settings with a warning icon.\n- Environment Migration offers new empty ngx-shared-sites clusters as destinations, which it previously hid because each M0 has its own Atlas project. Cluster pickers show the cluster name (ngx-shared-sites-03) instead of the Atlas host, and the Atlas and Environment Migration pages reuse the clusters the other page already loaded, so moving between them no longer waits for a fresh Atlas read. The Clusters and Environments button rows get space under their headings.\n\n### Tests\n\n- The server tests can no longer reach a real database, Fly or AWS: a setup file gives them a database address that cannot be parsed, so any spec that forgets to stub the database fails at once, clears the tokens, gives auth a test signing secret, and the `server/.env` fallback in `environments-config.ts` is skipped under test. Seventeen specs that had been passing only by connecting to staging, and five auth specs that needed the real signing secret, now pass on their own. A switch-over test that outlived its stubs had overwritten the staging platform settings and staging's Fly secrets with test data.","contentHtml":"<h1>22-Nov-2026 — stop Atlas connection floods, watch connections, move sites between clusters and clean up <a href=\"https://github.com/Ramblers-GB/ngx-ramblers/issues/424\">#424</a></h1>\n<h2><a href=\"https://github.com/Ramblers-GB/ngx-ramblers/actions/runs/45079159536\">build 1114</a> — <a href=\"https://github.com/Ramblers-GB/ngx-ramblers/commit/262162a284b7e4c8efeacf179976afb5d7c92bad\">commit 262162a</a></h2>\n<hr>\n<h2>What&#39;s new</h2>\n<ul>\n<li><p>Opening or refreshing Platform <a href=\"https://ngx-ramblers.org.uk/admin/platform-admin/atlas\" title=\"{{siteUrl}}\">Admin → MongoDB Atlas</a> no longer pushes a shared cluster towards its connection limit. Each site&#39;s database is counted with one short-lived connection, at most three sites per cluster at a time. Previously one visit could open several hundred connections to a cluster holding many sites, which set off Atlas&#39;s &quot;nearing the maximum connections threshold&quot; alert.</p>\n</li>\n<li><p>Each cluster shows its busiest minute of connections over the last 24 hours against its Atlas limit, with how many are open now, and lists Atlas alerts from the last 7 days with when they were raised and resolved.</p>\n</li>\n<li><p>A banner at the top names any cluster at 70% or more of its connection limit, or with an open Atlas alert.</p>\n</li>\n<li><p>A new scheduled task, MongoDB Atlas connections check, runs every 10 minutes on platform-admin environments and emails the admin alert recipients when a cluster reaches 70% of its connection limit or has an open Atlas alert, at most once every 6 hours per cluster.</p>\n</li>\n<li><p>The page has four tabs: Cluster inventory (opened by default), New cluster, Environments and Provisioning. The old Cluster inventory / New cluster switch and its box are gone. New cluster suggests the next ngx-shared-sites-NN name.</p>\n</li>\n<li><p>The cluster that is the default for new sites shows a filled star in the actions column, with &quot;Default for new sites&quot; as its tooltip, in place of the badge under its name. Cluster names stay on one line.</p>\n</li>\n<li><p>While the page loads, its tables are replaced by a loading indicator instead of an empty table saying there are no clusters.</p>\n</li>\n<li><p>Each site has a small arrows icon beside it that opens Environment Migration with that site chosen.</p>\n</li>\n<li><p>Databases left behind by moves show as small dashed pills under their cluster&#39;s sites, named after the site that left them, with the detail in a tooltip. Their collections count towards how full the cluster is. Deleting one removes the database, its unused logins and the old login, using a temporary login that expires within a day. A database already removed by hand is simply cleared from the list.</p>\n</li>\n<li><p>Database logins nothing uses show as keys: inside the pill of the left-behind database they open, or as one pill per site with a count. Their bin adds them to the deletion list. A login only counts as unused when it matches a known NGX site, no site uses it through its settings or stored connection, no move in progress needs it, and it is not the login the platform itself is connected with.</p>\n</li>\n<li><p>Every table that fills the window has a grip under it: drag to make it taller or shorter, double-click to fit the window again. The chosen height is remembered per table in the browser and is never taller than the window, so rows scroll inside the table with the header pinned at the top.</p>\n</li>\n<li><p>A table column can be pinned to the right edge, so it stays visible when the table scrolls sideways. The MongoDB Atlas star and bin use it, and the &quot;How full&quot; labels wrap so the table fits.</p>\n</li>\n<li><p>The screen asks one question, &quot;Where do you want to move to?&quot;, and one button runs the whole move: login, check, copy and switch over. The button names what it moves: the database, the photos and files, or both.</p>\n</li>\n<li><p>Choosing a server always moves the database there, including for a site whose database has been moved before. With no server chosen, the button moves the photos and files only, and says so. A site can be moved again later.</p>\n</li>\n<li><p>If any stage fails, the move stops there and shows why. The site is never switched over after a copy that failed or did not finish, and a copy is given up after an hour. The button can only be pressed once while a move runs. An interrupted move is only picked up when it is a real unfinished move to the same server.</p>\n</li>\n<li><p>A retried move reuses the site&#39;s move login instead of creating another, and never the login the site is running on. When a move finishes, that site&#39;s unused logins are removed.</p>\n</li>\n<li><p>The heading says what kind of move it is: &quot;Move to Ramblers hosting&quot; for a first move, &quot;Move to another database server&quot; or &quot;Move photos and files to Ramblers storage&quot; for a site already moved. While a move runs, the notice shows &quot;Moving <site>&quot; with the current stage underneath.</p>\n</li>\n<li><p>A Back button returns to the page you came from, such as the MongoDB Atlas cluster inventory.</p>\n</li>\n</ul>\n<h3>Integration worker</h3>\n<ul>\n<li><p>Moves now run on the integration worker, as backups already do, so a restart or deploy of the web server no longer interrupts a move part way through. MongoDB restores from S3 backups run there too. Without a configured worker, both run on the web server as before.</p>\n</li>\n<li><p>The Delete cluster confirmation appears at the top of the cluster inventory, above the table, and the page scrolls up to it.</p>\n</li>\n<li><p>Left-behind databases and unused logins can be deleted several at a time. Clicking a pill&#39;s bin adds it to a list at the top of the cluster inventory; clicking it again takes it off. One confirmation deletes them all in turn (typing delete once when databases are included), carries on past any that fail and reports each, then refreshes the cluster inventory once at the end.</p>\n</li>\n</ul>\n<h3>Connection spikes</h3>\n<ul>\n<li>The scheduled Estate Health Check no longer wakes sites that sleep when idle. Every alert this week came a few minutes after a run, because it woke every sleeping site at once and each reconnected to its database together. It now reads the machine state from Fly and only visits sites that are already running, as the in-app health view already did.</li>\n<li>A site holds no spare database connections while idle (<code>minPoolSize</code> 0).</li>\n</ul>\n<h3>Moves confirm the database</h3>\n<ul>\n<li>Each site reports a fingerprint of the database it is actually connected to in its deployment details: a short hash of cluster and database, never the host or login.</li>\n<li>After switching a site over and restarting it, a move waits for the site to confirm the new database. If it is still on the old one, the move is undone and says why. The finished message says whether the site confirmed. The old database login is deleted only when the site confirms; if it is asleep or cannot be reached, the login is kept and the message says to delete it from the Atlas page after checking.</li>\n<li>The MongoDB Atlas page checks each running site the same way, without waking sleeping ones, and marks any site whose running database differs from its settings with a warning icon.</li>\n<li>Environment Migration offers new empty ngx-shared-sites clusters as destinations, which it previously hid because each M0 has its own Atlas project. Cluster pickers show the cluster name (ngx-shared-sites-03) instead of the Atlas host, and the Atlas and Environment Migration pages reuse the clusters the other page already loaded, so moving between them no longer waits for a fresh Atlas read. The Clusters and Environments button rows get space under their headings.</li>\n</ul>\n<h3>Tests</h3>\n<ul>\n<li>The server tests can no longer reach a real database, Fly or AWS: a setup file gives them a database address that cannot be parsed, so any spec that forgets to stub the database fails at once, clears the tokens, gives auth a test signing secret, and the <code>server/.env</code> fallback in <code>environments-config.ts</code> is skipped under test. Seventeen specs that had been passing only by connecting to staging, and five auth specs that needed the real signing secret, now pass on their own. A switch-over test that outlived its stubs had overwritten the staging platform settings and staging&#39;s Fly secrets with test data.</li>\n</ul>\n"}