enterprisemediawiki / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
41 stars 27 forks source link

Adjust timeouts for web requests #920

Open jamesmontalvo3 opened 6 years ago

jamesmontalvo3 commented 6 years ago

In order to adjust timeouts the following things need to be adjusted. At this time I'm not sure if there are config variables (/opt/conf-meza/public/public.yml) handling any of these. There should be.

The following changes are an example of increasing timeout by approximately 10x. Don't do this in production. All "WAS" values are meza's values as of this writing.

php.ini WAS:

max_input_time = 60
max_execution_time = 30

php.ini IS:

max_input_time = 600
max_execution_time = 300

Values above are in seconds

httpd.conf doesn't currently have a value for TimeOut. It defaults to 300 seconds. If this does not work the following could be added to adjust it:

TimeOut 3000

haproxy.cfg WAS:

    timeout connect 5000    # 5 seconds
    timeout client  50000   # 50 seconds
    timeout server  50000   # 50 seconds

haproxy.cfg IS:

    timeout connect 5s
    timeout client  900s
    timeout server  900s

(in haproxy.cfg, unspecified times are in milliseconds)

ref: https://www.devside.net/wamp-server/apache-and-php-limits-and-timeouts

jamesmontalvo3 commented 6 years ago

Also may want to bump memory limit:

memory_limit = 512M