WIS2 Atlas

Technical notes / Architecture

Technical Architecture Overview

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.

From the publisher to the consumer

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.

The catalogue describes the dataset. At 06:04 UTC the node announces the 06:00 observation. A Global Broker relays the link over MQTT (dashed arrows); a Global Cache follows it to fetch the core data file from the node over HTTPS (solid arrow).
Journey of the 06:00 UTC observation Receiving the notice tells you the report was announced. Following the link tells you whether it can be downloaded.
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.

Reading a WIS2 notification

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:

What changes during failover?

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.

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.

Published links must still work

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.

Replication is not a backup

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.

How to tell whether delivery is healthy

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.

  1. Find the dataset. Look up its identifier in a Global Discovery Catalogue. If it appears locally but not globally, check metadata publication and propagation before investigating the observation file.
  2. Match the notification. Confirm that a subscriber received the expected topic and data ID. If the file exists but no notice arrived, distinguish a missing publication at the node from a relay or subscription problem.
  3. Fetch the advertised file. Use the URL in that notice, not the website homepage. Confirm the response contains the expected report and verify the checksum if available. A notice followed by a missing file points to the object or download path, not MQTT connectivity.
  4. Check both sides of recovery. After a failover, retrieve a still-valid pre-failover link and follow a newly published report end to end. The first tests continuity of existing data; the second tests whether publishing has resumed.

Further reading

Technical limitations analysis | HA technical blueprint

Official references: WMO Guide to WIS2, WIS2 Notification Message encoding, and WIS2Box public services.