Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The goal of multitenancy is to maximize resource sharing across by allowing multiple users (while hiding the fact that these users are on the same server) and to ensure optimal performance. You can register tenants using the Management Console of your Carbon product, allowing tenants to maintain separate domains for their institutionstenants) to log in and use a single sever/cluster at the same time, in a tenant-isolated manner. That is, each user is given the experience of using his/her own server, rather than a shared environment. Multitenancy ensures optimal performance of the system's resources such as memory and hardware and also secures each tenant's personal data.

You can register tenant domains using the Management Console of WSO2 products.

Info

When multitenancy is used, certain tenants can sometimes become enabled and a tenant becomes inactive for a long period of time, the tenant is unloaded from the server's memory. By default, if the inactive time period is 30 minutes. After that, the tenant is unloaded from the server memory. This requires the tenant has to log in again before sending requests to the server.

If required, you can You change the default time period allowed for tenant inactiveness by adding the adding -Dtenant.idle.time=<time_in_minutes> java property to the product's startup script ( ./wso2server.sh file for Linux and Linux and wso2server.bat for   for Windows) as shown below:

 

Code Block
JAVA_OPTS \
    -Dtenant.idle.time=30 \

Include Page
Shared:Multi Tenant Architecture
Shared:Multi Tenant Architecture