Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

SLA for web application PU


Today I need to deploy my web application(as .war) with embeded space into cluster Service Grid. But when I defined sla properties in pu.xml - is nothing happened. This is my pu.xml:

<os-sla:sla cluster-schema="partitioned-sync2backup"
            number-of-instances="2" number-of-backups="1"

<os-core:space id="space" url="/./mySpace"/>
<os-core:giga-space id="gigaSpace" space="space" clustered="true"/>


My web application structure is - "WEB-INF/spring/pu.xml". Gigaspaces version is 9.6. P.S. When I deploy war file to Service Grid via web-ui and set "number-of-instances", "max-intances-per-vm" - al is ok. But when I tried to deploy, used Spring context - that failed.

asked 2013-11-18 05:33:52 -0500

ssherbakov gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

see example at: \gigaspaces-xap-premium\examples\web\space-access

Build the example (build dist) and see how the war file constructed.


answered 2013-11-19 08:43:58 -0500

shay hassidim gravatar image
edit flag offensive delete link more

What's the error you are getting?

answered 2013-11-18 05:36:44 -0500

shay hassidim gravatar image
edit flag offensive delete link more



I don't see any errors in the logs. Application just deploy only 1 instance. I would be grateful, if you show me working example configuration.

ssherbakov gravatar imagessherbakov ( 2013-11-18 05:44:17 -0500 )edit

Shay, maybe for war files I need to place pu.xml to another file location? For now it's placed on the WEB-INF/spring/. Maybe I need to place pu.xml to another location? An that is my web.xml file config -


It's right?

ssherbakov gravatar imagessherbakov ( 2013-11-18 07:27:36 -0500 )edit

You can see my source code on the GitHub on next link - https://github.com/VladislavLysov/gigaspaces-cluster-webapp

ssherbakov gravatar imagessherbakov ( 2013-11-18 08:38:38 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2013-11-18 05:33:52 -0500

Seen: 174 times

Last updated: Nov 19 '13