local provider moar awesome with lxc-clone
Bug #1203291 reported by
Kapil Thangavelu
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Low
|
Unassigned |
Bug Description
Currently it juju is extracting a cloud image per local unit, ~2m per container. Instead it could create a series template container per template, with an lxc clone hook for new user data. New provisioning requests for that series then pass userdata params via lxc-clone. Total time for provisioning a container then drops down signfiicantly, worst case its a simple copy, best case its a btrfs or lvm snapshot and done in a few seconds and significantly more efficient on disk usage as well.
Related branches
lp:~sidnei/golxc/clone-with-backing-store
- Juju Engineering: Pending requested
-
Diff: 169 lines (+70/-10)3 files modifiedgolxc.go (+42/-6)
golxc_test.go (+27/-3)
network.go (+1/-1)
lp:~sidnei/juju-core/lxc-clone-with-overlayfs
- Juju Engineering: Pending requested
-
Diff: 172 lines (+60/-33)2 files modifiedcontainer/lxc/lxc.go (+58/-31)
container/lxc/mock/mock-lxc.go (+2/-2)
Changed in juju-core: | |
importance: | Undecided → Medium |
status: | New → Triaged |
assignee: | nobody → Sidnei da Silva (sidnei) |
tags: | added: papercut |
Changed in juju-core: | |
importance: | Medium → Low |
tags: | added: local-provider performance |
Changed in juju-core: | |
assignee: | Sidnei da Silva (sidnei) → nobody |
Changed in juju-core: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
its a little unclear how much benefit this will provide from a time perspective (disk efficiency is still a clear win) as a good portion of the time (on an ssd machine) is the relegated to cloudinit setup of the instance.