We have been having increasing issues when creating databases through the WHM UAPI.
An empty cPanel account can easily go through the database creation process in a second or two. However, a cPanel account with well over 1000 databases can seriously struggle here. If the process of creating a database, creating a database user, and assigning said user to the database goes through successfully, it can take roughly 30 seconds. That's only when the request doesn't timeout. Any subsequent requests to create a database will take far longer than 30 seconds. In fact, the API call for just creating a database did not finish after 60 seconds and our script timed out, directly after a 'successful' prior request.
It takes a long time to receive a response back from the API, even if a database gets created. Too long for any reasonable timeout setting.
Any other API calls return responses almost immediately, so I believe it's related to any processes involved during database creation, database user creation, and assignment of the user to the database. I have searched the forums and found another used that had a similar issue, however, that particular post was dated in 2013 without a solution.
We have gone through many different optimizations with IT, but have not been able to find a viable solution.
At the moment, creating new cPanel accounts and hosting databases there is not an option, as the 'host database' that houses client credentials is only accessible from the 'host cPanel account'.
Has anyone else had these issues and found a working solution?
An empty cPanel account can easily go through the database creation process in a second or two. However, a cPanel account with well over 1000 databases can seriously struggle here. If the process of creating a database, creating a database user, and assigning said user to the database goes through successfully, it can take roughly 30 seconds. That's only when the request doesn't timeout. Any subsequent requests to create a database will take far longer than 30 seconds. In fact, the API call for just creating a database did not finish after 60 seconds and our script timed out, directly after a 'successful' prior request.
It takes a long time to receive a response back from the API, even if a database gets created. Too long for any reasonable timeout setting.
Any other API calls return responses almost immediately, so I believe it's related to any processes involved during database creation, database user creation, and assignment of the user to the database. I have searched the forums and found another used that had a similar issue, however, that particular post was dated in 2013 without a solution.
We have gone through many different optimizations with IT, but have not been able to find a viable solution.
At the moment, creating new cPanel accounts and hosting databases there is not an option, as the 'host database' that houses client credentials is only accessible from the 'host cPanel account'.
Has anyone else had these issues and found a working solution?