Skip to content

Instantly share code, notes, and snippets.

@xhjcehust
Created June 15, 2017 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xhjcehust/62c6ed39a22546776e5cd3bf96c56195 to your computer and use it in GitHub Desktop.
Save xhjcehust/62c6ed39a22546776e5cd3bf96c56195 to your computer and use it in GitHub Desktop.
server.php
<?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