We have an issue while using php client. In our situation, we have 5 aerospike servers ( version 3.5.15) and 10 php servers. On each php server, we have 500~1000 php-fpm processes.
After deployed on php server with php-client, the aerospike servers got very high CPU usages (1200% above on 24 cores machine), even there is only few active write request.
we have enabled the persistent connection flag on the php client. It seems the client connections from php to server is very high (over 700 on each server). However, most of the connections are not in heavy load. I think the aerospike server should handle idle connections efficiently.
And with the
perf top -p $AS_PID I can see the 10%~15% percent is used by the
get_random_replica function. I saw this function is removed since 3.6.0, but I am not sure is this the whole truth that cause the high CPU usages.
Is there any reason to cause so high CPU usage and how to fix this?