Connections can move
A broken MQTT session may need to reconnect. Routing new connections to a healthy peer restores reachability, but does not by itself prove a subscriber received every notice during the interruption.
Technical notes / Architecture
A weather service can announce an observation successfully even when nobody can download it. To understand the availability of a WIS2 node, follow one report through discovery, notification, and delivery.
Consider a station’s 06:00 UTC observation. The dataset record describes the station network and what it measures. The file contains the actual report. The notification tells subscribers that this particular report is available. The three have different lifetimes: a dataset can keep the same record as new reports arrive each hour.
| Responsibility | Inside stock WIS2Box | What crosses the node boundary |
|---|---|---|
| Describe the dataset | The publisher defines the dataset in the web app. WIS2Box publishes a WCMP2 discovery record; its local catalogue uses pygeoapi and Elasticsearch for queries. | A metadata notification lets a Global Discovery Catalogue retrieve the record. Finding it there confirms discoverability, not delivery of the latest report. |
| Prepare the report | A file arriving in MinIO triggers the management service to apply the dataset’s mapping, for example converting a station CSV to BUFR. | Nothing needs to cross yet. An incoming file or an internal storage event is not a WIS2 publication. |
| Announce availability | WIS2Box publishes a WIS2 Notification Message on the dataset’s MQTT topic through Mosquitto, the default broker. | A Global Broker subscribes to the node and relays the notice. Consumers can select relevant topics without polling the publisher for files. |
| Deliver the bytes | The web proxy serves the published object from MinIO under /data/. This is a different path from catalogue queries under /oapi/. |
For core data, a Global Cache can fetch the file and announce its own copy. A successful MQTT connection says nothing about whether that HTTP download succeeds. |
See the stock component diagram and the node and Global Services diagram.
The MQTT topic selects a stream; it does not identify a file. A node announces its
publications under origin/a/wis2/. Global Caches announce cached copies
under cache/a/wis2/. Within the message, these fields answer different questions:
id identifies the message.
properties.data_id identifies the data item. A correction can retain the same data ID
but arrive in a new message with a later publication time and an update link.
Discarding every repeat of a data ID would lose that correction.properties.pubtime is the time of
publication. For a station report, properties.datetime, when supplied, gives the
observation’s reference time. A 06:00 observation announced at 06:04 has a four-minute
publication delay; that is not four minutes of MQTT transit time.canonical. If properties.integrity is supplied, use its
checksum to verify the bytes. The optional properties.metadata_id identifies
the discovery record for the dataset, not the download location.In the stock single-host deployment, losing the host takes the broker, download service, and local catalogue offline together. Our high-availability design separates messaging, object storage, and search across hosts behind stable public endpoints. A subscriber still uses MQTT and follows the advertised URL; it does not need to know which peer is serving it.
A broken MQTT session may need to reconnect. Routing new connections to a healthy peer restores reachability, but does not by itself prove a subscriber received every notice during the interruption.
A replacement web service needs access to objects named in earlier notifications. Processing peers also need consistent dataset mappings, or the same input can produce different results depending on which peer handles it.
Another copy can keep reads available after a host failure. It can also copy an accidental deletion. Test recovery of an object and its associated metadata separately from the ability to switch traffic to another peer.
Keep the access boundaries unchanged on replacement peers: permission to download a report or subscribe to its topic must not grant permission to upload files, change mappings, or publish notifications as the centre.
Use a known report, its data ID, and its expected publication time. Check from the consumer’s side as well as the publisher’s; an internal health check cannot exercise the public route.
Technical limitations analysis | HA technical blueprint
Official references: WMO Guide to WIS2, WIS2 Notification Message encoding, and WIS2Box public services.