Page MenuHomePhabricator

Prepare MediaWiki and API for shared Elasticsearch indices
Open, Needs TriagePublic

Description

Patches:

Example which uses all patches from above:

Steps:

  1. Create a new wiki if you don't have any existing ones
  2. Run the following only once (not per wiki) to initialize the shared indices:
export WBS_DOMAIN={ANY_EXISTING_WIKI_DOMAIN}
export CLUSTER_NAME=default
export MW_CIRRUSSEARCH_INDEX_BASE_NAME=wiki_1
wbaas-deploy/k8s/jobs/elasticSearchInitJob.sh
  1. Run the following for each existing wiki (and any new wikis created prior to step 2) to create their aliases:
kubectl exec -it deployments/api-scheduler -- bash -c "php artisan job:dispatchNow ElasticSearchAliasInit {WIKI_ID}"

Event Timeline

Added some review but I'm sorry to say I had some questions which I guess need answering and looking at by someone (@Fring ?) next week while I'm out. I also made a short PR for some diagrams that I think describe the current simplified way we create ES indices. I wondered if adding to these for the new architecture (including creating both the shared indices and the aliases) would help communicate what this will look like: https://github.com/wbstack/api/pull/779

There is review on all of the mentionend PRs, let me know if there are questions.

Andrew-WMDE updated the task description. (Show Details)
Andrew-WMDE updated the task description. (Show Details)
Andrew-WMDE updated the task description. (Show Details)