dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11004
Re: Amazon EC2 AMI
On Tue, Mar 15, 2011 at 4:58 PM, Jason Pickering <
jason.p.pickering@xxxxxxxxx> wrote:
> More cool stuff with Amazon Web Services. In my last experiment with AWS, I
> have utilized the "Elastic Beanstalk". A little bit strange to get your head
> around but here it is..
>
> http://aws.amazon.com/elasticbeanstalk/
>
> So, basically, what you do is you upload a war file. AWS then deploys it to
> a selected environment, creates auto scaling triggers, elastic load
> balancers, and all of that stuff that most people (including me!!) have no
> idea. The basic idea is that as the demand on the app grows, then you need
> to scale it. But wit the "Elastic beanstalk" it does all of this for you. It
> costs nothing more than all the normal services on Amazon and takes care of
> the auto-scaling.
>
> I assume, it would be possible somehow to embed the connection properties
> to a database somewhere inside the WAR file? You do not have direct access
> to the environment, so there is no way to specify a database connection
> through the hibernate.properties file, but it seems possible to do this
> somehow.
>
> So, basically, all you have to do is to upload a war file, and boom..you
> are in the cloud and have to do nothing basically in terms of configuration.
>
>
> Check it out here
>
> http://dhis2.elasticbeanstalk.com/
>
> This is a really stripped down WAR that does nothing. I was only going to
> use it for a fleet of data entry interfaces to a cloud-backed amazon RDS
> datasource, but need to figure out first how to specify the connection to
> the DB inside the WAR file itself.
>
This stuff is interesting. To keep your experiments going for now you can
modify the
dhis-support-hibernate/src/main/resources/hibernate-default.properties file
(will be located at the root of dhis-support-hibernate.jar inside
WEB-INF/lib in the WAR).
Follow ups
References