Salesforce

Licensing (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Licensing (Magic xpa 4.x)

The Magic xpa license mechanism is floating by nature (both for threads and users), with an option to reserve a fixed (minimum) number of license threads or users for each project.

The licenses are available for use by all of the projects. The Space acts as the license server. When a new RIA or Web client connects, the worker will usually attempt to consume a license from the Space. When the RIA or Web client terminates, the worker will release a license back into the Space. This lets you make optimum use of licenses in a multi-project environment, by sharing licenses between servers. Therefore, when a particular project is idle, other projects can utilize its licenses (unless licenses are reserved – see the Reserving License Threads or Users for a Project section below).

When a Magic xpa server is started by the Space middleware, for each license feature (ENT and/or RIA or Web client), the Magic xpa server will check out (from the license file/server) and will write licenses to the Space only if that specific license feature (that is, a license feature with the same serial number) was not already written to the Space. In practice, only one Magic xpa server will write licenses to the Space, regardless of the number of Magic xpa servers started simultaneously (Since version: 3.1).

A Magic xpa server is not limited to serve the requests according to the license that the server checked-out. Any server can serve any request as long as there are licenses in the space.

All Magic xpa installations should be configured to point to the same license file, which you can place at a shared location.

The first engine that starts writes the number of licenses to the space. Then, other engines can also run. It is not required that the Magic xpa engine that allocated the license continues to run. Once it sets the thread and user count in the Space, it is not needed anymore to maintain the license. It can therefore be stopped and started like any other Magic xpa engine on the grid.

In case that an engine uses a node-locked license that doesn't match its machine, that engine will not check-out from the license but will continue to start and process the requests; provided that other engines were able to check-out and load the required licenses into the space.

Multiple RIA clients from the same machine accessing the same application consume one (RIA) license. Since version: 3.2

Multiple Web clients from the same machine consume one (Web) license. Since version: 4.0

Reserving License Threads or Users for a Project

If you are running multiple projects, and some projects may consume all threads or users under stress conditions (for example, there are many Web services and/or HTTP requests), you should consider reserving a minimum fixed amount of license threads or users for critical projects that need to run continually.

You can use the ReservedRIAUsersLicenses, ReservedWebClientUsersLicenses and ReservedThreadsLicenses attributes in the projectsStartup.xml file, to reserve a number of users and/or thread licenses per project.

Since version: 3.2

Licenses reserved for a given project are acquired by workers in Magic xpa servers that serve that project before trying to acquire non-reserved licenses. Since version: 3.2

Reference
Attachment 
Attachment