On May 30, 2014, at 18:40 , GMail <[email protected]> wrote:

> I’m setting up a local Charmworld sandbox with some local charms but I'm 
> running out of disk space (the default 8GB).
> 
> Setting the charm_import_limit to like 50 or 100, does not add my local once 
> (added in the end ?). Increasing this number also downloads all series of 
> charms and makes me run out of disk space.
> 
> My main configuration goes like this:
> $sudo bin/supervisorctl -c charmworld/jobs/supervisord.conf stop ingest
> 
> $sudo INI=production.ini bin/ingest-queued --clear 
> --local-repo=/home/ubuntu/trusty
> 
> $sudo bin/supervisorctl -c charmworld/jobs/supervisord.conf start ingest

Hi Stein,

Can you clarify how the above three commands are being run?  The second, if run 
to completion, should import all of your local charms.  So, I’m unsure why you 
see your charms being ingested last.


> 
> Questions
> 1) Is it possible to make it load my local charms first, and then use the 
> charm_import_limit to limit the number of charms ?

When the charm starts, it will begin ingesting file.  You can prevent it from 
ingesting by setting the charm configuration value charm_import_limit to 0, i.e.

juju set charmworld “charm_import_limit=0”

Then when you run the bin/ingest-queued by handit will clear anything in the 
queue, and start import your local charms.  You’ll need to specify a —limit 
option to override the one placed in production.ini by the charm:

$ sudo su charmworld -c “INI=production.ini bin/ingest-queued --limit=1 —clear 
—local-repo=/home/ubuntu/trusty"

Since you indicated in the shared Google doc that you don’t rely on any 
charmstore charms, you need not restart the supervisorctl ingest process.


> 2) Can I set a import filter to only import the Trusty charms ?

You could but it would require editing the file

/home/webops_deploy/charmworld/charmworld/jobs/supervisord.conf

and changing

to

command=bin/ingest-queued --run-forever —clear —prefix=~charmers/charms/trusty

The supervisorctl job would need to be stopped and restarted.


I am very happy to hear you have had some success.  

Best,

Brad


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to