Created
June 15, 2017 06:38
-
-
Save xhjcehust/62c6ed39a22546776e5cd3bf96c56195 to your computer and use it in GitHub Desktop.
server.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'host' => '0.0.0.0', | |
'port' => 8030, | |
'config' => [ | |
'worker_num' => 2, | |
'dispatch_mode' => 3, | |
], | |
'monitor' =>[ | |
'max_request' => 100000, // | |
'max_live_time' => 1800000, //30m | |
'check_interval'=> 10000, //1s | |
'memory_limit' => 1.5 * 1024 * 1024 * 1024, //1.50G | |
'cpu_limit' => 70, | |
'debug' => false | |
], | |
'request_timeout' => 30 * 1000, | |
'session' => [ | |
'run' => false, | |
'kv' => 'test.test.test', | |
'ttl' => 3600 * 24 | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment