This enterprise-focused document provides comprehensive instructions for deploying the Portkey software on AWS, tailored to meet the needs of large-scale, mission-critical applications.
Component | Options | Sizing Recommendations |
---|---|---|
AI Gateway | Deploy as a Docker container in your Kubernetes cluster using Helm Charts | AWS EC2 t4g.medium instance, with at least 4GiB of memory and two vCPUs For high reliability, deploy across multiple Availability Zones. |
Logs Store (optional) | Hosted MongoDB, Document DB or AWS S3 | Each log document is ~10kb in size (uncompressed) |
Cache (Prompts, Configs & Virtual Keys) | Elasticache or self-hosted Redis | Deploy in the same VPC as the Portkey Gateway. |
./helm-chart/helm/enterprise/values.yaml
Image Credentials Configuration
LOG_STORE
can be
s3
, GCS gcs
, Wasabi wasabi
)mongo
, AWS DocumentDB mongo
)LOG_STORE
is mongo
, the following environment variables are needed
LOG_STORE
is s3
or wasabi
or gcs
, the following values are mandatory
Access Key
and Secret Key
from the respective providers.
Notes on Cache If CACHE_STORE
is set as redis
, a redis instance will also get deployed in the cluster. If you are using custom redis, then leave it blank.
The following values are mandatory
REDIS_URL
defaults to redis://redis:6379
and REDIS_TLS_ENABLED
defaults to false
.
Notes on Analytics Store This is hosted in Portkey’s control plane and these credentials will be shared by the Portkey team.
The following are mandatory and are shared by the Portkey Team.
portkeyai
namespace.
<pod-name>
with the name of your pod.
<desired_port>
with the port number for external access with the port the application listens on internally.
YOUR_BUCKET_NAME
with your actual bucket name.
MongoDB Compliant Database
If using a MongoDB compliant database, ensure the AI Gateway has access to the database. The database user should have following role:
readWrite
role provides the necessary read and write access to the specified database. Please replace YOUR_DATABASE_NAME
with your actual database name.
Cache Store - Redis
The Portkey Gateway image ships with a redis installed. You can choose to use the inbuilt redis or connect to an outside Redis instance.