Use of os/exec in juju is problematic in resource limited environments.
Bug #1516676 reported by
Eric Snow
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Low
|
Nicholas Skaggs |
Bug Description
See lp:1382556.
Go uses fork+exec to execute commands in subprocesses. The fork means a duplication of Juju's memory usage for a moment or two, which can be a problem depending on the available memory on the host and the kernel's overcommit setting.
One possible solution is to use a "forker" process that serves an RPC API (likely over a socket). Then we could run commands using that API rather than directly/indirectly through os/exec. See https:/
tags: | added: tech-debt |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0-alpha1 |
Changed in juju-core: | |
milestone: | 2.0-alpha1 → 2.0-beta1 |
tags: | added: run |
Changed in juju-core: | |
milestone: | 2.0-beta1 → 2.0-beta2 |
Changed in juju-core: | |
milestone: | 2.0-beta2 → 2.0-beta3 |
Changed in juju-core: | |
milestone: | 2.0-beta3 → 2.0-beta4 |
Changed in juju-core: | |
milestone: | 2.0-beta4 → 2.1.0 |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.1.0 → none |
milestone: | none → 2.1.0 |
tags: | added: sts |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
As this is a tech-debt item, I am lowering its priority and removing from the milestone.