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

disconnected clients: Support operator manual interventions #12436

Commits on Apr 5, 2022

  1. reconciler: support disconnected clients (#12058)

    * Add merge helper for string maps
    * structs: add statuses, MaxClientDisconnect, and helper funcs
    * taintedNodes: Include disconnected nodes
    * upsertAllocsImpl: don't use existing ClientStatus when upserting unknown
    * allocSet: update filterByTainted and add delayByMaxClientDisconnect
    * allocReconciler: support disconnecting and reconnecting allocs
    * GenericScheduler: upsert unknown and queue reconnecting
    
    Co-authored-by: Tim Gross <tgross@hashicorp.com>
    2 people authored and DerekStrickland committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    e7707bf View commit details
    Browse the repository at this point in the history
  2. MaxClientDisconnect Jobspec checklist (#12177)

    * api: Add struct, conversion function, and tests
    * TaskGroup: Add field, validation, and tests
    * diff: Add diff handler and test
    * docs: Update docs
    DerekStrickland authored and DerekStrickland committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    05093dd View commit details
    Browse the repository at this point in the history
  3. reconciler: 2 phase reconnects and tests (#12333)

    * structs: Add alloc.Expired & alloc.Reconnected functions. Add Reconnect eval trigger by.
    
    * node_endpoint: Emit new eval for reconnecting unknown allocs.
    
    * filterByTainted: handle 2 phase commit filtering rules.
    
    * reconciler: Append AllocState on disconnect. Logic updates from testing and 2 phase reconnects.
    
    * allocs: Set reconnect timestamp. Destroy if not DesiredStatusRun. Watch for unknown status.
    DerekStrickland authored and DerekStrickland committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    903b871 View commit details
    Browse the repository at this point in the history
  4. disconnected clients: TaskGroup validation (#12418)

    * TaskGroup: Validate that max_client_disconnect and stop_after_client_disconnect are mutually exclusive.
    DerekStrickland authored and DerekStrickland committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    f37e92f View commit details
    Browse the repository at this point in the history
  5. allocrunner: Remove Shutdown call in Reconnect

    DerekStrickland committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    da9c307 View commit details
    Browse the repository at this point in the history
  6. Node.UpdateAlloc: Stop orphaned allocs. Don't migrate orphaned or dra…

    …ined allocs.
    DerekStrickland committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    77ec79d View commit details
    Browse the repository at this point in the history
  7. reconciler: Stop failed reconnects.

    DerekStrickland committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    a7fe3fa View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2022

  1. Apply feedback from code review. Handle rebase conflict.

    DerekStrickland committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    480b973 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    DerekStrickland committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    f68587a View commit details
    Browse the repository at this point in the history