e621ng / e621ng

e621.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSearch checklist

Earlopain opened this issue · comments

Code at https://github.com/e621ng/e621ng/tree/switch-to-opensearch

OpenSearch Server

  • Compare configration with current Elasticsearch server

e9

  • Ensure shard count is still optimal (10-30GB per shard)
  • Create prod index, with alias
  • Confirm a manual index through rails console works
  • Add url param to force search with OS client

e6

  • Initial full import to double-check search performance
  • Index to both ES and OS simultaneously
  • Import all current data again to sync
  • Incrementally switch out the default client for OS
  • Stop indexing to ES
  • Remove ES client
  • Fool NewRelic to instrument OS by aliasing the OS client to the ES client

Putting this in an initializer (or even earlier) may make NewRelic pick up OS. NewRelic runs too early, just wait for proper support OS instrumentation. Currently expected jan-mar 2024.

module Elasticsearch
  VERSION = "7.0.0"

  module Transport
    Client = OpenSearch::Transport::Client
  end
end