I’m using aerospike to cache html pages on a busy server, everything was working fine for around 3 hours and then things started to go wrong the CPU load shot up and the server crashed (rebooted) I kept the client running for an hour or so afterwards but the server kept timing out and the CPU load was high.
as soon as I stopped using the client the CPU load came down and the server was stable again.
I think the problem was that every time the page was loaded I was creating the client:
$config = [“hosts” => [[“addr”=>“domain.com”, “port”=>3000]], “shm”=>]; $client = new Aerospike($config, true);
is creating the client each time the right thing to do? will the client be destroyed after the page has finished loading?
I think the client would work better if it was a simple API PUT, GET curl call like elasticsearch
the server side remained very stable
I have just one node, the client posted about 85,000 objects in 3 hours (around 3 gb)
the client was running on a 24 core, 64gb ram server