I implemente to access aerospike by C. When a large amount of requests were issued, the below error occurred.
-1 - Failed to initialize thread pool of size 16: -3
-1 - Failed to initialize thread pool of size 16: -3
-1 - Failed to initialize thread pool of size 16: -3
The implementation is like the following.
as_error err; as_config config; as_config_init(&config);
aerospike as; aerospike_init(&as, &config);
if (aerospike_connect(&as, &err) != AEROSPIKE_OK) {
log(err.code, err.message); aerospike_destroy(&as);
}
// aerospike read or write access
I don’t implement to close and destroy aerospike connection when the access is normal. Because I reuse the connection. Why aerospike connection was failed when a large amount of requests were issued,
Could you take an advice.