cancel
Showing results for 
Search instead for 
Did you mean: 

Compute unit Lite vs. Pro

Former Member
0 Kudos

Hi,

I´m currently running 2 different Java Applications on 2 different lite compute units. As testing and developing does not work in this kind of situation, I want to upgrade to additional compute units, to be able to run 2 dev version applications and 2 stable versions. There´s a choice of one professional compute unit (2 cores), and 2 lite units. The pricing is quite different, so I´d like to know if I´d be able to use a professional compute unit to realize this issue.

Can I run 2 different Java Applications on a professional compute unit, or am I only able to run one and create a "maintenance" copy of that application in case of a downtime, or do I need to switch to the more expensive way of renting 2 additional lite compute units?

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisPaine
Active Contributor
0 Kudos

Hi,

It's my understanding that for productive use of HCP it is not possible to purchase or use lite computes.

Only one war per compute, so one app.

Cheers,

Chris

Former Member
0 Kudos

I´m currently running on a Partner Edge HCP Account, so I´m able to purchase lite compute units.

Thanks for the info about one .war per compute unit. That solves the problem.

Edit: The documentation states that I can deploy multiple war files to one Application (SAP HANA Cloud Platform)

Did I miss something there or is it just an error in the documentation?

ryan_malcolm
Associate
Associate
0 Kudos

Hi Ricardo,

The documentation is correct, you can deploy multiple .war files to a single application. You can use the console client for this and simply separate by commas (use the deploy command). Deploying with the cockpit only allows a single application deployment.

SAP HANA Cloud Platform - Console Client deploy

[EDIT]: Sorry, the web.xml will be any additional URI path depending if used a framework for building an API, the name of the war file is what follows the application URI defined by creating a new Java Application

[EDIT]: This will give all applications the same URI and then whatever you have defined for the names of war files will be what follows.

- hana.ondemand.com/service/application1

- hana.ondemand.com/service/application2

etc

Regards,

Ryan

Former Member
0 Kudos

I tried deploying both applications this way, but I had the following problem:

Both applications are Servlet based. If I launch a servlet in application 1, no servlet of application 2 is launched and vice-versa. Is this problem solved, if I let those two war files run on a professional compute unit?

ryan_malcolm
Associate
Associate
0 Kudos

I wouldn't expect that to be impacted by the compute size, that should mainly impact performance.

My first thought is your web.xml for each. Do you have the load-on-startup declared in both servlets so they both are initiated when the server starts?

Former Member
0 Kudos

The "loadOnStartup" parameter is declared in all servlets that are used. The path for both servlets/applications are different. If I deploy both on one compute unit each, they work flawlessly.

ChrisPaine
Active Contributor
0 Kudos

Happy to be proven wrong