alleyinteractive / searchpress

Elasticsearch integration for WordPress.
84 stars 12 forks source link

Audit CLI Script #172

Open kevinfodness opened 9 months ago

kevinfodness commented 9 months ago

Description

Anecdotally, we've had some trouble running the index command on Pantheon via Terminus when using Elastic Cloud on 8.x. Symptoms include:

  1. Timeouts. We're hitting 10s timeouts when attempting to do things like flush the index or put the mapping. Unclear where this is coming from.
  2. Failures to flush or put the mapping. Perhaps flush is failing if the index is already empty or doesn't exist? Perhaps a different cause?
  3. Intermittent failures to bulk index, which could be related to timeouts or could be a separate issue entirely.

We need to audit the CLI script for indexing, including the options for flushing and putting the mapping, to make it more reliable.

Use Case

As a developer, I want to be able to reindex a site using the CLI including flushing the old index and putting the mapping without encountering errors.

mboynes commented 9 months ago

Additional notes/ideas: