My first formula: Squid Proxy Server
Ahmed Kamal
kim0 at ubuntu.com
Tue Aug 16 17:06:16 UTC 2011
On 08/16/2011 06:18 PM, Vincenzo Ciaglia wrote:
> Hi all, i've written my very first formula for Ensemble as my starting
> point in the Project. It's about Squid Proxy Server.
>
> It is in Revision 1 and we should start from here to work with other
> related services:
> http://bazaar.launchpad.net/~vciaglia/+junk/ensemble-dev/files/head:/squid/
>
> RUNNING EXAMPLE:
>
> vciaglia at vciaglia-laptop:~/.ensemble$ ensemble bootstrap
> 2011-08-16 17:32:45,367 INFO Bootstrapping environment 'sample' (type:
> ec2)...
> 2011-08-16 17:32:53,390 INFO 'bootstrap' command finished successfully
>
> vciaglia at vciaglia-laptop:~/.ensemble$ ensemble status
> 2011-08-16 17:35:22,931 INFO Connecting to environment.
> 2011-08-16 17:35:29,452 INFO Environment still initializing. Will wait.
> machines:
> 0: {dns-name: ec2-79-125-56-213.eu-west-1.compute.amazonaws.com,
> instance-id: i-5e82ba28}
> services: {}
> 2011-08-16 17:35:38,624 INFO 'status' command finished successfully
>
> vciaglia at vciaglia-laptop:~/.ensemble$ ensemble deploy
> --repository=examples/ squid
> 2011-08-16 17:37:16,033 INFO Connecting to environment.
> 2011-08-16 17:37:21,133 INFO Formula deployed as service: 'squid'
> 2011-08-16 17:37:21,135 INFO 'deploy' command finished successfully
> vciaglia at vciaglia-laptop:~/.ensemble$
>
> vciaglia at vciaglia-laptop:~/.ensemble$ ensemble status
> 2011-08-16 17:38:25,090 INFO Connecting to environment.
> machines:
> 0: {dns-name: ec2-79-125-56-213.eu-west-1.compute.amazonaws.com,
> instance-id: i-5e82ba28}
> 1: {dns-name: ec2-46-137-20-202.eu-west-1.compute.amazonaws.com,
> instance-id: i-4c83bb3a}
> services:
> squid:
> formula: local:squid-1
> relations: {}
> units:
> squid/0:
> machine: 1
> relations: {}
> state: null
> 2011-08-16 17:38:36,650 INFO 'status' command finished successfully
>
>
> ubuntu at ip-10-227-6-129:~$ ps aux |grep squid
> root 1244 0.4 0.7 33544 12092 ? Sl 15:39
> 0:00 /usr/bin/python -m ensemble.agents.unit -n
> --pidfile /var/lib/ensemble/units/squid-0.pid
> --logfile /var/lib/ensemble/units/squid-0/formula.log
> proxy 1571 2.2 0.2 7392 4724 ? Ss 15:39
> 0:00 /usr/sbin/squid -N -D
> ubuntu 1627 0.0 0.0 3612 860 pts/0 S+ 15:39 0:00 grep
> --color=auto squid
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> In the next days i'll be more than happy to work on more complex
> formulas.
>
> Regards,
>
Hi Vincenzo,
Great news! I'm glad you're enjoying ensemble, and are progressing at a
huge rate. I noticed there was a squid formula bug, which I've assigned
to you
https://bugs.launchpad.net/principia/+bug/819424
You mention doing more complex formulas, but I actually think squid
could grow into something much more complex. For example, in the context
of being deployed as a service, it would probably need to be configured
in caching reverse-proxy mode, and would need to relate to web servers
on the backend. And most likely you can add a lot of tunable parameters
since squid config is quite rich. So there's a lot of room to grow that
formula, feel free to join in to #ubuntu-ensemble to talk a bit more
about what needs to be done. Great job so far
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20110816/051adbfa/attachment-0002.html>
More information about the Ensemble
mailing list