...
Apache Stratos supports three type of cartridges: Data Data, Application, and and Framework. Administrators need to customize the provider
field, which is in is in the cartridge definition, to deploy a cartridge of a specific type.
"provider":"<CARTRIDGE-TYPE>"
Cartridge type | Configuration | Examples |
---|---|---|
Data | "data" | MySQL cartridge |
Application | "app" | Wordpress cartridge |
Framework | Any term other than "data" and "app" | PHP cartridge and Tomcat cartridge |
For example, when you deploy a cartridge with the following configuration, it will be considered as a framework cartridge.
"provider": "apache"
A Load Balancer (LB) distributes the workload among multiple computing resources. While, it also scales up and down based on the load. Administrators can deploy cartridges using three approaches with regard to LB: Using using the default LB, using the service LB or not using a LB. Administrators Administrators need to customize the provider
field, which is in the Load Balancer cartridge configurations when deploying a Load Balancer Cartridge.
"provider": "lb"
If the administrator is using a LB, the following configurations need to be added in the cartridge definition:
Code Block |
---|
"loadBalancer": { "type": "lb-test", "property": { "name": "<LOAD-BALANCER-TYPE>", "value": "true" } } |
LB Type | Configuration | Definition |
---|---|---|
Default LB | "default.load.balancer" | Apache Stratos will automatically create a new LB instance for each network partition. |
Service LB | "service.aware.load.balancer" | Apache Stratos will automatically create a new LB instance for each service spawned in a network partition. |
...
Enable persistence volume support while subscribing from the UI or CLI. For For more information on the configurations required when subscribing using the CLI, see see subscribe-cartridge.
Info |
---|
Currently persistence volume support is fully tested only for AWS EC2. |
The following configurations related to persistence storage need to be added in the Sample Cartridge Definition.
...
Info |
---|
The value entered for the size of the persistence volume during the subscription will override the value defined in the Cartridge definition JSON file. If the user has not provided the size of the volume during the subscription, then the values defined in the Cartridge definition JSON file will be used, specially when multiple persistence volumes are used. |
For more information, see Persistence Volume Mapping on mapping a persistence volume to a cartridge.
...
multiTenant
field to false in the cartridge configurations:"multiTenant": "false",
...
multiTenant
field to true in the cartridge configurations:"multiTenant": "true",