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

Execute EnrichPolicyRunner on a non dedicated master node. #76881

Commits on Aug 25, 2021

  1. Execute EnrichPolicyRunner on a non dedicated master node.

    Introduce an internal action that the execute policy action delegates to.
    This to ensure that the actual policy execution is never executed on the elected master node
    or dedicated master nodes. In case the cluster consists out of a single node then
    the internal action will attempt to execute on the current/local node.
    
    The actual enrich policy execution is encapsulated in the `EnrichPolicyRunner` class.
    This class manages the execution of several API calls, so this itself isn't doing anything heavy.
    However the coordination of these api calls (in particular the reindex api call) may involve
    some non-neglectable work/overhead and this shouldn't be performed on the elected master
    or any other dedicated master node.
    
    Closes elastic#70436
    martijnvg committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    5d7a948 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. fix nit

    Co-authored-by: Dan Hermann <danhermann@users.noreply.github.com>
    martijnvg and danhermann committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    71c92b1 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Merge remote-tracking branch 'es/master' into enrich_delegate_policy_…

    …runner_to_non_dedicated_master_node
    martijnvg committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    3ba6850 View commit details
    Browse the repository at this point in the history
  2. In case of wait_for_completion=false policy execution then return the…

    … response but not release the policy immediately.
    
    Execute get task request with wait_for_completion=true and when that returns release the policy.
    martijnvg committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    c882254 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. Configuration menu
    Copy the full SHA
    f25f1e0 View commit details
    Browse the repository at this point in the history
  2. remove commented-out code

    martijnvg committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    3e455d4 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'es/master' into enrich_delegate_policy_…

    …runner_to_non_dedicated_master_node
    martijnvg committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    8408eee View commit details
    Browse the repository at this point in the history
  4. spotless

    martijnvg committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    e9b86ca View commit details
    Browse the repository at this point in the history