I originally posted this in reponse to the announcement posted 05 Dec
2008 of new Scalr features, but then realized it should maybe start a
new thread.

We run an online contest for high school students.  This contest has a
single month of high volume for which we use AWS servers.  The rest of
the time we run our site on a local physical box.  We hope to be able
to use the downloadable copy of scalr to manage this setup.

I have been trying off-and-on now for several days to get scalr
running locally on our non-AWS server, with little success.  I would
like to run scalr through lighttpd, if possible.  It may very well be
that lighttpd is my problem.  I've already tried modifying the
instances /usr/local/aws/lib/lib.sh to use curl -H "Expect:" to
suppress the http Expect header that lighttpd does not recognize. With
this change, I am finally seeing hostInit events.  But I still don't
receive the hostUp events.  I notice that hostInit is initializing
with the internal AWS IP:
    i-14eb547d/instance-init.sh         Host 10.248.246.10/www
initialized. Awaiting authentication data.
I'm wondering if perhaps the instances should be initializing with
their external address to this non-AWS server.

Also, I've noticed log entries for POSTs to /query-env/... from the
version 1.0 RC2 release, but there does not seem to be any matching
code or rewrite rules in the scalr app/www directory.  As a result,
these fail with 404 error codes.  What impact should this have on
instances?  How should POSTs to query-env be handled?

If any readers are running the 1.0 RC2 release successfully on a non-
AWS server, would you please respond to the group with any
configuration changes you've had to make?

For anyone else trying lighttpd, here are the rewrite rules that go
in /etc/lighttpd/lighttpd.conf to replace the Apache rewrite rules in
app/www/.htaccess:
  url.rewrite = ( "^/farm_amis\.xml(.*)" => "farm_amis_xml.php$1",
                     "^/storage/keys/([0-9]+)/(.*)\.pem$" =>
"farms_view.php?id=$1&task=download_private_key",
                     "^/storage/graphics/([0-9]+)/(.*)/(.*)\.gif$" =>
"farm_graphs.php?id=$1&img=$2&type=$3",
                     "^/storage/events/([0-9]+)/timeline\.xml$" =>
"timeline.xml.php?farmid=$1",
                     "^/storage/events/([0-9]+)/rss\.xml$" =>
"rss.xml.php?farmid=$1" )

Thanks to all.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to