Ask Your Question
0

Can we create a web application using devstack?

asked 2014-04-18 00:18:04 -0600

anonymous user

Anonymous

updated 2014-04-18 00:41:35 -0600

We are planning to do our academic project using devstack. Is it possible to use devstack for developing a web app using Java and MySQL.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-04-18 02:00:10 -0600

Hello,

In order to use devstack you need to first get familiar with it, especially with how to manage it.

Do not use devstack for production environments even if you believe you are familiar with it!

Devstack was created mainly to develop for OpenStack because devstack allows you to have a temporary running OpenStack installation in minutes.

You can of course use devstack to get to a complete OpenStack installation, after which you can install your application inside one or mode instances you create from Horizon (or from command line). However you need get comfortable with how to restart your OpenStack services in case of reboot, how you can upgrade it and so on since you are using Devstack.

Why do you need OpenStack if you only want to create a web app in java and MySQL ? You will most likely be better of using VirtualBox or KVM but with a user friendly manager.

My suggestion is to use Devstack or another way of installing OpenStack only after you application is ready, when you can test how your application scales/can scale (I believe that's your end goal).

If you have other reasons to use Devstack or if your applications needs to tightly integrate with OpenStack (can't run without OpenStack) than please let us know.

edit flag offensive delete link more

Comments

Hi Cristian,

Thanks for the response. Since we need a private cloud and private DB for our application, we thought of using Devstack. Please let me if I could develop an application using Java and MySQL using devstack.

Thanks and Regards, Suraj Natarajan

surajnm gravatar imagesurajnm ( 2014-04-18 02:06:30 -0600 )edit

I am doing this project along with the person who posted the question. We are thinking of installing our own private cloud using openstack/devstack and then install a private db (say mysql) instance inside it. The question is, will I be able to configure the mysql instance running inside my cloud? The performace of my cloud depends upon the machine that I am running it upon, right? We will be just using our laptops for testing purposes, so the memory and speed will be limited to a few gigs.

So, adding to the question posted above and with the scenario that I explained, will I be able to code my application and run it in the cloud I created? Are there any specific steps/procedures to do it?

sreenidhi gravatar imagesreenidhi ( 2014-04-18 02:18:08 -0600 )edit
1

Hello surajnm and sreenidhi, If I understand correctly, you want to develop an application unrelated to OpenStack. You just want your application to run in a private cloud setup and in your case you want your cloud to be based on OpenStack. In this case the actual development work does not need Devstack at all, unless you also want to get familiar with OpenStack at the same time. Installing Devstack will allow you to create one or more instances (one or more virtual servers) where you will manage your MySQL database. I believe you are looking at Trove ( https://wiki.openstack.org/wiki/Trove ) for this ? The reason I recommend development without Devstack at first is because you will need some time to get to know Devstack/OpenStack.

Do not use Devstack for a production environment! Devstack is meant for development only. Devstack's role is to mostly help in ...(more)

Tomoiaga gravatar imageTomoiaga ( 2014-04-18 02:49:58 -0600 )edit

Hello Christian, thanks for the guidance. You are right, we want our application to run in a private cloud and access the private db and in this case, we want our cloud to be openstack... We couldnt find any other cloud tools/simulation softwares that helps us create a private cloud/ private DB. We did a lot of research and finally concluded that we would use openstack for this. There is another reason for this. We used openstack/devstack in one of our labs in college. We installed ubuntu on vagrant box and also explored the use of nova, glance and swift. So we have a fair idea of how it should be done.

That said, the aim of our project is to have a private virtual DB running in our private cloud. We want our application to access the DB and make some recommendations for configuration. I looked into ...(more)

sreenidhi gravatar imagesreenidhi ( 2014-04-18 13:48:59 -0600 )edit

Hi,

For what you want to achive the short answer is kinda. You can do some things you describe just with OpenStack but usually everything you need is done with multiple tools.

The reason I'm saying this is because you can think of OpenStack as just another VPS manager (let's simplify things).

You login to Horizon, create two virtual private servers (called Instances here, but nothing special about them, those are just Virtual Servers, having disk, cpu and ram).

If everything will work out (keys injected, or metadata working so you can have a root password) than you can login to those instances and install MySQL on one instance and Java on another. Those instances will be able to communicate through network (depending on your network setup). That's it for the most part. Two virtual servers communicating with each other.

For some reason I feel like you ...(more)

Tomoiaga gravatar imageTomoiaga ( 2014-04-19 02:11:31 -0600 )edit
1

answered 2014-05-19 00:30:20 -0600

SGPJ gravatar image

Create a Linux instance (Ubuntu) and launch the VM with internet access

Install open jdk & Eclipse IDE

Run you java app in VM using IDE.

Thanks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-04-18 00:18:04 -0600

Seen: 688 times

Last updated: May 19 '14