Site Updates and Feature Requests
Welcome › Forums › Huddersfield Exposed › Site Updates and Feature Requests
- This topic has 14 replies, 1 voice, and was last updated 3 weeks ago by
Dave Pattern.
-
AuthorPosts
-
25 April 2020 at 11:32 am #156
This topic is for details of site updates such as new features, and also nerdy stuff such as software or server updates.
For more general news of new content added to the site, see the “What’s New?” section on the Huddersfield Exposed home page and also the news blog.
If there’s a new feature that you’d like to see added to the site or perhaps you don’t think that something is working properly, feel free to leave a reply!
Site Specs
main web server:
- Ubuntu 20.04 LTS running on Linode 2GB (London) + backup service
- Linode Object Storage (~100GB)
- Nginx 1.18.x
- Apache 2.4.x with ModSecurity & mod_perl
- PHP 7.4.x (FPM)
- MediaWiki 1.35.x (LTS) with CirrusSearch
- WordPress
- Omeka
database server:
- 3 x Debian 11 running on Linode 2GB (London)
- Galera Cluster (3 nodes) running MariaDB 10.6.x
search index server:
- Debian 11 running on Linode 4GB (London)
- ElasticSearch
- Redis
major config changes:
- 02/05/2020: moved ElasticSearch from the web server onto the database server (not ideal, as ES is a memory hog but needed to free up memory on the web server to cope with the huge increase in traffic since lockdown)
- 29/05/2020: changed the MediaWiki job queue to a continuous service
- 30/07/2020: moved ElasticSearch back onto the main web server as traffic levels have dropped slightly from the peak around late May 2020
- 15/08/2020: migrated database to new Ubuntu 20.04 server running MariaDB
- 18/08/2020: upgraded database server hardware and moved ElasticSearch onto it
- 08/12/2020: site upgraded to MediaWiki 1.35 (LTS)
- 30/12/2020: hardware upgrade to MySQL/ElasticSearch server (2GB to 8GB)
- 31/01/2021: site upgraded to MediaWiki 1.35.1 (LTS)
- 28/05/2021: site upgraded to MediaWiki 1.35.2 (LTS)
- 28/07/2021: site patched to MediaWiki 1.35.3 (LTS)
- 07/10/2021: ElasticSearch moved to separate 4GB server / database server reduced to 4GB
- 13/10/2021: site patched to MediaWiki 1.35.4 (LTS)
- 21/11/2021: memcached replaced by Redis
- 11/12/2021: ElasticSearch server patched against CVE-2021-44228
- 21/12/2021: migrated databases across to a 3-node Galera Cluster
- 30/12/2021: site patched to MediaWiki 1.35.5 (LTS)
- 30/12/2021: remove Old Maps UK and Pastscape from the “Details & Links” tab for locations as both sites are now sadly defunct
- 30/12/2021: fixed the Bench Mark Database link in the “Details & Links” tab to work with their new site
- 28/04/2022: site patched to MediaWiki 1.35.6 (LTS)
- 09/08/2022: site patched to MediaWiki 1.35.7 (LTS)
- 29/11/2022: site patched to MediaWiki 1.35.8 (LTS)
- 10/01/2023: site patched to MediaWiki 1.35.9 (LTS)
- 14/04/2023:site patched to MediaWiki 1.35.10 (LTS)
future plans:
- rewrite MW skin to resolve current JS loading issues
- migrate to MediaWiki 1.39 (LTS)
- DONE!
integrate Omeka content directly into the wiki (so that the content appears in searches, etc) and just use Omeka as a back-end management tool
Hosting Costs
- 1 x Linode 2GB (web server) – $144 per year
- 1 x Linode 4GB (search index servers) – $288 per year
- 3 x Linode 2GB (3 node MariaDB Galera cluster) – $432 per year
- Linode Backups Service – $150 per year
- Linode Object Storage – $60 per year
- domain name -$25 per year
- email hosting – $15 per year
- TOTAL:
- USD: $1,114 + VAT
- UK (inc. VAT): approx £1,066 per year
25 April 2020 at 11:53 am #157Synonym searching is now enabled on Huddersfield Exposed. This is primarily being used to provide search across common variant spellings, such as:
- Hellawell / Helliwell / Hellwell
- Hinchliffe / Hinchcliff / Hinchcliffe / Hinchliff
- Lingards / Lingarths
- Linthwaite / Linfit
- Slaithwaite / Slawit
The initial emphasis is on adding synonyms to improve searching across the Holmfirth Flood Project content where spellings of names and places varies from one newspaper report to the next.
For example, a search for linfit hall will also match linthwaite hall…
Using quotation marks overrides the synonym searching, allowing you to focus on a specific spelling…
The current list of synonyms can be viewed here: https://huddersfield.exposed/wiki/HuddersfieldExposed:Synonyms
If there are any synonyms you’d like adding, please let me know.
15 August 2020 at 5:02 pm #313The site’s database has been migrated to a new server running MariaDB.
27 November 2020 at 4:17 pm #378The site was an early adopter of Linode’s Object Storage product and much of the multimedia content is stored “in the cloud”. At the time, the only option was to use the US-based storage.
As Linode now offer a European option and are able to support custom SSL certificates, I’ve begun migrating the bulk of the content across and it will be served from the domain storage.huddersfield.exposed. This should give slightly faster loading times for everyone in the UK.
7 December 2020 at 9:17 am #381The 1.34 branch of MediaWiki is now officially “end of life“.
Although there’s no immediate rush to move to 1.35 (LTS), I’ve decided it’d be better to carry out the upgrade before we begin loading the content of the newspaper OCR project as that will add over 43,000 new pages to the site.
I’ve carried out a successful test upgrade overnight, so the plan is to take the site offline for a short period tomorrow morning (Tuesday 8 December) to do the upgrade on the live server. If all goes well, it should only take about 15 minutes.
EDIT: the upgrade to 1.35 is now completed
30 January 2021 at 3:33 pm #407The server hardware upgrades necessitated by the newspaper OCR project now means that the database server is the fastest server and has spare CPU capacity. Therefore, I’ve begun migrating the mod_perl API code from the main web server onto the database server. The API code was written to be fast but is now even quicker 🙂 In turn, this frees up capacity on the main web server.
28 May 2021 at 3:48 pm #7243The site is now upgraded to MediaWiki 1.35.2
The bad news is that a test upgrade to 1.36.0 failed and it looks like the skin used by the site will need to be rewritten from scratch due to it being written a couple of years ago using the now outdated MW Skinning Guide. Ho hum!
Since the 1.35 branch is a long term support (LTS) release, my current intention is to develop a new skin for the site and then migrate to the next stable LTS release at some point prior to September 2023.
21 December 2021 at 9:06 pm #7533To try and make the website more resilient, I’ve completed a migration of the databases from a single Linode 4GB server to a 3-node MariaDB Galera Cluster (where each node is a Linode 2GB server).
8 February 2022 at 4:26 pm #7789I’ve started work on this “future plan” item:
- integrate Omeka content directly into the wiki (so that the content appears in searches, etc) and just use Omeka as a back-end management tool
When Huddersfield Exposed first launched, Flickr offered a reasonable amount of free storage for multimedia so it made sense to use that as the tool for storing and managing the content. Unfortunately, all that changed in 2018. We then moved to using a local install of Omeka Classic to manage the multimedia and uncoupled the Flickr integration. The downside was that the main site (which uses MediaWiki) became separate to the multimedia archive (Omeka).
Moving forward, I’m now using the Omeka API to help embed multimedia into the main site, e.g.:
As of today, running a search within the site, e.g. for Moldgreen, will include multimedia content that is stored in the main MediaWiki page index:
…previously I’d been running the search keywords against the Omeka API which tended to bring back irrelevant results when using multiple keywords.
The main thing that’s still to do is to provide a new page on the wiki that will allow you to run searches against only the multimedia content.
27 March 2022 at 2:20 pm #7933I spotted this morning that Microsoft Internet Explorer 11 was failing to properly render some of the pages in the site, so I’ve tweaked bits of the JavaScript to try and restore functionality. Versions of IE lower than 11 are not compatible with this site. IE users currently account for less than 0.1% of visitors and Microsoft will soon be ending support for IE 11. If you’re still using Internet Explorer, you should seriously consider using a more modern web browser, such as Chrome, Firefox or Opera, most of which should work just fine on older versions of Microsoft Windows. Otherwise, you should be able to use the official IE replacement — Microsoft Edge — on recent versions of Windows.
21 April 2022 at 10:16 am #8022The site’s map feature (which displays icons of geoindexed locations) has just had a major update which should improve performance…
The icons are delivered via an API which takes the boundaries of the displayed map and, combined with the current zoom level, decides which markers should be displayed. Previously, the API response included details such as geocoordinates, location name, location ID, icon details, etc. and, if a large number of markers needed to be displayed, the response size could be large — perhaps up to around 15kB for a particularly busy map. Each time the user adjusts the map (scrolling, zooming, etc), another API request was needed, generating network traffic and CPU load on the server.
The new update moves to using the web browser’s localStorage (if available) to cache a full copy of all geoindexed locations using a JSON file on the server. The browser will periodically check to see if the localStorage cache is up-to-date and, if not, pull a fresh copy of the JSON file from the server. The API response is now much smaller (around 1kB) and contains only the location IDs of the markers to display — the rest of the information (geocoordinates, name, icon, etc) is retrieved from the localStorage.
28 April 2022 at 10:08 am #8089Work will begin shortly on migrating the site to a new web server and upgrading to MediaWiki 1.39. A lot of work will be required, so there’s a separate topic:
14 April 2023 at 7:49 am #9036I’ve updated the hosting costs to reflect the recent price increase announced by Linode. Sadly, this adds an extra £200 to the annual hosting costs 🙁
14 May 2023 at 6:21 pm #9115Not overly clearly “why”, but the recent routine update to the MariaDB Galera cluster stopped page editing from working due to a single “GET_LOCK” in the MediaWiki code (oddly, this wasn’t an issue with the previous MariaDB releases). As a quick fix, /includes/libs/rdbms/database/DatabaseMysqlBase.php has been tweaked with the suggestions on this page:
lockIsFree (to return true), lock (to return false) and unlock (to return false)
(n.b. the use of GET_LOCK appears to have been removed from MediaWiki 1.39, so this should be fully resolved by the upcoming upgrade)
18 May 2023 at 10:24 am #9121The MariaDB Galera Cluster has been successfully upgraded from 10.6.13 to 10.11.3
-
AuthorPosts
- You must be logged in to reply to this topic.