Requirements

This requirements can support up to 3000 active users daily. If you have more users, you can scale the resources as needed.

  • Kubernetes Cluster
    • 3 Master Nodes: Each one 4 CPU, 16 GB RAM
    • 6 Worker Nodes: Each one 8 CPU, 32 GB RAM
  • Persistence Storage
    • s3, amazon-s3, azure-blob, aliyun-oss, google-storage, tencent-cos
    • 512 GB Storage
  • Postgres Database
    • Version 14+
    • 4 CPU, 8 GB RAM
    • 512 GB SSD Storage
  • Redis Database
    • Version 6+
    • 2 GB RAM
  • Vector DB Virtual Machine - Qdrant Cluster
    • 3 Virtual Machines
    • 8 CPU, 64 GB RAM
    • 100 GB Storage

Dify Services Resources

ServicesReplicasCPURAM - GBTotal CPUTotal RAM - GB
dify-api34101230
dify-worker3310930
unstructured314312
dify-web328624
dify-sandbox314312
ssrf-proxy314312
dify-enterprise314312
dify-enterprise-frontend314312
Total42144

Deployment

Initial External Resources

  • Persistence Storage
  • Postgres Database
  • Redis Database
  • Vector DB Virtual Machine

Update Helm Chart Values

Update the values-no-infra-for-prod.yaml file.

  • Update persistence with your persistence storage configuration
  • Update externalPostgres with your postgres database configuration
  • Update externalRedis with your redis database configuration
  • Update vectorDB with your vector db virtual machine configuration

Install Dify Enterprise

You can install Dify Enterprise using the following guide. But you need to use values-no-infra-for-prod.yaml instead of values.yaml.

Verify Services Status

After the installation, you can verify the services status referring to the following guide.