Configuration Information About the Middleware Bound to Applications
During application creation (such as web and mobile applications), middleware (such as DCS and RDS) can be bound. You can obtain the configuration information about the middleware bound to applications by using the following environment variables:
Environment Variables of Distributed Sessions
Distributed sessions are stable and reliable session storage based on Distributed Cache Service (DCS), supporting automatic injection for mainstream web containers, such as tomcat context, node.js express-session, and PHP session handler.
Table 1 describes the environment variables of distributed sessions.
| Environment Variable | Description |
|---|---|
| DISTRIBUTED_SESSION_CLUSTER | Whether the instance is in cluster mode. Value: true or false. |
| DISTRIBUTED_SESSION_TYPE | Storage type of a distributed session instance. Currently, only Redis is supported. |
| DISTRIBUTED_SESSION_VERSION | Version of a distributed session instance. |
| DISTRIBUTED_SESSION_NAME | Name of a distributed session instance. |
| DISTRIBUTED_SESSION_HOST | IP address for connecting to a distributed session instance. |
| DISTRIBUTED_SESSION_PORT | Port for connecting to a distributed session instance. |
| DISTRIBUTED_SESSION_PASSWORD | Password for connecting to a distributed session instance. |
Environment Variables of DCS
Distributed Cache Service (DCS) for Redis is an online, distributed, in-memory cache service compatible with Redis and Memcached. It is reliable, scalable, usable out of the box, and easy to manage, meeting your requirements for high read/write performance and fast data access.
Table 2 describes the environment variables of DCS.
| Environment Variable | Remarks |
|---|---|
| DISTRIBUTED_CACHE_CLUSTER | Whether the instance is in cluster mode. Value: true or false. |
| DISTRIBUTED_CACHE_TYPE | Storage type of a distributed cache instance. Currently, only Redis is supported. |
| DISTRIBUTED_CACHE_VERSION | Version of a DCS instance. |
| DISTRIBUTED_CACHE_NAME | Name of a DCS instance. |
| DISTRIBUTED_CACHE_HOST | IP address for connecting to a DCS instance. |
| DISTRIBUTED_CACHE_PORT | Port for connecting to a DCS instance. |
| DISTRIBUTED_CACHE_PASSWORD | Password for connecting to a DCS instance. |
Environment Variables of RDS
Relational Database Service (RDS) for MySQL is a cloud-based web service that is reliable, scalable, easy to manage, and out of the box.
Table 3 describes the environment variables of RDS.
| Environment Variable | Description |
|---|---|
| RELATIONAL_DATABASE_NAME | Name of an RDS instance. |
| RELATIONAL_DATABASE_CONNECTION_TYPE | Connection type of an RDS instance. Value: JNDI/SPRING_CLOUD_CONNECTOR. |
| RELATIONAL_DATABASE_JNDI_NAME | JNDI name of an RDS instance. This variable is used if the connection type is JNDI. |
| RELATIONAL_DATABASE_DB_NAME | Database name of an RDS instance. |
| RELATIONAL_DATABASE_DB_USER | Database user of an RDS instance. |
| RELATIONAL_DATABASE_DB_TYPE | Database type of an RDS instance. Currently, only MySQL is supported. |
| RELATIONAL_DATABASE_VERSION | Database version of an RDS instance. |
| RELATIONAL_DATABASE_HOST | Database IP address of an RDS instance. |
| RELATIONAL_DATABASE_PORT | Database port of an RDS instance. |
| RELATIONAL_DATABASE_PASSWORD | Database password of an RDS instance. |
Last Article: Viewing Logs
Next Article: servicestage-maven-plugin Usage Guide
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.