Migrate the definitions use-case from legacy storage (Cassandra 2.x), to the new strategy and cluster (Cassandra 3.x).
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • mobrovac | T179416 Program 7 Outcome 2 Objective 1, Q2: Develop a scalable and cost-effective storage solution for backing the REST API | |||
Resolved | • mobrovac | T179420 Migrate definitions storage from the legacy to new strategy |
Event Timeline
The following script outputs a YAML file containing CQL literals for the queries necessary to create these tables.
The output looks like the following.
Which we can apply using mkschema.
More eyes before applying these changes would be much appreciated!
Mentioned in SAL (#wikimedia-operations) [2017-11-07T11:42:46Z] <mobrovac> restbase truncating cassandra 2 non-WP tables for T179420
Mentioned in SAL (#wikimedia-operations) [2017-11-07T14:38:43Z] <mobrovac> restbase creating wiktionary definition schemas for T179420
Thank you @Eevans for the schemas. I created them, with the exception that value needs to be of type text because we are storing the stringified JSON object returned by MCS.
I guess we can go with https://github.com/wikimedia/restbase/pull/896 right away without creating a proxy. The endpoint is quite low-volume, so it's ok if we just recreate everything.
Mentioned in SAL (#wikimedia-operations) [2017-11-07T15:02:39Z] <mobrovac@tin> Started deploy [restbase/deploy@c5dd1e2]: Switch wiktionary definitions to use the next-gen storage - T179420
Mentioned in SAL (#wikimedia-operations) [2017-11-07T15:10:31Z] <mobrovac@tin> Finished deploy [restbase/deploy@c5dd1e2]: Switch wiktionary definitions to use the next-gen storage - T179420 (duration: 07m 52s)
Mentioned in SAL (#wikimedia-operations) [2017-11-07T15:22:54Z] <mobrovac@tin> Started deploy [restbase/deploy@eab2948]: revert definition switch, wrong schema - T179420
Mentioned in SAL (#wikimedia-operations) [2017-11-07T15:29:40Z] <mobrovac@tin> Finished deploy [restbase/deploy@eab2948]: revert definition switch, wrong schema - T179420 (duration: 06m 46s)
Mentioned in SAL (#wikimedia-operations) [2017-11-07T15:37:16Z] <urandom> T179420: recreating wiktionary definition schemas
Mentioned in SAL (#wikimedia-operations) [2017-11-08T16:02:30Z] <mobrovac@tin> Started deploy [restbase/deploy@c5dd1e2]: Switch wiktionary definitions to use the next-gen storage, take 2 - T179420
Mentioned in SAL (#wikimedia-operations) [2017-11-08T16:02:43Z] <mobrovac@tin> Finished deploy [restbase/deploy@c5dd1e2]: Switch wiktionary definitions to use the next-gen storage, take 2 - T179420 (duration: 00m 13s)
Mentioned in SAL (#wikimedia-operations) [2017-11-08T16:04:13Z] <mobrovac@tin> Started deploy [restbase/deploy@c5dd1e2]: Switch wiktionary definitions to use the next-gen storage, take 2b - T179420
Mentioned in SAL (#wikimedia-operations) [2017-11-08T16:11:34Z] <mobrovac@tin> Finished deploy [restbase/deploy@c5dd1e2]: Switch wiktionary definitions to use the next-gen storage, take 2b - T179420 (duration: 07m 22s)