Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of Socket error when bulk inserting #20

Closed
polyfractal opened this issue Mar 21, 2013 · 0 comments
Closed

Out of Socket error when bulk inserting #20

polyfractal opened this issue Mar 21, 2013 · 0 comments
Labels

Comments

@polyfractal
Copy link
Owner

Ran into a drastic performance problem. Sherlock is using the Guzzle class incorrectly, creating a new Client() for each request. I assumed that Guzzle shares curl handles across Clients(), but this is not actually true.

As a result, bulk inserts tend to deplete the system of sockets very quickly, causing the entire process to fail.

Need to split the Client initialization into its own class, similar to the Cluster class, so that it may be shared.

Related, I'm going to try some experiments with Rolling-Curl (https://github.com/chuyskywalker/rolling-curl), which I think has a better batch/streaming mode of executing multi-handles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant