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

default grace time to indefinite #25

Merged
merged 1 commit into from
Feb 20, 2017
Merged

Conversation

vito
Copy link
Contributor

@vito vito commented Feb 17, 2017

Reasoning included in commit message.

Note: with this change, Diego can probably stop configuring this in their manifest. This change is also needed for Concourse's new container/volume lifecycle where we no longer heartbeat with GraceTime and instead have an explicit GC.

Alternatively we could remove this property? That would mean 0 means indefinite. Or we could keep it and make the GraceTime field a pointer, where nil would mean "server default" and 0 would mean "indefinite". (Or some other approach to add the distinction.)

Having a default grace time of 5 minutes means there's no way to create a
container with an indefinite TTL. It also doesn't seem like a sane default;
either everyone has to disable it manually or the consumer of Garden has to
continuously heartbeat containers that it wants to keep.

The CLI defaults to indefinite, so this also makes them consistent with each
other.
@cfdreddbot
Copy link

Hey vito!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@garden-gnome
Copy link

Hi there!

We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

The current status is as follows:

This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

@teddyking teddyking merged commit 2b3dedc into cloudfoundry:develop Feb 20, 2017
barthy1 pushed a commit to barthy1/garden-runc-release that referenced this pull request Mar 9, 2017
[finishes #135205219]

Submodule src/github.com/tchap/go-patricia 42daf53..666120d:
  > Improve remove() in the sparse mode
  > Fix remove() in the sparse children mode
  > Merge pull request cloudfoundry#25 from aristanetworks/master
  > Fix Delete memory leak and other bugs found
  > Merge pull request cloudfoundry#23 from dmitris/issue20
  > Merge pull request cloudfoundry#22 from dmitris/showmemory
  > Fix a panic when deleting

Signed-off-by: Georgi Sabev <georgethebeatle@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants