Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Initial commit to support a search only replica for RW separation #15535

Merged
merged 3 commits into from
Aug 30, 2024

Commits on Aug 30, 2024

  1. Initial commit to support a search only replica for RW separation. (o…

    …pensearch-project#15410)
    
    * Initial commit for search only replica.
    This PR contains the following:
    1. Introduce searchOnly flag on ShardRouting.
    2. Added feature flag to enable/disable the feature.
    3. supports both create and update APIs to toggle search replica count.
    4. Changes to exclude search replicas from primary eligibility.
    5. Changes to prevent replicationOperations from routing to search replicas.
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * add some missing feature flag checks
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * Pr feedback from @andrross
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * Add more unit tests for settings create and update
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * Fix broken tests from setting rename
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * Fix broken tests and add changelog entry
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * More PR feedback.
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * add missing searchOnly property to initializeTargetRelocatingShard.
    
    Without this search replicas will become regular replicas on relocation.
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * test fixes
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    * spotless
    
    Signed-off-by: Marc Handalian <[email protected]>
    
    ---------
    
    Signed-off-by: Marc Handalian <[email protected]>
    (cherry picked from commit 1e9fdb4)
    Signed-off-by: Marc Handalian <[email protected]>
    mch2 committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    f71c19f View commit details
    Browse the repository at this point in the history
  2. Update wire compatibility version to 2_17_0

    Signed-off-by: Marc Handalian <[email protected]>
    mch2 committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    797443c View commit details
    Browse the repository at this point in the history
  3. change assertion for ff disabled from SettingsException to IllegalArg…

    …umentException
    
    Signed-off-by: Marc Handalian <[email protected]>
    mch2 committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    b04079e View commit details
    Browse the repository at this point in the history