In T437080#12294568, @JAllemandou wrote:Even if we decide to have an Iceberg only metastore, I think the new data platform should also be capable of reading datasets as folders, allowing us to ingest files in folders in the same was we do now, without having to handle the Iceberg metadata and schema management aspect.
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed Search
Yesterday
Yesterday
JMonton-WMF changed the status of T420217: mediawiki-event-enrichment page_html_change job should use X-MediaWiki-Render-Id header instead of etag, a subtask of T418792: Expose MediaWiki Parser render_id as a response header in relevant MW REST API endpoints, from Open to In Progress.
JMonton-WMF changed the status of T420217: mediawiki-event-enrichment page_html_change job should use X-MediaWiki-Render-Id header instead of etag from Open to In Progress.
Mon, Sep 7
Mon, Sep 7
JMonton-WMF added a comment to T437080: [Tech evaluation] How we ingest the Kafka streams into the S3 data lake.
In case someone could review it, this is the patch that will write into MainStash and Memcached:
Thu, Sep 3
Thu, Sep 3
Ok, I'll work on that tomorrow, thanks!
For the record, I've done a test where our Flink application produces updates for Mediawiki, based on page_id. It is one update per page_id trending status change. Meaning that if a page changes from trending to not trending, or the opposite, an event is emitted.
The result is that we never reach 1k events on the 5 minutes window:
Wed, Sep 2
Wed, Sep 2
Yes, the regular output doesn't change, we create a new output eqiad.mediawiki.job.pageviewTrendingRelativeUpdate with the new format per wiki_id.
We have changed the design of the storage, as described in https://phabricator.wikimedia.org/T432352#12280536 and following recommendations, we'll produce an event per wiki_id with an array of trending page_ids on it. The event will be produced only every 5 minutes to avoid doing too many requests. Every event overrides the previous event, if a page_id is not in the list, it means it is not trending.
We had a meeting yesterday to talk about this topic, following @Ladsgroup recommendations, we are going to change the behavior to write per wiki_id rather than per page_id. Writing per page_id could cause too many writes, and it doesn't solve the future use case about getting the whole list of trending pages.
Writing by wiki_id, we can store an array with all trending page_ids inside. To avoid a lot of noise, we'll emit only one event per wiki_id every 5 minutes. By doing so, we can store the objects in Object Cache (MainStash) and we can also save them in Memcache. Every new object invalidates the old one, the list of trending pages will always be the full list, if a page isn't inside, it means the page is not trending.
Tue, Sep 1
Tue, Sep 1
Mon, Aug 31
Mon, Aug 31
JMonton-WMF updated the task description for T427901: Review "page_view" schema, definition and operations..
The results from the test are these:
Tue, Aug 25
Tue, Aug 25
That's correct, we don't have yet exact numbers, but on some tests there were around 7k ~ 15k trending pages over all wikis.
JMonton-WMF updated subscribers of T432352: [Data Persistence Design Review] Relative trending pages.
We are preparing this data for the Attribution API and their team, which I believe will be consumed by Enterprise. We are only the producers, and they will be the readers.
Fri, Aug 21
Fri, Aug 21
Abut Read rate:
@Ottomata added some numbers here: https://phabricator.wikimedia.org/T432352#12231296
- Using Object Cache
Thu, Aug 20
Thu, Aug 20
JMonton-WMF renamed T431555: Relative Trending - Milestone 4 - Storage from Relative Trending - Milestone 4 - Cassandra to Relative Trending - Milestone 4 - Storage.
Wed, Aug 19
Wed, Aug 19
JMonton-WMF updated the task description for T435291: Relative Trending - Fix records always trending..
JMonton-WMF moved T429456: Flink - Test `zstd` compression from In progress to In Review on the Data-Engineering (Q1 FS26/27 July 1st - September 30th) board.
Tue, Aug 18
Tue, Aug 18
A staging application of mw-page-html-feature-counts-change-enrich-next has been deployed in Jumbo. After a week we'll see the differences between this topic and the production one.
JMonton-WMF moved T431536: Relative Trending - Metrics & Monitoring from In Review to Done on the Data-Engineering (Q1 FS26/27 July 1st - September 30th) board.
JMonton-WMF closed T428726: Relative Trending - MIlestone 2 - Schedule load into Kafka, a subtask of T428725: Relative Trending - Milestone 2 - Load baseline into Kafka, as Resolved.
JMonton-WMF closed T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes., a subtask of T425418: Relative Trending, as Resolved.
JMonton-WMF closed T430134: Relative Trending - Milestone 3 - Page Trending Flink app, a subtask of T425418: Relative Trending, as Resolved.
JMonton-WMF closed T427925: Add "wiki_id" to Page View Stream, a subtask of T425624: Relative Trending - Flink app for page_view, as Resolved.
JMonton-WMF closed T430136: Relative Trending - Milestone 3 - K8s resources, a subtask of T430134: Relative Trending - Milestone 3 - Page Trending Flink app, as Resolved.
JMonton-WMF closed T430919: Enable `upsert-kafka` tables in `eventutilities-flink, a subtask of T430134: Relative Trending - Milestone 3 - Page Trending Flink app, as Resolved.
JMonton-WMF closed T425624: Relative Trending - Flink app for page_view, a subtask of T425418: Relative Trending, as Resolved.
JMonton-WMF closed T430675: Rename streams, schemas and applications, a subtask of T425418: Relative Trending, as Resolved.
Mon, Aug 17
Mon, Aug 17
JMonton-WMF moved T429456: Flink - Test `zstd` compression from Next Up to In progress on the Data-Engineering (Q1 FS26/27 July 1st - September 30th) board.
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
Looking at how to enable this, the main blocker for it is Gobblin. Gobblin uses kafka-clients 1.1.1 but zstd was introduced in Kafka 2.1.0.
JMonton-WMF edited projects for T429456: Flink - Test `zstd` compression, added: Data-Engineering (Q1 FS26/27 July 1st - September 30th); removed Data-Engineering.
Fri, Aug 14
Fri, Aug 14
JMonton-WMF updated subscribers of T432352: [Data Persistence Design Review] Relative trending pages.
In T432352#12214749, @Eevans wrote:Let's try to start from First Principles: What we have here is a single dataset. Our dataset (ostensibly) contains an entry for every page, and records whether or not the page is trending, with a timestamp to indicate when that trending status was last updated. We require that this dataset be indexed according to it's trending status, so that we can query it for a list of pages where is_trending=true.
I think that describes the problem, someone correct me though if I've gotten something wrong.
This describes the situation correctly, and the problem of the second endpoint (second table). The first endpoint doesn't need to query pages where is_trending=true, it only needs to query page_id=xxxxx to know if it's trending or not.
Thu, Aug 13
Thu, Aug 13
If the first table is released, we can enable one of the 2 endpoints (GET /public/analytics/pageview_trending_relative_per_page/:wiki_id/:page_id) for the Attribution API, and if I recall correctly, this was the most important of the two, so my assumption is that it will at least allow one of the use cases.
We can work on improving the second table if needed meanwhile.
I believe the only missing piece is to merge this patch that removes old stuff:
Tue, Aug 11
Tue, Aug 11
Tables requested in this ticket: https://phabricator.wikimedia.org/T432352
Aug 7 2026
Aug 7 2026
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
Aug 6 2026
Aug 6 2026
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
Aug 5 2026
Aug 5 2026
JMonton-WMF updated the task description for T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
Aug 4 2026
Aug 4 2026
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
JMonton-WMF updated the task description for T433962: Create `webrequest-pageview` K8s application..
Aug 3 2026
Aug 3 2026
JMonton-WMF added a comment to T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
Compaction cleanup.policy=compact,delete was added to pageview.trending.relative.v1 but it is causing other issues. There is an alert GobblinKafkaRecordsExtractedNotEqualRecordsExpected that gets confused as the number of offsets doesn't match the number of records. We also think that enabling compaction removes some valuable data for the Datalake, so we can to disable compaction now that the topic is controlled.
Hi @Eevans, thanks for looking into it!
Jul 17 2026
Jul 17 2026
Jul 16 2026
Jul 16 2026
JMonton-WMF renamed T432352: [Data Persistence Design Review] Relative trending pages from Proposal - Cassandra table for "Relative Trending" to Proposal - Cassandra tables for "Relative Trending".
Jul 15 2026
Jul 15 2026
JMonton-WMF added a comment to T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
I changed a couple of configs. https://gitlab.wikimedia.org/repos/data-engineering/mediawiki-event-enrichment/-/merge_requests/157
JMonton-WMF updated the task description for T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
JMonton-WMF updated the task description for T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
JMonton-WMF added a comment to T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
I believe zstd compression cannot be enabled if we don't upgrade the Gobblin Kafka client: https://gitlab.wikimedia.org/repos/data-engineering/gobblin-wmf/-/blob/main/pom.xml#L472-476
JMonton-WMF updated the task description for T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
JMonton-WMF updated the task description for T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
JMonton-WMF added a comment to T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
We could reduce the size of events on pageview.v1 by removing many fields. I don't think many of the fields are used for Trending right now, but pageview.v1 looks like a nice reusable stream, it could be used for other use cases, specially as it's using the same schema as the batch process.
Maybe @Ottomata you have some ideas about this, I'm not sure how we can measure the importance of the topic versus how much storage it uses.
JMonton-WMF added a comment to T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
Thanks! I'll start the pageview.trending.relative.v1 application now and monitorize it during the day. Let's see if it grows that fast or not. Meanwhile I'm looking at some of the other options to reduce the size.
JMonton-WMF added a comment to T432204: Review `pageview` and `pageview.trending.relative` Kafka topic sizes..
I think adding cleanup.policy = compact,delete to pageview.trending.relative.v1 is a quick win. I think it will reduce the data stored drastically. Do you think we could do it @brouberol?
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits