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

cgroups: Make systemd cgroup parent support use specified slices #119

Closed
wants to merge 1 commit into from

Conversation

mrunalp
Copy link
Contributor

@mrunalp mrunalp commented Jul 13, 2015

Port of docker-archive/libcontainer#549

Signed-off-by: Mrunal Patel [email protected]

@LK4D4
Copy link
Contributor

LK4D4 commented Jul 14, 2015

Still LGTM

@mrunalp
Copy link
Contributor Author

mrunalp commented Jul 14, 2015

@rjnagal @vmarmol PTAL

@@ -446,7 +446,7 @@ func (m *Manager) Set(container *configs.Config) error {
}

func getUnitName(c *configs.Cgroup) string {
return fmt.Sprintf("%s-%s.scope", c.Parent, c.Name)
return fmt.Sprintf("%s-%s.scope", c.ScopePrefix, c.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to check if ScopePrefix was specified?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think "-xyz.scope" is valid. Pretty sure I saw systemd fail that name once :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to clarify some of the behavior in #141. I will wait for some conclusion there :)

@selvik
Copy link

selvik commented Aug 18, 2015

@mrunalp It'd be great if you could clarify the status of this PR, given that #141 was recently closed. Also will --cgroup-parent continue to be supported for libcontainer? Any related issues that is tracking this? Thanks a lot!

@mrunalp
Copy link
Contributor Author

mrunalp commented Aug 18, 2015

@selvik I am going to close this for now and reopen it again later.

@mrunalp mrunalp closed this Aug 18, 2015
@selvik
Copy link

selvik commented Aug 18, 2015

Thanks for the prompt response, @mrunalp!
Just so we know whether we can wait for this feature or need to work around it - do you have any ideas on why it's being closed or when it'll be reopened ?

hqhq added a commit to hqhq/runc that referenced this pull request Oct 16, 2015
@hqhq
Copy link
Contributor

hqhq commented Oct 16, 2015

@mrunalp why is this closed?
I think support cgroup parent would be helpful on systemd, although it's partial support, we should merge this and move on.

I opened a new PR #336 which almost the same as yours in case you don't have time handle this. Feel free to close that one and reopen this :)

hqhq added a commit to hqhq/runc that referenced this pull request Dec 3, 2015
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants