Skip to content

A node holds a lease whose lane container is gone, and a warm lease whose daemon ended, for the whole grace #565

Closed

Description

@7schmiede

Follow-up to #563.

What happens

A node keeps a lease for its grace (an hour on a dedicated node, 15 minutes on another, lease_grace_minutes) when its requester stops renewing it. That is what lets a lane survive a restart of the requester's machine (#379). Two cases hold a lease, and with it the lane's slot and its CPU, memory and disk, longer than anything uses it:

  1. The lane container is gone. Stopping it by hand on the node (docker stop devstack-lane-<lease>, exit 137) leaves the lease. The lane's next devstack up gets 409 ... runs here already (lease <id>) until the grace runs out; nothing on the client or in devstack node releases it.
  2. A warm lease whose daemon ended (ADR-0065): the requester's daemon renews it while the prepare runs; a daemon that ends meanwhile leaves it for the grace. It blocks no lane (its name is its own), only capacity.

#563 fixes the client side: a start cut off by the daemon's end is released by the next daemon. These two are left.

Expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions