Skip to content
Snippets Groups Projects
Commit b51ca9bd authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

increased memory limit for worker

parent 30f10df0
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ spec:
resources:
requests:
cpu: 500m
memory: 100M
memory: 256M
limits:
- name: nginx
securityContext:
......
......@@ -3,8 +3,10 @@
namespace App\Console\Commands;
use Cache;
use Exception;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Redis;
use Symfony\Component\Console\Output\OutputInterface;
use Log;
class RequestFetcher extends Command
......@@ -40,6 +42,7 @@ class RequestFetcher extends Command
*/
public function __construct()
{
ini_set("memory_limit", "256M");
parent::__construct();
$this->multicurl = curl_multi_init();
$this->proxyhost = config("requestfetcher.proxy.host");
......@@ -55,6 +58,7 @@ class RequestFetcher extends Command
*/
public function handle()
{
throw new Exception("test exception");
$pidFile = "/tmp/fetcher";
\pcntl_signal(SIGINT, [$this, "sig_handler"]);
\pcntl_signal(SIGTERM, [$this, "sig_handler"]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment