Dify performance optimization (public preview)
Properly configure the specifications and number of Dify components and external resources to meet production performance requirements and improve resource utilization.
Responsibility boundary: Applications deployed from the Application Center, unless otherwise specified, are consistent with their open-source community versions. You are responsible for any stability risks and security vulnerabilities associated with the open-source software. SAE's service assurance is limited to the stability of the underlying runtime and does not cover the quality, security, or maintenance of the open-source software itself. Conduct a thorough technical review and security audit before deploying to a production environment.
Procedure
Deploy Dify on SAE (public preview). If you require performance of 500 QPS or higher, select Dify High-Performance Edition during deployment.
Adjust the configuration of Dify components and external resources based on the minimum resource sets for each performance tier:
Adjust the instance specification and number of instances for each Dify component.
To adjust the Redis instance specification, log on to the Redis console. In the left-side navigation pane, click Instance List and select the region at the top of the page. Find the target Redis instance and click Change Configuration in the Actions column. Alternatively, click Manage in the Actions column, then navigate to Instance Information in the left-side navigation pane to adjust the configuration.
To adjust the PostgreSQL instance specification, log on to the RDS console. In the left-side navigation pane, click Instance List and select the region at the top of the page. In the Actions column of the target PostgreSQL instance, click Manage. On the instance details page, navigate to Basic Information in the left-side navigation pane to adjust the configuration.
To adjust the NAT Gateway instance specification, log on to the NAT Gateway console. Select the region at the top of the page. In the Actions column of the target NAT Gateway instance, click Manage. On the Associated EIPs tab, click the Instance ID of the target elastic IP address. On the details page that appears, choose from the upper-right corner.