Skip to content

Clustered Mesh Search Status #1187

@deckdom

Description

@deckdom

Gentics Mesh Version, operating system, or hardware.

  • v1.6.x

Problem

When Mesh is clustered, usually some random instance responds (Depends on load-balancer and other stuff of course.).
This is however quite troublesome for some endpoints, where only one instance is currently working on it and is the only one keeping track of the status.

Such an Endpoint would be the /admin/search/sync and/or /search/status.
When you start an ES Sync, only one instance is starting this operation (Which is fine).
However, when attempting to check the status of it, other instances usually respond to this request which do not know of this process and respond with an "empty" (Everything is 0) response which isn't the actual status.
Checking the logs I can clearly see some progress being made.

Reproducer

  • Create a Cluster of min. 2 instances (Currently using 3+1)
  • Add some content
  • Clear the search /admin/search/clear
  • Sync the search /admin/search/sync
  • Check the sync status /search/status

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions