My first formula: Squid Proxy Server
Vincenzo Ciaglia
vincenzo at ciaglia.net
Tue Aug 16 16:18:39 UTC 2011
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,
--
Vincenzo Ciaglia
:~# 1f u c4n r34d th1s u r34lly n33d t0 g37 l41d
https://launchpad.net/~vciaglia
More information about the Ensemble
mailing list