You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/sections/part2/global-services.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,6 @@ In WIS2, Global Caches provide access to WMO core data for data consumers. This
131
131
* For messages received on the topic ``++origin/a/+/data/core/#++`` or ``++cache/a/+/data/core/#++``, a Global Cache shall:
132
132
** If the message contains the property ``"properties.cache": false``,
133
133
*** Republish the message at topic ``cache/a/wis2/...``, matching ``+/a/wis2/...`` where the original message has been received, after having updated the id of the message.
134
-
** Add the property ``properties.global-cache`` with the value of the centre identifier of the Global Cache to identify the origin of the data source downloaded by downstream applications.
135
134
** Else
136
135
*** Maintain a list of ``data_id`` values that have already been downloaded;
137
136
*** Verify whether the message points to new or updated data by comparing the pubtime value of the notification message with the list of ``data_id`` values;
@@ -140,6 +139,7 @@ In WIS2, Global Caches provide access to WMO core data for data consumers. This
140
139
**** If the message contains an integrity value for the data, verify the integrity of the data;
141
140
**** If data is downloaded successfully, move the data to the HTTP endpoint of the Global Cache;
142
141
**** Wait until the data becomes available at the endpoint;
142
+
**** Add the property ``properties.global-cache`` with the value of the centre identifier of the Global Cache to identify the origin of the data source downloaded by downstream applications;
143
143
**** Modify the message identifier and the canonical link's ``href`` of the received message and leave all other fields untouched;
144
144
**** Republish the modified message to topic ``cache/a/wis2/...`` ,matching the ``+/a/wis2/...`` where the original message has been received;
145
145
**** The metric ``wmo_wis2_gc_downloaded_total`` will be increased by 1; The metric ``wmo_wis2_gc_dataserver_last_download_timestamp_seconds`` will be updated with the timestamp (in seconds) of the last successful download from the WIS2 Node or Global Cache;
0 commit comments