LLM Gateway Pro installation
To scale LLM Gateway, you can run multiple instances concurrently. This setup ensures that traffic is balanced across the instances, enhancing both performance and fault tolerance.
Getting started
1. Obtain the LLM Gateway Pro image:
- The
lunar-proxy-proimage required for LLM Gateway Pro is not publicly available. To obtain this image, you must contact LLM Gateway directly to request access. Once you receive the necessary access key, make sure to replace the standardlunar-proxyimage with thelunar-proxy-proimage.
2. Set up Redis for shared state:
- You’ll need a running Redis instance to store the shared state between LLM Gateway Pro instances. You can quickly set this up using the
redisimage from Docker Hub. - Once the Redis instance is running, configure each LLM Gateway Pro instance to connect to Redis by setting the
REDIS_URLenvironment variable. The URL format should beredis://<host>:<port>orrediss://<host>:<port>if using TLS.
note
The redis will use lunar as its default prefix for the gateway connection with Redis, to configure the value please change:
REDIS_PREFIXwhen running using DockerredisPrefixwhen using Helm Chart
3. mTLS for Redis:
- For enhanced security, LLM Gateway Pro supports connecting to Redis using mutual TLS (mTLS). By using mTLS, you ensure that communication between LLM Gateway Pro instances and Redis is encrypted and secure.
- Follow the steps in the mTLS with Redis Configuration guide to configure mTLS for your Redis connection.
Redis connection status
During startup, LLM Gateway will display a message indicating the Redis connection status, including the prefix and URL used. A "Successfully initialized Redis Client" message confirms a successful connection.
For a full breakdown of startup indicators, refer to the LLM Gateway Logs page.