Instantly share code, notes, and snippets.

Embed
What would you like to do?
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