Comments (1)
After more investigation this was due to disk writes to the database taking longer and longer as the database grew. As disk writes fell behind, workers were being blocked waiting for writes to finish, resulting in hundreds of threads waiting. We implemented producer-consumer pattern where workers are never blocked and as a result, number of threads do not get out of control. Rates are steady when not trying to run in full-tilt mode.
Closing.
from birdcoop.
Related Issues (9)
- Master is consuming too much memory HOT 2
- Master not replying with user to crawl HOT 1
- Worker should return null followers/followees when user was private/uncrawlable HOT 5
- Master receives responses, but doesn't seem to persist them in the database HOT 13
- GNU screen takes up the majority of the CPU when master is parsing HOT 9
- Worker should exit gracefully on 404 (When crawl rate exceeded) HOT 2
- Worker only returns up to 100 followers and 100 followees of each user HOT 1
- Workers should start making requests at different times
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from birdcoop.