← Back to team overview

dhis2-devs team mailing list archive

Re: Amazon EC2 AMI

 

>From the Amazon web service stanpoint, it woud be idea to have a completely
standaalone package which deploys itself, or the use of a parameter which is
documented here ...
http://docs.amazonwebservices.com/elasticbeanstalk/latest/ug/index.html?using-features.managing.db.htmlwhich
can be used to connect to a persistent  source, like a remote Postgres
DB or the Amazon RDS server. Being able to pass a paramater directly to the
instance could be useful from the AWS stand point.

Will give it a try anyway. Thanks.

Regards,
Jason


2011/3/15 Lars Helge Øverland <larshelge@xxxxxxxxx>

>
>
> 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.ancom/elasticbeanstalk/<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).
>
>
>


-- 
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+260974901293

References