I created a web service in Moodle with PHP 7.2 MySQL and Linux. It works fine. The problem I'm having with one query string/option for the Web Service is returning all the users (and specific computed data). Since there are 16,000 users it is a large Web Service call/JSON return. I have not been able to return all users with a curl call to the Web Service I get a 503.
I have increased the PHP timeout parameter to 5000s. Still no luck although it runs longer before it fails and returns 503.
Any thoughts on what I should do next? I plan to play around with the post max in PHP and the max allowed packets in MySQL.
But other than that I don't know what I can do. So I wanted to see if anyone had any thoughts around this.